Created
May 10, 2021 16:31
-
-
Save efekarakus/90ed75c5c7564237ba0354447ba2d739 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: The name of the service, job, or workflow being deployed. | |
Resources: | |
# Define the CopilotBucket as well here | |
BucketAccessPolicy: | |
Type: AWS::IAM::ManagedPolicy | |
Properties: | |
PolicyName: CopilotBucketAccessPolicy | |
PolicyDocument: | |
Version: 2012-10-17 | |
Statement: | |
- Sid: ReadAccess | |
Effect: Allow | |
Action: | |
- s3:GetObject | |
- s3:ListBucket | |
- s3:GetBucketPolicy | |
Resource: !Sub ${ CopilotBucket.Arn} | |
Outputs: | |
BucketAccessPolicyArn: | |
Description: "The ARN of the ManagedPolicy to attach to the task role." | |
Value: !Ref BucketAccessPolicy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment