From f09efbd139319b021c2f958b905de29022060258 Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Thu, 2 Nov 2023 17:22:33 +0100 Subject: [PATCH] Revert "CloudFormation: Fix missing tags in cloud-security account" (#1519) Revert "CloudFormation: Fix missing tags in cloud-security account (#1415)" This reverts commit d4ad5d46cd8ac89d6bee232cbc70f07b595f0aff. --- .../cloudformation/elastic-agent-ec2-cnvm.yml | 25 ------------------- .../cloudformation/elastic-agent-ec2-cspm.yml | 25 ------------------- 2 files changed, 50 deletions(-) diff --git a/deploy/cloudformation/elastic-agent-ec2-cnvm.yml b/deploy/cloudformation/elastic-agent-ec2-cnvm.yml index 864e68f645..ec9d250b58 100644 --- a/deploy/cloudformation/elastic-agent-ec2-cnvm.yml +++ b/deploy/cloudformation/elastic-agent-ec2-cnvm.yml @@ -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 @@ -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 diff --git a/deploy/cloudformation/elastic-agent-ec2-cspm.yml b/deploy/cloudformation/elastic-agent-ec2-cspm.yml index 64450befd7..c19f2b806f 100644 --- a/deploy/cloudformation/elastic-agent-ec2-cspm.yml +++ b/deploy/cloudformation/elastic-agent-ec2-cspm.yml @@ -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 @@ -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