简体   繁体   English

安装Amazon Inspector服务

[英]Installing Amazon Inspector Service

I'm about to install and use Amazon Inspector . 我即将安装并使用Amazon Inspector We have many EC2 instances behind ELB . 我们在ELB背后有许多EC2实例。 Plus some EC2 instances are opened via Auto-Scale . 此外,一些EC2实例通过Auto-Scale打开。

My question: Is the Amazon Inspector doing its work locally or globally, meaning is the monitoring being made on the instance that it is installed on or it can be configured to include all the instances of the infrastructure? 我的问题: Amazon Inspector是在本地还是在全球范围内工作,这意味着是在安装它的实例上进行监控还是可以配置为包括基础架构的所有实例?

If Inspector should be applied on every EC2 instance, can the Auto-Scale be configured to open the new instances with Inspector already installed on them and if yes, how can i do that? 如果应该在每个EC2实例上应用Inspector,可以将Auto-Scale配置为打开已安装Inspector的新实例,如果是,我该怎么做?

I asked a similar question on the Amazon forum but got no response. 我在亚马逊论坛上问了一个类似的问题,但没有回复。

In the end I used the following feature to customise the EC2 instances that my application gets deployed to: 最后,我使用以下功能来自定义应用程序部署到的EC2实例:

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-ec2.html https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-ec2.html

Basically off the root of your .war file you need a folder named '.ebextensions' and in there a .config file containing some commands to install the Inspector client. 基本上不在.war文件的根目录下,您需要一个名为“.ebextensions”的文件夹,并在其中包含一些安装Inspector客户端的命令的.config文件。

So my file 'inspector-agent.config' looks like this: 所以我的文件'inspector-agent.config'看起来像这样:

# Errors get logged to /var/log/cfn-init.log. See Also /var/log/eb-tools.log

commands:
# Download the agent installation script
  "01-agent-repository":
    command: sudo wget https://d1wk0tztpsntt1.cloudfront.net/linux/latest/install

# Run the installation script
  "02-run-installation-script":
    command: sudo bash install

I've found the answer and the solution, You have to install Amazon Inspector on each EC2 in order to inspect them all using Amazon Inspector . 我找到了答案和解决方案,您必须在每个EC2上安装Amazon Inspector ,以便使用Amazon Inspector对它们进行全面检查

About the Auto-Scale , I've applied Amazon Inspector on the main EC2 servers and took an image from them (after inspecting all the EC2s and fix all the issues). 关于Auto-Scale ,我已经在主EC2服务器上应用了Amazon Inspector并从中获取了图像(在检查了所有EC2并修复了所有问题之后)。 Then I've configured the Auto-Scale to lunch to lunch from the new AMIs (The Inspected AMIs ). 然后我将自动缩放比例配置为午餐,从新AMI (The Inspected AMIs )午餐。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM