Created
September 7, 2019 02:04
-
-
Save xximjasonxx/ed7ba635dd3b1bc0cbc7f39a71767b7e 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
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