Skip to content

Instantly share code, notes, and snippets.

@danielhelfand
Last active November 10, 2020 22:45
Show Gist options
  • Save danielhelfand/6ce66cd51e453868724d0a42d5b86789 to your computer and use it in GitHub Desktop.
Save danielhelfand/6ce66cd51e453868724d0a42d5b86789 to your computer and use it in GitHub Desktop.
#@ 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
#@data/values
---
deploy_env: dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment