Skip to content

Commit

Permalink
chore(release): 1.163.0 (#21016)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] committed Jul 6, 2022
2 parents 0bad87b + fbe38bb commit 20578cb
Show file tree
Hide file tree
Showing 345 changed files with 5,132 additions and 3,700 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

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.

## [1.163.0](https://github.com/aws/aws-cdk/compare/v1.162.0...v1.163.0) (2022-07-06)


### Features

* **cfnspec:** cloudformation spec v78.1.0 ([#20951](https://github.com/aws/aws-cdk/issues/20951)) ([20f5fa4](https://github.com/aws/aws-cdk/commit/20f5fa46d8ef262b84cddbd3c26c43199aa08a17))


### Bug Fixes

* 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)

## [1.162.0](https://github.com/aws/aws-cdk/compare/v1.161.0...v1.162.0) (2022-07-01)

## [1.161.0](https://github.com/aws/aws-cdk/compare/v1.160.0...v1.161.0) (2022-06-22)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ describe('AutoScalingGroupRequireImdsv2Aspect', () => {
machineImage: ec2.MachineImage.latestAmazonLinux(),
});
const launchConfig = asg.node.tryFindChild('LaunchConfig') as CfnLaunchConfiguration;
launchConfig.metadataOptions = fakeToken();
launchConfig.metadataOptions = cdk.Token.asAny({
httpEndpoint: 'https://bla.com',
} as CfnLaunchConfiguration.MetadataOptionsProperty);
const aspect = new AutoScalingGroupRequireImdsv2Aspect();

// WHEN
Expand Down Expand Up @@ -61,12 +63,4 @@ describe('AutoScalingGroupRequireImdsv2Aspect', () => {
},
});
});
});

function fakeToken(): cdk.IResolvable {
return {
creationStack: [],
resolve: (_c) => {},
toString: () => '',
};
}
});
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-dynamodb/lib/replica-handler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { IsCompleteRequest, IsCompleteResponse, OnEventRequest, OnEventResp
import { DynamoDB } from 'aws-sdk'; // eslint-disable-line import/no-extraneous-dependencies

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

const dynamodb = new DynamoDB();

Expand Down Expand Up @@ -50,7 +50,7 @@ export async function onEventHandler(event: OnEventRequest): Promise<OnEventResp
}

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

const dynamodb = new DynamoDB();

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-ec2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,8 @@
"props-physical-name:@aws-cdk/aws-ec2.ClientVpnAuthorizationRuleProps",
"props-physical-name:@aws-cdk/aws-ec2.ClientVpnRouteProps",
"duration-prop-type:@aws-cdk/aws-ec2.ClientVpnEndpointOptions.sessionTimeout",
"duration-prop-type:@aws-cdk/aws-ec2.ClientVpnEndpointProps.sessionTimeout"
"duration-prop-type:@aws-cdk/aws-ec2.ClientVpnEndpointProps.sessionTimeout",
"resource-attribute:@aws-cdk/aws-ec2.VpnGateway.vpnGatewayId"
]
},
"stability": "stable",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ describe('RequireImdsv2Aspect', () => {
// GIVEN
const launchTemplate = new LaunchTemplate(stack, 'LaunchTemplate');
const cfnLaunchTemplate = launchTemplate.node.tryFindChild('Resource') as CfnLaunchTemplate;
cfnLaunchTemplate.launchTemplateData = fakeToken();
cfnLaunchTemplate.launchTemplateData = cdk.Token.asAny({
kernelId: 'asfd',
} as CfnLaunchTemplate.LaunchTemplateDataProperty);
const aspect = new LaunchTemplateRequireImdsv2Aspect();

// WHEN
Expand All @@ -193,7 +195,9 @@ describe('RequireImdsv2Aspect', () => {
const launchTemplate = new LaunchTemplate(stack, 'LaunchTemplate');
const cfnLaunchTemplate = launchTemplate.node.tryFindChild('Resource') as CfnLaunchTemplate;
cfnLaunchTemplate.launchTemplateData = {
metadataOptions: fakeToken(),
metadataOptions: cdk.Token.asAny({
httpEndpoint: 'http://bla',
} as CfnLaunchTemplate.MetadataOptionsProperty),
} as CfnLaunchTemplate.LaunchTemplateDataProperty;
const aspect = new LaunchTemplateRequireImdsv2Aspect();

Expand Down Expand Up @@ -223,11 +227,3 @@ describe('RequireImdsv2Aspect', () => {
});
});
});

function fakeToken(): cdk.IResolvable {
return {
creationStack: [],
resolve: (_c) => {},
toString: () => '',
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version": "20.0.0",
"files": {
"2cc27380df0d00a7348926c8fe9b6ae056ac18cee09087d824792e9611cde97e": {
"source": {
"path": "aws-ecs-integ.template.json",
"packaging": "file"
},
"destinations": {
"current_account-current_region": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "2cc27380df0d00a7348926c8fe9b6ae056ac18cee09087d824792e9611cde97e.json",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
}
},
"dockerImages": {}
}
Loading

0 comments on commit 20578cb

Please sign in to comment.