Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created September 7, 2019 02:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xximjasonxx/ed7ba635dd3b1bc0cbc7f39a71767b7e to your computer and use it in GitHub Desktop.
Save xximjasonxx/ed7ba635dd3b1bc0cbc7f39a71767b7e to your computer and use it in GitHub Desktop.
AWSTemplateFormatVersion: 2010-09-09
Description: "Creates infrastructure for Thumnbail Creator"
Resources:
BucketApiResource:
Type: AWS::ApiGateway::Resource
Properties:
PathPart: !Ref RawBucketName
RestApiId: !Ref ApiGatewayRest
ParentId: !GetAtt ApiGatewayRest.RootResourceId
DependsOn:
- ApiGatewayRest
ImagesApiResource:
Type: AWS::ApiGateway::Resource
Properties:
PathPart: "all-images"
RestApiId: !Ref ApiGatewayRest
ParentId: !GetAtt ApiGatewayRest.RootResourceId
DependsOn:
- ApiGatewayRest
BucketItemApiResource:
Type: AWS::ApiGateway::Resource
Properties:
PathPart: "{item}"
RestApiId: !Ref ApiGatewayRest
ParentId: !Ref BucketApiResource
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment