From 6d6c08d1b827bd034dd6b5765c8d99328755ccac Mon Sep 17 00:00:00 2001 From: Tomo1912 Date: Sat, 9 Aug 2025 23:04:35 +0200 Subject: [PATCH] update to s3 tags --- cloudformation/s3-bucket.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 cloudformation/s3-bucket.yml diff --git a/cloudformation/s3-bucket.yml b/cloudformation/s3-bucket.yml new file mode 100644 index 0000000..50a168d --- /dev/null +++ b/cloudformation/s3-bucket.yml @@ -0,0 +1,27 @@ +AWSTemplateFormatVersion: '2010-09-09' +Description: 'S3 bucket for our CICD PR' + +Parameters: + Environment: + Type: String + Default: test + AllowedValues: + - test + - staging + - production +Resources: + MyS3Bucket: + Type: 'AWS::S3::Bucket' + Properties: + BucketName: !Sub '${AWS::StackName}-${Environment}-bucket' + Tags: + - Key: Environment + Value: !Ref Environment + - Key: Environment + Value: GithubActionsTesting + + +Outputs: + BucketName: + Description: 'Name of created S3 Bucket' + Value: !Ref MyS3Bucket \ No newline at end of file