Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions infra/copilot/streamlit/addons/s3-marts-access-policy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Parameters:
App:
Type: String
Description: Your application's name.
Env:
Type: String
Description: The environment name your service, job, or workflow is being deployed to.
Name:
Type: String
Description: Your workload's name.

Resources:
S3martsBucketAccessPolicy:
Type: AWS::IAM::ManagedPolicy
Properties:
Description: "Access to S3 marts bucket"
PolicyDocument:
Version: "2012-10-17"
Statement:
- Sid: S3ObjectActions
Effect: Allow
Action: s3:GetObject
Resource: "arn:aws:s3:::caltrans-pems-prd-us-west-2-marts/*"
- Sid: S3ListAction
Effect: Allow
Action: s3:ListBucket
Resource: "arn:aws:s3:::caltrans-pems-prd-us-west-2-marts"

Outputs:
S3martsBucketAccessPolicyArn:
Description: "The ARN of the S3 marts bucket access policy"
Value: !Ref S3martsBucketAccessPolicy
Loading