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