Skip to content

Instantly share code, notes, and snippets.

@sergueyarellano
Created December 4, 2020 21:08
Show Gist options
  • Save sergueyarellano/e95f546645888dcc5aa9c855e9aa7da1 to your computer and use it in GitHub Desktop.
Save sergueyarellano/e95f546645888dcc5aa9c855e9aa7da1 to your computer and use it in GitHub Desktop.
ApiGatewayMethodGetRoot:
Type: AWS::ApiGateway::Method
Description: Located at root resource to proxy to S3 bucket website
Properties:
HttpMethod: GET
ResourceId:
Fn::GetAtt: [ApiGatewayRestApi, RootResourceId]
RestApiId: !Ref ApiGatewayRestApi
ApiKeyRequired: false
AuthorizationType: NONE
Integration:
IntegrationHttpMethod: GET
Type: HTTP_PROXY
Uri:
Fn::GetAtt: [ SwaggerSite, WebsiteURL ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment