Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
AWSTemplateFormatVersion: 2010-09-09
Description: Creating TestDeployment
Resources:
Prod:
Type: AWS::ApiGateway::Stage
Properties:
StageName: Prod
Description: Prod Stage
RestApiId: !Ref MyRestApi
DeploymentId: !Ref TestDeployment
DocumentationVersion: !Ref MyDocumentationVersion
ClientCertificateId: !Ref ClientCertificate
Variables:
Stack: Prod
MethodSettings:
- ResourcePath: /
HttpMethod: GET
MetricsEnabled: true
DataTraceEnabled: false
- ResourcePath: /stack
HttpMethod: POST
MetricsEnabled: true
DataTraceEnabled: false
ThrottlingBurstLimit: '999'
- ResourcePath: /stack
HttpMethod: GET
MetricsEnabled: true
DataTraceEnabled: false
ThrottlingBurstLimit: '555'
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
AWSTemplateFormatVersion: 2010-09-09
Description: Creating TestDeployment
Resources:
Prod:
Type: AWS::ApiGateway::Stage
Properties:
StageName: Prod
Description: Prod Stage
RestApiId: !Ref MyRestApi
DeploymentId: !Ref TestDeployment
DocumentationVersion: !Ref MyDocumentationVersion
ClientCertificateId: !Ref ClientCertificate
Variables:
Stack: Prod
MethodSettings:
- ResourcePath: /
HttpMethod: GET
MetricsEnabled: false
DataTraceEnabled: 'false'
- ResourcePath: /stack
HttpMethod: POST
DataTraceEnabled: 'false'
ThrottlingBurstLimit: '999'
- ResourcePath: /stack
HttpMethod: GET
MetricsEnabled: true
DataTraceEnabled: 'false'
ThrottlingBurstLimit: '555'
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,17 @@
"severity": "MEDIUM",
"line": 5,
"fileName": "positive4.json"
},
{
"queryName": "CloudWatch Metrics Disabled",
"severity": "MEDIUM",
"line": 18,
"fileName": "positive5.yaml"
},
{
"queryName": "CloudWatch Metrics Disabled",
"severity": "MEDIUM",
"line": 20,
"fileName": "positive5.yaml"
}
]
Loading