Skip to content

Commit 566c3b5

Browse files
authored
Fix: policy to access the S3 marts bucket (#190)
2 parents a1ed1d3 + 843eb60 commit 566c3b5

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Parameters:
2+
App:
3+
Type: String
4+
Description: Your application's name.
5+
Env:
6+
Type: String
7+
Description: The environment name your service, job, or workflow is being deployed to.
8+
Name:
9+
Type: String
10+
Description: Your workload's name.
11+
12+
Resources:
13+
S3martsBucketAccessPolicy:
14+
Type: AWS::IAM::ManagedPolicy
15+
Properties:
16+
Description: "Access to S3 marts bucket"
17+
PolicyDocument:
18+
Version: "2012-10-17"
19+
Statement:
20+
- Sid: S3ObjectActions
21+
Effect: Allow
22+
Action: s3:GetObject
23+
Resource: "arn:aws:s3:::caltrans-pems-prd-us-west-2-marts/*"
24+
- Sid: S3ListAction
25+
Effect: Allow
26+
Action: s3:ListBucket
27+
Resource: "arn:aws:s3:::caltrans-pems-prd-us-west-2-marts"
28+
29+
Outputs:
30+
S3martsBucketAccessPolicyArn:
31+
Description: "The ARN of the S3 marts bucket access policy"
32+
Value: !Ref S3martsBucketAccessPolicy

0 commit comments

Comments
 (0)