Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "CloudFormation: Fix missing tags in cloud-security account" #1519

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions deploy/cloudformation/elastic-agent-ec2-cnvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ Parameters:
Description: The version of elastic-agent to install
Type: String

Conditions:
UseElasticTags: !Equals
- !Ref "AWS::AccountId"
- 704479110758

Resources:

# Security Group for EC2 instance
Expand Down Expand Up @@ -139,26 +134,6 @@ Resources:
- !Ref "AWS::StackId"
- Key: Task
Value: Vulnerability Management Scanner
- Key: division
Value: !If
- UseElasticTags
- engineering
- AWS::NoValue
- Key: org
Value: !If
- UseElasticTags
- security
- AWS::NoValue
- Key: team
Value: !If
- UseElasticTags
- cloud-security
- AWS::NoValue
- Key: project
Value: !If
- UseElasticTags
- cloudformation
- AWS::NoValue
ImageId: !Ref LatestAmiId
InstanceType: !Ref InstanceType
IamInstanceProfile: !Ref ElasticAgentInstanceProfile
Expand Down
25 changes: 0 additions & 25 deletions deploy/cloudformation/elastic-agent-ec2-cspm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ Parameters:
Description: The version of elastic-agent to install
Type: String

Conditions:
UseElasticTags: !Equals
- !Ref "AWS::AccountId"
- 704479110758

Resources:

# Security Group for EC2 instance
Expand Down Expand Up @@ -107,26 +102,6 @@ Resources:
- !Ref "AWS::StackId"
- Key: Task
Value: Cloud Security Posture Management Scanner
- Key: division
Value: !If
- UseElasticTags
- engineering
- AWS::NoValue
- Key: org
Value: !If
- UseElasticTags
- security
- AWS::NoValue
- Key: team
Value: !If
- UseElasticTags
- cloud-security
- AWS::NoValue
- Key: project
Value: !If
- UseElasticTags
- cloudformation
- AWS::NoValue
ImageId: !Ref LatestAmiId
InstanceType: !Ref InstanceType
IamInstanceProfile: !Ref ElasticAgentInstanceProfile
Expand Down
Loading