From af484b2eded95bfde3c8fbdda443c0aaa4fdf0b1 Mon Sep 17 00:00:00 2001 From: JustFiesta Date: Tue, 21 May 2024 13:41:04 +0200 Subject: [PATCH] Fixup: in securioty group configuration removed group name due to error --- prepare_aws_enviroment.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/prepare_aws_enviroment.sh b/prepare_aws_enviroment.sh index 572dba9ea..dce047780 100644 --- a/prepare_aws_enviroment.sh +++ b/prepare_aws_enviroment.sh @@ -3,7 +3,7 @@ # This script sets up basic AWS environment for pushing docker images into the cloud # It creates: VPC, Subnet, Elastic Container Registry (ECR), EC2 instance with a public IP, Security Groups # -# Reqiured: Docker, configured AWS CLI, EC2 key pair created from AWS +# Required: Docker, configured AWS CLI, EC2 key pair created from AWS # Global data REGION="eu-west-1" @@ -92,10 +92,9 @@ echo "Tags added to ECR repository." echo "---------------------------------------" echo "Creating Security Group..." SECURITY_GROUP_ID=$(aws ec2 create-security-group \ - --group-name "$SECURITY_GROUP_NAME" \ --description "Security group for devOps internship assesment" \ --vpc-id "$VPC_ID" \ - --tag-specifications 'ResourceType=security-group,Tags=[{Key=Name,Value='"$VPC_NAME"'},{Key=Owner,Value='"$OWNER"'},{Key=Project,Value='"$PROJECT"'}]' \ + --tag-specifications 'ResourceType=security-group,Tags=[{Key=Name,Value='"$SECURITY_GROUP_NAME"'},{Key=Owner,Value='"$OWNER"'},{Key=Project,Value='"$PROJECT"'}]' \ --region "$REGION" \ --output text)