Skip to content

Commit

Permalink
Merge branch 'master' into prpagate-ec2-tags-to-volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Dec 9, 2021
2 parents f0e08b8 + 0b80db5 commit f527c67
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-apigateway/lib/stage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export class Stage extends Resource implements IStage {
cacheDataEncrypted: options.cacheDataEncrypted,
cacheTtlInSeconds: options.cacheTtl && options.cacheTtl.toSeconds(),
cachingEnabled: options.cachingEnabled,
dataTraceEnabled: options.dataTraceEnabled,
dataTraceEnabled: options.dataTraceEnabled ?? false,
loggingLevel: options.loggingLevel,
metricsEnabled: options.metricsEnabled,
throttlingBurstLimit: options.throttlingBurstLimit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
},
{
"CachingEnabled": true,
"DataTraceEnabled": false,
"HttpMethod": "GET",
"ResourcePath": "/~1api~1appliances"
}
Expand Down
4 changes: 4 additions & 0 deletions packages/@aws-cdk/aws-apigateway/test/stage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ describe('stage', () => {
expect(stack).toHaveResource('AWS::ApiGateway::Stage', {
MethodSettings: [
{
DataTraceEnabled: false,
HttpMethod: '*',
LoggingLevel: 'INFO',
ResourcePath: '/*',
Expand Down Expand Up @@ -119,12 +120,14 @@ describe('stage', () => {
expect(stack).toHaveResource('AWS::ApiGateway::Stage', {
MethodSettings: [
{
DataTraceEnabled: false,
HttpMethod: '*',
LoggingLevel: 'INFO',
ResourcePath: '/*',
ThrottlingRateLimit: 12,
},
{
DataTraceEnabled: false,
HttpMethod: 'GET',
LoggingLevel: 'ERROR',
ResourcePath: '/~1goo~1bar',
Expand Down Expand Up @@ -207,6 +210,7 @@ describe('stage', () => {
CacheClusterSize: '0.5',
MethodSettings: [
{
DataTraceEnabled: false,
CachingEnabled: true,
HttpMethod: '*',
ResourcePath: '/*',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export class CrossRegionSupportConstruct extends Construct {
bucketName: cdk.PhysicalName.GENERATE_IF_NEEDED,
encryption: encryptionAlias ? s3.BucketEncryption.KMS : s3.BucketEncryption.KMS_MANAGED,
encryptionKey: encryptionAlias,
blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL,
});
}
}
Expand Down
9 changes: 8 additions & 1 deletion packages/@aws-cdk/aws-codepipeline/test/cross-env.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,14 @@ describe.each([

// THEN
expect(supportStack).not.toHaveResource('AWS::KMS::Key');
expect(supportStack).toHaveResource('AWS::S3::Bucket');
expect(supportStack).toHaveResourceLike('AWS::S3::Bucket', {
PublicAccessBlockConfiguration: {
BlockPublicAcls: true,
BlockPublicPolicy: true,
IgnorePublicAcls: true,
RestrictPublicBuckets: true,
},
});
});

test('when twiddling another stack', () => {
Expand Down

0 comments on commit f527c67

Please sign in to comment.