Skip to content

Commit 807e9e7

Browse files
committed
fix s3 stack definition
1 parent cc61cbd commit 807e9e7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

resources/s3-stack.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,23 @@ AWSTemplateFormatVersion: '2010-09-09'
22
Transform: AWS::Serverless-2016-10-31
33

44
Parameters:
5-
ConfigFile:
5+
Environment:
66
Type: String
7+
Description: Path to the configuration file
8+
Region:
9+
Type: String
10+
Description: Region in which we are setting up
11+
712

813
Resources:
914

1015
S3Bucket:
1116
Type: AWS::S3::Bucket
1217
Properties:
13-
BucketName: !Sub 'raw-transactions-${ConfigFile.EnvironmentType}-${Region}'
18+
BucketName: !Sub
19+
- 'raw-transactions-${env}-${region}'
20+
- env: !Ref Environment
21+
region: !Ref Region
1422

1523
Outputs:
1624
S3BucketArn:

0 commit comments

Comments
 (0)