Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added policy for s3 access #99

Merged
merged 1 commit into from
Dec 7, 2023
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
19 changes: 19 additions & 0 deletions apps/pre-award/copilot/environments/addons/form-uploads.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,22 @@ Resources:
"aws:SecureTransport": false
Bucket: !Ref FormUploadsBucket

FormsUploadBucketAccessPolicy:
Type: AWS::IAM::ManagedPolicy
Properties:
PolicyDocument:
Version: '2012-10-17'
Statement:
- Sid: S3FormUploadActions
Effect: Allow
Action:
- s3:Get*
- s3:List*
- s3:Describe*
- s3:PutObject
- s3:ReplicateObject
Resource: !Sub ${ FormUploadsBucket.Arn }

Outputs:
FormUploadsName:
Description: "The name of a user-defined bucket."
Expand All @@ -59,3 +75,6 @@ Outputs:
Value: !GetAtt FormUploadsBucket.Arn
Export:
Name: !Sub ${App}-${Env}-FormUploadsBucketARN
FormsUploadBucketAccessPolicyArn:
Description: "The ARN of the Forms Upload bucket access policy"
Value: !Ref FormsUploadBucketAccessPolicy
Loading