Setting up Agentless Scanning using AWS CloudFormation
이 페이지는 아직 한국어로 제공되지 않으며 번역 작업 중입니다. 번역에 관한 질문이나 의견이 있으시면 언제든지 저희에게 연락해 주십시오.
If you’ve already set up Cloud Security Management and want to add a new AWS account or enable Agentless Scanning on an existing integrated AWS account, you can use either Terraform or AWS CloudFormation. This article provides detailed instructions for the AWS CloudFormation approach.
If you're setting up Cloud Security Management for the first time, you can follow the
quick start workflow, which also uses AWS CloudFormation to enable Agentless Scanning.
Running Agentless scanners incurs additional costs. To optimize these costs while still ensuring reliable 12-hour scans, Datadog recommends setting up
Agentless Scanning with Terraform as the default template.
- On the Cloud Security Management Setup page, click Cloud Integrations > AWS.
- At the bottom of the AWS section, click Add AWS accounts by following these steps. The Add New AWS Account(s) dialog is displayed.
- Select the AWS region where you want to create the CloudFormation stack.
- Select an API key that is already configured for Remote Configuration. If the API key you select does not have Remote Configuration enabled, Remote Configuration is automatically enabled for that key upon selection.
- Send AWS Logs to Datadog and Enable Cloud Security Management are automatically selected by default. Leave the selections as is.
- In the Agentless Scanning section, toggle Host Vulnerability Scanning, Container Vulnerability Scanning, Lambda Vulnerability Scanning, and Data Security Scanning to the on position.
- Click Launch CloudFormation Template. A new window opens, displaying the AWS CloudFormation screen. Use the provided CloudFormation template to create a stack. The template includes the IAM permissions required to deploy and manage Agentless scanners.
- On the Cloud Security Management Setup page, click Cloud Integrations > AWS.
- Click the Edit button for the AWS account where you want to deploy the Agentless scanner.
- Verify that Enable Resource Scanning is toggled on. If it isn’t, switch the Enable Resource Scanning toggle to the on position and complete Steps 3-7 in New AWS Account.
- In the Agentless Scanning section, toggle Host Vulnerability Scanning, Container Vulnerability Scanning, Lambda Vulnerability Scanning, and Data Security Scanning to the on position.
- Click Done.
Exclude resources from scans
To exclude AWS hosts, containers, and Lambda functions from scans, apply the tag DatadogAgentlessScanner:false
to each resource. For detailed instructions on adding this tag, refer to the AWS documentation.
Datadog recommends updating the CloudFormation stack regularly, so you can get access to new features and bug fixes as they get released. To do so, follow these steps:
- Log in to your AWS console and go to the CloudFormation Stacks page.
- Select the DatadogIntegration-DatadogAgentlessScanning-… CloudFormation sub-stack, click Update, then click Update nested stack.
- Click Replace existing template.
- In the following S3 URL:
https://datadog-cloudformation-template-quickstart.s3.amazonaws.com/aws/<VERSION>/datadog_agentless_scanning.yaml
, replace <VERSION>
with the version found in aws_quickstart/version.txt. Paste that URL into the Amazon S3 URL field. - Click Next to advance through the next several pages without modifying them, then submit the form.
Disable Agentless Scanning
- On the Cloud Security Management Setup page, click Cloud Integrations > AWS.
- To disable Agentless Scanning for an account, click the Edit button and toggle the Agentless Scanning section to the off position.
- Click Done.
To uninstall Agentless Scanning, log in to your AWS console and delete the CloudFormation stack created for Agentless Scanning.
Further Reading