Created
March 24, 2021 20:22
-
-
Save rainabba/1a824c0cbe2e9de9b9a4b67bbe936bf8 to your computer and use it in GitHub Desktop.
Where did 'IntelDataApi' come from and why is my deploy failing because of it?
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 | |
Transform: 'AWS::Serverless-2016-10-31' | |
# ... much omitted because it's unrelated | |
Globals: | |
Api: | |
OpenApiVersion: 3.0.1 | |
Auth: | |
DefaultAuthorizer: NONE # AWS_IAM changed because we can't override on lambdas at this time. See https://github.com/aws/serverless-application-model/issues/984 | |
MethodSettings: | |
- LoggingLevel: INFO | |
ResourcePath: '/*' # allows for logging on any resource | |
HttpMethod: '*' # allows for logging on any method | |
MinimumCompressionSize: 4096 | |
Function: | |
Runtime: nodejs12.x | |
Timeout: 5 | |
Environment: | |
Variables: | |
env: !Ref ENV | |
LOG_LEVEL: !Ref logLevel | |
LAMBDA_INSIGHTS_LOG_LEVEL: info | |
Resources: | |
# Api Gateway | |
myTestApi: | |
Type: 'AWS::Serverless::Api' | |
Properties: | |
Name: !Sub ${ENV}-my-test-api | |
Domain: | |
BasePath: !Ref StageName | |
DomainName: !Ref CustomDomainName | |
CertificateArn: !If [ CreateCert, !Ref AutoGeneratedCert, !Ref CertArn ] | |
Route53: | |
HostedZoneId: !If [ CreateZone, !Ref HostedZoneId, !Ref ZoneId ] | |
EvaluateTargetHealth: true | |
IpV6: true | |
StageName: !Ref StageName | |
EndpointConfiguration: REGIONAL | |
DefinitionBody: | |
Fn::Transform: | |
Name: AWS::Include | |
Parameters: | |
Location: openapi.yaml | |
Auth: | |
UsagePlan: | |
UsagePlanName: myTestUsagePlan | |
CreateUsagePlan: SHARED | |
Description: Public usage plan for ITPS public/no-auth routes | |
Throttle: | |
BurstLimit: 1000 | |
RateLimit: 500 | |
Tags: | |
service: my-test | |
env: !Sub ${ENV} | |
Variables: | |
LOG_LEVEL: "99" | |
env: !Sub ${ENV} |
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
"ServerlessUsagePlan": { | |
"Type": "AWS::ApiGateway::UsagePlan", | |
"Properties": { | |
"ApiStages": [ | |
{ | |
"ApiId": { | |
"Ref": "IntelDatApi" | |
}, | |
"Stage": { | |
"Ref": "IntelDatApiProdStage" | |
} | |
}, | |
{ | |
"ApiId": { | |
"Ref": "myTestApi" | |
}, | |
"Stage": { | |
"Ref": "myTestApiStage" | |
} | |
} | |
], | |
"UsagePlanName": "myTestUsagePlan", | |
"Throttle": { | |
"RateLimit": 500, | |
"BurstLimit": 1000 | |
}, | |
"Description": "Public usage plan for ITPS public/no-auth routes" | |
}, | |
"DependsOn": [ | |
"IntelDatApi", | |
"myTestApi" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you create an issue in the SAM repo? I think this is best tracked there since CloudFormation calls SAM to do the transformation