Last active
November 10, 2020 22:45
-
-
Save danielhelfand/6ce66cd51e453868724d0a42d5b86789 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
#@ load("@ytt:data", "data") | |
AWSTemplateFormatVersion: '2010-09-09' | |
Transform: AWS::Serverless-2016-10-31 | |
Description: My REST API | |
#! Parameters | |
Parameters: | |
DeployEnv: | |
Type: String | |
Default: #@ data.values.deploy_env | |
UsagePlanType: | |
Type: String | |
Default: PER_API | |
#! Conditions | |
#! Globals | |
Globals: | |
HttpApi: | |
Auth: | |
ApiKeyRequired: true | |
UsagePlan: | |
CreateUsagePlan: !Ref UsagePlanType | |
#! Resources | |
Resources: | |
RestApi: | |
Type: AWS::Serverless::HttpApi | |
Properties: | |
StageName: !Ref DeployEnv | |
#! Outputs |
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
#@data/values | |
--- | |
deploy_env: dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment