-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into use_the_same_docker_context_and_dockerfil…
…e_paths_as_the_cdk_is_using
- Loading branch information
Showing
7 changed files
with
231 additions
and
5 deletions.
There are no files selected for viewing
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
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
67 changes: 67 additions & 0 deletions
67
tests/functional/commands/validate/lib/models/api_with_custom_domain_route53_multiple.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
AWSTemplateFormatVersion: '2010-09-09' | ||
Transform: AWS::Serverless-2016-10-31 | ||
Description: > | ||
apigateway-2402 | ||
Sample SAM Template for apigateway-2402 | ||
Resources: | ||
|
||
ApiGatewayAdminOne: | ||
Type: AWS::Serverless::Api | ||
Properties: | ||
Name: App-Prod-Web | ||
StageName: Prod | ||
TracingEnabled: true | ||
MethodSettings: | ||
- LoggingLevel: Info | ||
ResourcePath: '/*' | ||
HttpMethod: '*' | ||
Domain: | ||
DomainName: admin.one.amazon.com | ||
CertificateArn: arn::cert::abc | ||
EndpointConfiguration: REGIONAL | ||
Route53: | ||
HostedZoneId: "abc123456" | ||
EndpointConfiguration: | ||
Type: REGIONAL | ||
|
||
|
||
ApiGatewayAdminTwo: | ||
Type: AWS::Serverless::Api | ||
Properties: | ||
Name: App-Prod-Web | ||
StageName: Prod | ||
TracingEnabled: true | ||
MethodSettings: | ||
- LoggingLevel: Info | ||
ResourcePath: '/*' | ||
HttpMethod: '*' | ||
Domain: | ||
DomainName: admin.two.amazon.com | ||
CertificateArn: arn::cert::abc | ||
EndpointConfiguration: REGIONAL | ||
Route53: | ||
HostedZoneId: "abc123456" | ||
EndpointConfiguration: | ||
Type: REGIONAL | ||
|
||
|
||
ApiGatewayAdminThree: | ||
Type: AWS::Serverless::Api | ||
Properties: | ||
Name: App-Prod-Web | ||
StageName: Prod | ||
TracingEnabled: true | ||
MethodSettings: | ||
- LoggingLevel: Info | ||
ResourcePath: '/*' | ||
HttpMethod: '*' | ||
Domain: | ||
DomainName: admin.three.amazon.com | ||
CertificateArn: arn::cert::abc | ||
EndpointConfiguration: REGIONAL | ||
Route53: | ||
HostedZoneId: "abc123456" | ||
EndpointConfiguration: | ||
Type: REGIONAL |
71 changes: 71 additions & 0 deletions
71
...s/validate/lib/models/api_with_custom_domain_route53_multiple_intrinsic_hostedzoneid.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
AWSTemplateFormatVersion: '2010-09-09' | ||
Transform: AWS::Serverless-2016-10-31 | ||
Description: > | ||
apigateway-2402 | ||
Sample SAM Template for apigateway-2402 | ||
Parameters: | ||
MyHostedZoneId: | ||
Type: String | ||
|
||
Resources: | ||
|
||
ApiGatewayAdminOne: | ||
Type: AWS::Serverless::Api | ||
Properties: | ||
Name: App-Prod-Web | ||
StageName: Prod | ||
TracingEnabled: true | ||
MethodSettings: | ||
- LoggingLevel: Info | ||
ResourcePath: '/*' | ||
HttpMethod: '*' | ||
Domain: | ||
DomainName: admin.one.amazon.com | ||
CertificateArn: arn::cert::abc | ||
EndpointConfiguration: REGIONAL | ||
Route53: | ||
HostedZoneId: !Ref MyHostedZoneId | ||
EndpointConfiguration: | ||
Type: REGIONAL | ||
|
||
|
||
ApiGatewayAdminTwo: | ||
Type: AWS::Serverless::Api | ||
Properties: | ||
Name: App-Prod-Web | ||
StageName: Prod | ||
TracingEnabled: true | ||
MethodSettings: | ||
- LoggingLevel: Info | ||
ResourcePath: '/*' | ||
HttpMethod: '*' | ||
Domain: | ||
DomainName: admin.two.amazon.com | ||
CertificateArn: arn::cert::abc | ||
EndpointConfiguration: REGIONAL | ||
Route53: | ||
HostedZoneId: !Sub "{{MyHostedZoneId}}" | ||
EndpointConfiguration: | ||
Type: REGIONAL | ||
|
||
|
||
ApiGatewayAdminThree: | ||
Type: AWS::Serverless::Api | ||
Properties: | ||
Name: App-Prod-Web | ||
StageName: Prod | ||
TracingEnabled: true | ||
MethodSettings: | ||
- LoggingLevel: Info | ||
ResourcePath: '/*' | ||
HttpMethod: '*' | ||
Domain: | ||
DomainName: admin.three.amazon.com | ||
CertificateArn: arn::cert::abc | ||
EndpointConfiguration: REGIONAL | ||
Route53: | ||
HostedZoneId: !Ref MyHostedZoneId | ||
EndpointConfiguration: | ||
Type: REGIONAL |
22 changes: 22 additions & 0 deletions
22
tests/functional/commands/validate/lib/models/api_with_fail_on_warnings.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Resources: | ||
ApiGatewayApi: | ||
Type: AWS::Serverless::Api | ||
Properties: | ||
StageName: prod | ||
FailOnWarnings: true | ||
ApiFunction: # Adds a GET api endpoint at "/" to the ApiGatewayApi via an Api event | ||
Type: AWS::Serverless::Function | ||
Properties: | ||
Events: | ||
ApiEvent: | ||
Type: Api | ||
Properties: | ||
Path: / | ||
Method: get | ||
RestApiId: | ||
Ref: ApiGatewayApi | ||
Runtime: python3.7 | ||
Handler: index.handler | ||
InlineCode: | | ||
def handler(event, context): | ||
return {'body': 'Hello World!', 'statusCode': 200} |
30 changes: 30 additions & 0 deletions
30
...functional/commands/validate/lib/models/http_api_with_custom_domain_route53_multiple.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Resources: | ||
MyApi1: | ||
Type: AWS::Serverless::HttpApi | ||
Properties: | ||
Domain: | ||
DomainName: admin.one.amazon.com | ||
CertificateArn: arn::cert::abc | ||
EndpointConfiguration: REGIONAL | ||
Route53: | ||
HostedZoneId: "abc123456" | ||
|
||
MyApi2: | ||
Type: AWS::Serverless::HttpApi | ||
Properties: | ||
Domain: | ||
DomainName: admin.two.amazon.com | ||
CertificateArn: arn::cert::abc | ||
EndpointConfiguration: REGIONAL | ||
Route53: | ||
HostedZoneId: "abc123456" | ||
|
||
MyApi3: | ||
Type: AWS::Serverless::HttpApi | ||
Properties: | ||
Domain: | ||
DomainName: admin.three.amazon.com | ||
CertificateArn: arn::cert::abc | ||
EndpointConfiguration: REGIONAL | ||
Route53: | ||
HostedZoneId: "abc123456" |
36 changes: 36 additions & 0 deletions
36
...unctional/commands/validate/lib/models/mixed_api_with_custom_domain_route53_multiple.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
AWSTemplateFormatVersion: '2010-09-09' | ||
Transform: AWS::Serverless-2016-10-31 | ||
Description: > | ||
apigateway-2402 | ||
Sample SAM Template for apigateway-2402 | ||
Resources: | ||
MyHttpApi: | ||
Type: AWS::Serverless::HttpApi | ||
Properties: | ||
Domain: | ||
DomainName: admin.one.amazon.com | ||
CertificateArn: arn::cert::abc | ||
EndpointConfiguration: REGIONAL | ||
Route53: | ||
HostedZoneId: "abc123456" | ||
|
||
MyRestApi: | ||
Type: AWS::Serverless::Api | ||
Properties: | ||
Name: App-Prod-Web | ||
StageName: Prod | ||
TracingEnabled: true | ||
MethodSettings: | ||
- LoggingLevel: Info | ||
ResourcePath: '/*' | ||
HttpMethod: '*' | ||
Domain: | ||
DomainName: admin.two.amazon.com | ||
CertificateArn: arn::cert::abc | ||
EndpointConfiguration: REGIONAL | ||
Route53: | ||
HostedZoneId: "abc123456" | ||
EndpointConfiguration: | ||
Type: REGIONAL |