Skip to content

Instantly share code, notes, and snippets.

@sergueyarellano
Created December 4, 2020 21:14
Show Gist options
  • Save sergueyarellano/12e9482810410e896930001b23df27f4 to your computer and use it in GitHub Desktop.
Save sergueyarellano/12e9482810410e896930001b23df27f4 to your computer and use it in GitHub Desktop.
GatewayRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Principal:
Service:
- apigateway.amazonaws.com
Action:
- 'sts:AssumeRole'
Description: Gives swagger api endpoints access to S3
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess
RoleName: API-Gateway-S3-read-access-${opt:stage, 'dev'}
Path: /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment