Skip to content

Commit

Permalink
chore(release): 2.81.0 (#25741)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] committed May 25, 2023
2 parents bbdb16a + b56d193 commit bd920f2
Show file tree
Hide file tree
Showing 611 changed files with 9,812 additions and 1,533 deletions.
2 changes: 1 addition & 1 deletion .gitpod.yml
Expand Up @@ -3,7 +3,7 @@ github:
pullRequestsFromForks: true
addComment: true

image: jsii/superchain:1-buster-slim-node16
image: public.ecr.aws/jsii/superchain:1-buster-slim-node18

tasks:
- init: |
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.v2.alpha.md
Expand Up @@ -2,6 +2,13 @@

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.

## [2.81.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.80.0-alpha.0...v2.81.0-alpha.0) (2023-05-25)


### Features

* **batch-alpha:** tag instances launched from your managed CEs ([#25643](https://github.com/aws/aws-cdk/issues/25643)) ([8498740](https://github.com/aws/aws-cdk/commit/849874045cd1e877619c3b636e6f16a58c85b4a1))

## [2.80.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.79.1-alpha.0...v2.80.0-alpha.0) (2023-05-19)

## [2.79.1-alpha.0](https://github.com/aws/aws-cdk/compare/v2.79.0-alpha.0...v2.79.1-alpha.0) (2023-05-11)
Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG.v2.md
Expand Up @@ -2,6 +2,27 @@

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.

## [2.81.0](https://github.com/aws/aws-cdk/compare/v2.80.0...v2.81.0) (2023-05-25)


### Features

* **ec2:** added support for network interfaces on ec2 instances by providing an associatePublicIpAddress property ([#25441](https://github.com/aws/aws-cdk/issues/25441)) ([d43834d](https://github.com/aws/aws-cdk/commit/d43834d441ae8eb0192df45c1cfa0101e5533e4e)), closes [#17127](https://github.com/aws/aws-cdk/issues/17127)
* **glue:** Add G.4X and G.8X worker types for AWS Glue ([#25637](https://github.com/aws/aws-cdk/issues/25637)) ([1e4ffcd](https://github.com/aws/aws-cdk/commit/1e4ffcd83c10c9fb17dafc20c03ee9dff30d7e3e))
* **lambda:** lambda code assets are marked as deploy time assets ([#25705](https://github.com/aws/aws-cdk/issues/25705)) ([8a6b376](https://github.com/aws/aws-cdk/commit/8a6b3761adc4c4513bdf894ec5bfa1339b975c1f))
* **logs:** filterName property in MetricFilter ([#25246](https://github.com/aws/aws-cdk/issues/25246)) ([4f8aae5](https://github.com/aws/aws-cdk/commit/4f8aae50884b9238b3e0862874bcca6daea72a31))
* **s3-deployment:** add some convenient methods to `CacheControl` ([#25477](https://github.com/aws/aws-cdk/issues/25477)) ([21fc1d1](https://github.com/aws/aws-cdk/commit/21fc1d1945a5dd75a6d413f4fde563b2c9255c84))
* **secretsmanager:** add support for rotateImmediatelyOnUpdate for secret rotation schedule ([#25652](https://github.com/aws/aws-cdk/issues/25652)) ([cdafcc5](https://github.com/aws/aws-cdk/commit/cdafcc52ad4aea3ef7f1446da7521fb504cb33b9)), closes [#25365](https://github.com/aws/aws-cdk/issues/25365)
* new synthesizer separates assets out per CDK application ([#24430](https://github.com/aws/aws-cdk/issues/24430)) ([ae21ecc](https://github.com/aws/aws-cdk/commit/ae21ecc2a72be14ececdf0c5b8649e49dc456b0c))


### Bug Fixes

* **core:** allow override with cross-stack references ([#24920](https://github.com/aws/aws-cdk/issues/24920)) ([1135356](https://github.com/aws/aws-cdk/commit/11353560be08e86cd1604cd043657948038f0944)), closes [#18882](https://github.com/aws/aws-cdk/issues/18882)
* **core:** cdk deploy stops early if 2 stacks with a dependency between them share an asset ([#25719](https://github.com/aws/aws-cdk/issues/25719)) ([9e45095](https://github.com/aws/aws-cdk/commit/9e450954e26c2ae3c8ddf8fac77ee2dfcc9977bc)), closes [#25714](https://github.com/aws/aws-cdk/issues/25714)
* **lambda:** validation for FunctionUrlCorsOptions.maxAge ([#25495](https://github.com/aws/aws-cdk/issues/25495)) ([0f40880](https://github.com/aws/aws-cdk/commit/0f40880702fb01814b7bb35dea3a8154a7249659))
* **s3:** KMS encryption works fine for server access logging target buckets ([#25350](https://github.com/aws/aws-cdk/issues/25350)) ([6c5b67e](https://github.com/aws/aws-cdk/commit/6c5b67ed3174bfd27a473e1468dc18917c3d7bba))

## [2.80.0](https://github.com/aws/aws-cdk/compare/v2.79.1...v2.80.0) (2023-05-19)


Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -25,9 +25,9 @@
"fs-extra": "^9.1.0",
"graceful-fs": "^4.2.11",
"jest-junit": "^13.2.0",
"jsii-diff": "1.81.0",
"jsii-pacmak": "1.81.0",
"jsii-reflect": "1.81.0",
"jsii-diff": "1.82.0",
"jsii-pacmak": "1.82.0",
"jsii-reflect": "1.82.0",
"jsii-rosetta": "~5.0.8",
"lerna": "^6.6.1",
"nx": "^15.9.4",
Expand Down
1 change: 0 additions & 1 deletion packages/@aws-cdk-testing/cli-integ/lib/aws.ts
Expand Up @@ -185,7 +185,6 @@ type AwsCallIO<T> =
type First<T> = T extends [any, any] ? T[0] : never;
type Second<T> = T extends [any, any] ? T[1] : never;


export function isStackMissingError(e: Error) {
return e.message.indexOf('does not exist') > -1;
}
Expand Down
1 change: 0 additions & 1 deletion packages/@aws-cdk-testing/cli-integ/lib/files.ts
Expand Up @@ -45,7 +45,6 @@ export function findUp(name: string, directory: string = process.cwd()): string
return findUp(name, path.dirname(absoluteDirectory));
}


/**
* Docker-safe home directory
*/
Expand Down
Expand Up @@ -2,7 +2,6 @@ import PQueue from 'p-queue';
import { sleep } from '../aws';
import { MemoryStream } from '../corking';


export type ErrorResponse = 'fail' | 'skip' | 'retry';

/**
Expand Down
1 change: 0 additions & 1 deletion packages/@aws-cdk-testing/cli-integ/lib/with-sam.ts
Expand Up @@ -10,7 +10,6 @@ import { AwsContext, withAws } from './with-aws';
import { cloneDirectory, installNpmPackages, TestFixture, DEFAULT_TEST_TIMEOUT_S } from './with-cdk-app';
import { withTimeout } from './with-timeout';


export interface ActionOutput {
actionSucceeded?: boolean;
actionOutput?: any;
Expand Down
1 change: 0 additions & 1 deletion packages/@aws-cdk-testing/cli-integ/test/xpmutex.test.ts
Expand Up @@ -30,7 +30,6 @@ test('acquire waits', async () => {
await secondProcess;
});


/**
* Poll for some condition every 10ms
*/
Expand Down
Expand Up @@ -13,4 +13,3 @@ import { integTest, withTemporaryDirectory, ShellHelper, withPackages } from '..
})));
});


2 changes: 2 additions & 0 deletions packages/@aws-cdk-testing/framework-integ/.gitignore
Expand Up @@ -13,3 +13,5 @@ nyc.config.js
!**/*.snapshot/**/asset.*/*.d.ts

!**/*.snapshot/**/asset.*/**

**/*.ts.snapshot
Expand Up @@ -27,7 +27,6 @@ const restapi = new RestApi(stack, 'MyRestApi', {
},
});


restapi.root.addMethod('ANY', new MockIntegration({
integrationResponses: [
{ statusCode: '200' },
Expand Down
Expand Up @@ -92,7 +92,6 @@ const api2 = new Api(testCase, 'IntegApi2', {
path: 'items',
});


/**
* Test 1
*
Expand Down Expand Up @@ -151,7 +150,6 @@ secondDomain.addApiMapping(api2.restApi.deploymentStage, {
basePath: 'orders/v2',
});


/**
* Test 3
*
Expand All @@ -177,7 +175,6 @@ thirdDomain.addBasePathMapping(api2.restApi, {
basePath: 'v2',
});


/**
* -------------------------------------------------------
* ------------------------- THEN ------------------------
Expand Down
Expand Up @@ -3,7 +3,6 @@ import * as cdk from 'aws-cdk-lib';
import * as integ from '@aws-cdk/integ-tests-alpha';
import * as apigw from 'aws-cdk-lib/aws-apigateway';


const app = new cdk.App();
const stack = new cdk.Stack(app, 'GrantExecute');

Expand Down
Expand Up @@ -89,7 +89,6 @@ testDS.createResolver('MutationAddTest', {

const lambdaIAM = new Role(stack, 'LambdaIAM', { assumedBy: new ServicePrincipal('lambda') });


api.grant(lambdaIAM, IamResource.custom('types/Query/fields/getTests'), 'appsync:graphql');
api.grant(lambdaIAM, IamResource.ofType('test'), 'appsync:GraphQL');
api.grantMutation(lambdaIAM, 'addTest');
Expand Down
Expand Up @@ -7,7 +7,6 @@ import { GraphqlApi, LogConfig, SchemaFile } from 'aws-cdk-lib/aws-appsync';
const app = new App();
const stack = new Stack(app, 'AppSyncIntegLogRetention');


const retentionTime = RetentionDays.ONE_WEEK;
const logConfig: LogConfig = {
retention: retentionTime,
Expand Down
Expand Up @@ -53,7 +53,6 @@ const setDesired = integ.assertions.awsApiCall('AutoScaling', 'setDesiredCapacit
DesiredCapacity: 1,
});


const message = integ.assertions.awsApiCall('SQS', 'receiveMessage', {
QueueUrl: testCase.queueUrl,
});
Expand Down
Expand Up @@ -77,7 +77,6 @@ const integ = new IntegTest(app, 'cross-region-references', {
stackUpdateWorkflow: false,
});


/**
* Test that if the references are still in use, deleting the producer
* stack will fail
Expand Down
Expand Up @@ -32,7 +32,6 @@ const cloudFrontStack = new cdk.Stack(app, 'integ-cloudfront-stack', {
crossRegionReferences: true,
});


const hostedZone = route53.PublicHostedZone.fromHostedZoneAttributes(acmStack, 'HostedZone', {
hostedZoneId,
zoneName: hostedZoneName,
Expand Down
Expand Up @@ -3,7 +3,6 @@ import { TestOrigin } from './test-origin';
import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
import * as integ from '@aws-cdk/integ-tests-alpha';


const app = new cdk.App();
const stack = new cdk.Stack(app, 'integ-distribution-logbucket');

Expand Down
Expand Up @@ -38,7 +38,6 @@ new cloudtrail.Trail(stack, 'Trail', {
],
});


new integ.IntegTest(app, 'aws-cdk-cloudtrail-inshights', {
testCases: [stack],
});
Expand Down
Expand Up @@ -37,7 +37,6 @@ class SsmIncidentAlarmActionIntegrationTestStack extends Stack {

responsePlan.node.addDependency(replicationSet);


const metric = new cloudwatch.Metric({
namespace: 'CDK/Test',
metricName: 'Metric',
Expand Down
Expand Up @@ -28,7 +28,6 @@ getBuildProject.assertAtPath(
ExpectedResult.stringLikeRegexp('.+'),
);


const getBuildProjectBuildSpecArn = getBuildProject.getAttString('projects.0.source.buildspec');

// Assert that the buildspec for the project is in fact an S3 object arn
Expand Down
Expand Up @@ -4,7 +4,6 @@ import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as cdk from 'aws-cdk-lib';
import * as codedeploy from 'aws-cdk-lib/aws-codedeploy';


const app = new cdk.App();
const stack = new cdk.Stack(app, 'aws-cdk-codedeploy-lambda');

Expand Down
Expand Up @@ -92,7 +92,6 @@ getObjectCall.provider.addToRolePolicy({
Resource: ['*'],
});


const putObjectCall = integ.assertions.awsApiCall('S3', 'putObject', {
Bucket: bucket.bucketName,
Key: 'key',
Expand Down
Expand Up @@ -6,7 +6,6 @@ import { App, Stack, RemovalPolicy } from 'aws-cdk-lib';
import { IntegTest } from '@aws-cdk/integ-tests-alpha';
import { S3SourceAction, CodeBuildAction } from 'aws-cdk-lib/aws-codepipeline-actions';


const app = new App({
treeMetadata: false,
});
Expand All @@ -23,7 +22,6 @@ const stack2 = new Stack(app, 'integ-pipeline-consumer-stack', {
crossRegionReferences: true,
});


const key = new Key(stack1, 'ReplicationKey');
const bucket = new Bucket(stack1, 'ReplicationBucket', {
encryptionKey: key,
Expand Down
Expand Up @@ -2,7 +2,6 @@ import { Secret } from 'aws-cdk-lib/aws-secretsmanager';
import { App, CfnOutput, RemovalPolicy, Stack } from 'aws-cdk-lib';
import { ProviderAttribute, UserPool, UserPoolIdentityProviderGoogle } from 'aws-cdk-lib/aws-cognito';


/*
* Stack verification steps
* * Visit the URL provided by stack output 'SignInLink' in a browser, and verify the 'Google' sign in link shows up.
Expand Down
Expand Up @@ -32,7 +32,6 @@ driftRule.onComplianceChange('ComplianceChange', {
target: new targets.SnsTopic(complianceTopic),
});


new integ.IntegTest(app, 'aws-cdk-config-rule-integ', {
testCases: [stack],
});
Expand Up @@ -21,5 +21,4 @@ new IntegTest(app, 'aws-cdk-dynamodb-global-replicas-provisioned-test', {
testCases: [stack],
});


app.synth();
Expand Up @@ -24,7 +24,6 @@ export async function handler(event: AWSLambda.CloudFormationCustomResourceEvent
}).promise();
}


return {
Data: {
ServerCertificateArn: serverImport?.CertificateArn,
Expand Down
Expand Up @@ -24,7 +24,6 @@ export async function handler(event: AWSLambda.CloudFormationCustomResourceEvent
}).promise();
}


return {
Data: {
ServerCertificateArn: serverImport?.CertificateArn,
Expand Down
@@ -0,0 +1 @@
{"version":"31.0.0"}
@@ -0,0 +1,19 @@
{
"version": "31.0.0",
"files": {
"21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": {
"source": {
"path": "instancetestDefaultTestDeployAssert5516EAF1.template.json",
"packaging": "file"
},
"destinations": {
"current_account-current_region": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
}
},
"dockerImages": {}
}
@@ -0,0 +1,36 @@
{
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}
@@ -0,0 +1,19 @@
{
"version": "31.0.0",
"files": {
"488d9cf540c6790fc09af871e06438e043f47d03101ef192131f1dafbbb434cb": {
"source": {
"path": "integ-ec2-instance.template.json",
"packaging": "file"
},
"destinations": {
"current_account-current_region": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "488d9cf540c6790fc09af871e06438e043f47d03101ef192131f1dafbbb434cb.json",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
}
},
"dockerImages": {}
}

0 comments on commit bd920f2

Please sign in to comment.