Skip to content

Commit 20578cb

Browse files
authored
2 parents 0bad87b + fbe38bb commit 20578cb

345 files changed

Lines changed: 5132 additions & 3700 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [1.163.0](https://github.com/aws/aws-cdk/compare/v1.162.0...v1.163.0) (2022-07-06)
6+
7+
8+
### Features
9+
10+
* **cfnspec:** cloudformation spec v78.1.0 ([#20951](https://github.com/aws/aws-cdk/issues/20951)) ([20f5fa4](https://github.com/aws/aws-cdk/commit/20f5fa46d8ef262b84cddbd3c26c43199aa08a17))
11+
12+
13+
### Bug Fixes
14+
15+
* custom resources log sensitive `ResponseURL` field ([#20976](https://github.com/aws/aws-cdk/issues/20976)) ([8ac9540](https://github.com/aws/aws-cdk/commit/8ac9540487788bcb09cb0663b4b28dc9294a3656)), closes [#20899](https://github.com/aws/aws-cdk/issues/20899)
16+
517
## [1.162.0](https://github.com/aws/aws-cdk/compare/v1.161.0...v1.162.0) (2022-07-01)
618

719
## [1.161.0](https://github.com/aws/aws-cdk/compare/v1.160.0...v1.161.0) (2022-06-22)

packages/@aws-cdk/aws-autoscaling/test/aspects/require-imdsv2-aspect.test.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ describe('AutoScalingGroupRequireImdsv2Aspect', () => {
2626
machineImage: ec2.MachineImage.latestAmazonLinux(),
2727
});
2828
const launchConfig = asg.node.tryFindChild('LaunchConfig') as CfnLaunchConfiguration;
29-
launchConfig.metadataOptions = fakeToken();
29+
launchConfig.metadataOptions = cdk.Token.asAny({
30+
httpEndpoint: 'https://bla.com',
31+
} as CfnLaunchConfiguration.MetadataOptionsProperty);
3032
const aspect = new AutoScalingGroupRequireImdsv2Aspect();
3133

3234
// WHEN
@@ -61,12 +63,4 @@ describe('AutoScalingGroupRequireImdsv2Aspect', () => {
6163
},
6264
});
6365
});
64-
});
65-
66-
function fakeToken(): cdk.IResolvable {
67-
return {
68-
creationStack: [],
69-
resolve: (_c) => {},
70-
toString: () => '',
71-
};
72-
}
66+
});

packages/@aws-cdk/aws-dynamodb/lib/replica-handler/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { IsCompleteRequest, IsCompleteResponse, OnEventRequest, OnEventResp
33
import { DynamoDB } from 'aws-sdk'; // eslint-disable-line import/no-extraneous-dependencies
44

55
export async function onEventHandler(event: OnEventRequest): Promise<OnEventResponse> {
6-
console.log('Event: %j', event);
6+
console.log('Event: %j', { ...event, ResponseURL: '...' });
77

88
const dynamodb = new DynamoDB();
99

@@ -50,7 +50,7 @@ export async function onEventHandler(event: OnEventRequest): Promise<OnEventResp
5050
}
5151

5252
export async function isCompleteHandler(event: IsCompleteRequest): Promise<IsCompleteResponse> {
53-
console.log('Event: %j', event);
53+
console.log('Event: %j', { ...event, ResponseURL: '...' });
5454

5555
const dynamodb = new DynamoDB();
5656

packages/@aws-cdk/aws-dynamodb/test/global-replicas-provisioned.integ.snapshot/asset.5d88959fad6bed204d22b24bf15826b8c7591c586a60a313e54f1948d9cdf80f/index.js

Lines changed: 72 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/aws-ec2/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,8 @@
695695
"props-physical-name:@aws-cdk/aws-ec2.ClientVpnAuthorizationRuleProps",
696696
"props-physical-name:@aws-cdk/aws-ec2.ClientVpnRouteProps",
697697
"duration-prop-type:@aws-cdk/aws-ec2.ClientVpnEndpointOptions.sessionTimeout",
698-
"duration-prop-type:@aws-cdk/aws-ec2.ClientVpnEndpointProps.sessionTimeout"
698+
"duration-prop-type:@aws-cdk/aws-ec2.ClientVpnEndpointProps.sessionTimeout",
699+
"resource-attribute:@aws-cdk/aws-ec2.VpnGateway.vpnGatewayId"
699700
]
700701
},
701702
"stability": "stable",

packages/@aws-cdk/aws-ec2/test/aspects/require-imdsv2-aspect.test.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ describe('RequireImdsv2Aspect', () => {
178178
// GIVEN
179179
const launchTemplate = new LaunchTemplate(stack, 'LaunchTemplate');
180180
const cfnLaunchTemplate = launchTemplate.node.tryFindChild('Resource') as CfnLaunchTemplate;
181-
cfnLaunchTemplate.launchTemplateData = fakeToken();
181+
cfnLaunchTemplate.launchTemplateData = cdk.Token.asAny({
182+
kernelId: 'asfd',
183+
} as CfnLaunchTemplate.LaunchTemplateDataProperty);
182184
const aspect = new LaunchTemplateRequireImdsv2Aspect();
183185

184186
// WHEN
@@ -193,7 +195,9 @@ describe('RequireImdsv2Aspect', () => {
193195
const launchTemplate = new LaunchTemplate(stack, 'LaunchTemplate');
194196
const cfnLaunchTemplate = launchTemplate.node.tryFindChild('Resource') as CfnLaunchTemplate;
195197
cfnLaunchTemplate.launchTemplateData = {
196-
metadataOptions: fakeToken(),
198+
metadataOptions: cdk.Token.asAny({
199+
httpEndpoint: 'http://bla',
200+
} as CfnLaunchTemplate.MetadataOptionsProperty),
197201
} as CfnLaunchTemplate.LaunchTemplateDataProperty;
198202
const aspect = new LaunchTemplateRequireImdsv2Aspect();
199203

@@ -223,11 +227,3 @@ describe('RequireImdsv2Aspect', () => {
223227
});
224228
});
225229
});
226-
227-
function fakeToken(): cdk.IResolvable {
228-
return {
229-
creationStack: [],
230-
resolve: (_c) => {},
231-
toString: () => '',
232-
};
233-
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"version": "20.0.0",
3+
"files": {
4+
"2cc27380df0d00a7348926c8fe9b6ae056ac18cee09087d824792e9611cde97e": {
5+
"source": {
6+
"path": "aws-ecs-integ.template.json",
7+
"packaging": "file"
8+
},
9+
"destinations": {
10+
"current_account-current_region": {
11+
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12+
"objectKey": "2cc27380df0d00a7348926c8fe9b6ae056ac18cee09087d824792e9611cde97e.json",
13+
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
14+
}
15+
}
16+
}
17+
},
18+
"dockerImages": {}
19+
}

0 commit comments

Comments
 (0)