Skip to content

Commit 24cc48b

Browse files
Added new parameter to the CFT
1 parent 407b46b commit 24cc48b

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

cft-templates/s3.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
AWSTemplateFormatVersion: '2010-09-09'
22
Description: create a single S3 bucket
33

4+
Parameters:
5+
Namespace:
6+
Type: String
7+
Description: An environment name that will be prefixed to resource names
8+
49
Resources:
510
SampleBucket:
611
Type: AWS::S3::Bucket
12+
Properties:
13+
BucketName: !Ref Namespace
714

815
Outputs:
916
BucketArn:
1017
Value: !GetAtt [SampleBucket, Arn]
1118
Description: URL for website hosted on S3
1219
BucketName:
1320
Value: !Ref SampleBucket
14-
Description: Name of S3 bucket
21+
Description: Name of S3 bucket

0 commit comments

Comments
 (0)