Skip to content

Commit

Permalink
[AGENTLESS] Allow scanner to set desired capacity of ASG
Browse files Browse the repository at this point in the history
  • Loading branch information
jinroh committed Sep 20, 2024
1 parent ed7b680 commit 2c496b8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions aws_quickstart/datadog_agentless_scanning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,10 @@ Resources:
PolicyDocument:
Version: '2012-10-17'
Statement:
- Sid: DatadogAgentlessScannerAutoScaling
Action: 'autoscaling:SetDesiredCapacity'
Effect: Allow
Resource: !Ref 'ScannerAutoScalingGroup'
- Sid: DatadogAgentlessScannerResourceTagging
Action: 'ec2:CreateTags'
Effect: Allow
Expand Down Expand Up @@ -638,6 +642,7 @@ Resources:
Condition:
StringEquals:
'aws:ResourceTag/DatadogAgentlessScanner': 'true'

MaxSessionDuration: 3600
ManagedPolicyArns:
- !Ref 'ScannerAgentPolicy'
Expand Down Expand Up @@ -684,8 +689,8 @@ Resources:
LaunchTemplate:
LaunchTemplateId: !Ref 'ScannerLaunchTemplate'
Version: !GetAtt 'ScannerLaunchTemplate.LatestVersionNumber'
MinSize: !Ref 'ScannerAutoScalingGroupSize'
MaxSize: !Ref 'ScannerAutoScalingGroupSize'
MinSize: 0
MaxSize: 20
DesiredCapacity: !Ref 'ScannerAutoScalingGroupSize'
Cooldown: 300
HealthCheckType: EC2
Expand Down

0 comments on commit 2c496b8

Please sign in to comment.