Skip to content

Commit

Permalink
Revert "CloudFormation: Fix missing tags in cloud-security account" (#…
Browse files Browse the repository at this point in the history
…1519)

Revert "CloudFormation: Fix missing tags in cloud-security account (#1415)"

This reverts commit d4ad5d4.
  • Loading branch information
orestisfl authored Nov 2, 2023
1 parent 0567f28 commit f09efbd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 50 deletions.
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

0 comments on commit f09efbd

Please sign in to comment.