Skip to content

Commit 64c1dd7

Browse files
authored
Merge branch 'master' into feat/aws-appsync-custom-domain
2 parents 0856ecf + 49ea263 commit 64c1dd7

File tree

9 files changed

+46
-22
lines changed

9 files changed

+46
-22
lines changed

Diff for: CHANGELOG.md

+24
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,30 @@
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.149.0](https://github.com/aws/aws-cdk/compare/v1.148.0...v1.149.0) (2022-03-17)
6+
7+
8+
### Features
9+
10+
* **appsync:** add OpenSearch domain data source ([#16529](https://github.com/aws/aws-cdk/issues/16529)) ([922a9dc](https://github.com/aws/aws-cdk/commit/922a9dcf07174334ac67b9fcbacb01aafdfd9c6a)), closes [#16528](https://github.com/aws/aws-cdk/issues/16528)
11+
* **assertions:** Add the `hasNoXXX` methods. ([#19330](https://github.com/aws/aws-cdk/issues/19330)) ([6bdc9eb](https://github.com/aws/aws-cdk/commit/6bdc9eb52608329f1e66c420cb6c61aa942d17b0)), closes [#18874](https://github.com/aws/aws-cdk/issues/18874)
12+
* **aws-lambda-nodejs:** support additional esbuild configurations ([#17788](https://github.com/aws/aws-cdk/issues/17788)) ([ab313a4](https://github.com/aws/aws-cdk/commit/ab313a4abbec14a1886a7c87673dbc66354811ef))
13+
* **cfnspec:** cloudformation spec v60.0.0 ([#19347](https://github.com/aws/aws-cdk/issues/19347)) ([20da648](https://github.com/aws/aws-cdk/commit/20da648cebddd6feaf8a54d2bf40f3ba3bd30979))
14+
* **cli:** parallel asset publishing ([#19367](https://github.com/aws/aws-cdk/issues/19367)) ([c8cafef](https://github.com/aws/aws-cdk/commit/c8cafefc4cd98e7217973cd9eb0e92263a916b4f)), closes [#19193](https://github.com/aws/aws-cdk/issues/19193)
15+
* **ec2:** add support for x2idn and x2iedn instances ([#19334](https://github.com/aws/aws-cdk/issues/19334)) ([9699efc](https://github.com/aws/aws-cdk/commit/9699efc0c0b0e2b265daf824147be2827555cafa))
16+
* **elbv2:** add name validation for target group and load balancer names ([#19385](https://github.com/aws/aws-cdk/issues/19385)) ([97e0973](https://github.com/aws/aws-cdk/commit/97e09730cbb7c155e6697ace166348064d810449)), closes [/docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html#cfn-elasticloadbalancingv2](https://github.com/aws//docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html/issues/cfn-elasticloadbalancingv2) [/docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2](https://github.com/aws//docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html/issues/cfn-elasticloadbalancingv2)
17+
* **iotevents:** support SetVariable action ([#19305](https://github.com/aws/aws-cdk/issues/19305)) ([c222b12](https://github.com/aws/aws-cdk/commit/c222b122206e00dc9932639efd54d78a16ebf6d3))
18+
* **lambda:** dotnet6 runtime ([#19144](https://github.com/aws/aws-cdk/issues/19144)) ([bbed27d](https://github.com/aws/aws-cdk/commit/bbed27d95ab2724db937964d01aec5564a77e84f))
19+
* **synthetics:** add vpc configuration ([#18447](https://github.com/aws/aws-cdk/issues/18447)) ([c991e92](https://github.com/aws/aws-cdk/commit/c991e92453034330b68daa5b5721119e770b6109)), closes [#11865](https://github.com/aws/aws-cdk/issues/11865) [#9954](https://github.com/aws/aws-cdk/issues/9954)
20+
21+
22+
### Bug Fixes
23+
24+
* **cli:** failure to load malformed YAML is swallowed ([#19338](https://github.com/aws/aws-cdk/issues/19338)) ([1875c28](https://github.com/aws/aws-cdk/commit/1875c28865690d59c22939039a5d0e37039ab63c)), closes [#19335](https://github.com/aws/aws-cdk/issues/19335)
25+
* **lambda-event-sources:** increase batch size restriction ([#19317](https://github.com/aws/aws-cdk/issues/19317)) ([1bc5144](https://github.com/aws/aws-cdk/commit/1bc5144b05938829f90b89001ccda8fd4aefe343)), closes [#19285](https://github.com/aws/aws-cdk/issues/19285)
26+
* **lambda-nodejs:** cannot use esbuildArgs with older esbuild versions ([#19343](https://github.com/aws/aws-cdk/issues/19343)) ([59a4d81](https://github.com/aws/aws-cdk/commit/59a4d81cc712eedfd755232d157a2e492eb3d886))
27+
* **stepfunctions-tasks:** migrate from deprecated batch properties ([#19298](https://github.com/aws/aws-cdk/issues/19298)) ([75f5b3b](https://github.com/aws/aws-cdk/commit/75f5b3b69abf592b2c6d0ec6c19c374754e50f97)), closes [#18993](https://github.com/aws/aws-cdk/issues/18993)
28+
529
## [1.148.0](https://github.com/aws/aws-cdk/compare/v1.147.0...v1.148.0) (2022-03-09)
630

731

Diff for: packages/@aws-cdk/aws-events/lib/rule.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ export class Rule extends Resource implements IRule {
397397
});
398398
new CfnEventBusPolicy(eventBusPolicyStack, 'GivePermToOtherAccount', {
399399
action: 'events:PutEvents',
400-
statementId: `Allow-account-${sourceAccount}`,
400+
statementId: `Allow-account-${sourceAccount}-${this.node.addr}`,
401401
principal: sourceAccount,
402402
});
403403
}

Diff for: packages/@aws-cdk/aws-events/test/rule.test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,7 @@ describe('rule', () => {
901901
const app = new cdk.App();
902902

903903
const sourceAccount = '123456789012';
904+
const nodeAddr = 'c810f4680339b01edf1f157c4fd07da73469742773';
904905
const sourceStack = new cdk.Stack(app, 'SourceStack', {
905906
env: {
906907
account: sourceAccount,
@@ -982,7 +983,7 @@ describe('rule', () => {
982983
const eventBusPolicyStack = app.node.findChild(`EventBusPolicy-${sourceAccount}-us-west-2-${targetAccount}`) as cdk.Stack;
983984
Template.fromStack(eventBusPolicyStack).hasResourceProperties('AWS::Events::EventBusPolicy', {
984985
'Action': 'events:PutEvents',
985-
'StatementId': `Allow-account-${sourceAccount}`,
986+
'StatementId': `Allow-account-${sourceAccount}-${nodeAddr}`,
986987
'Principal': sourceAccount,
987988
});
988989
});

Diff for: packages/@aws-cdk/core/lib/stack-synthesizers/_shared.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function collectStackMetadata(stack: Stack) {
9595
}
9696

9797
function findParentStack(node: IConstruct): Stack | undefined {
98-
if (node instanceof Stack && node.nestedStackParent === undefined) {
98+
if (Stack.isStack(node) && node.nestedStackParent === undefined) {
9999
return node;
100100
}
101101

@@ -183,4 +183,4 @@ export function stackTemplateFileAsset(stack: Stack, session: ISynthesisSession)
183183
packaging: FileAssetPackaging.FILE,
184184
sourceHash,
185185
};
186-
}
186+
}

Diff for: packages/@aws-cdk/example-construct-library/package.json

-3
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,5 @@
111111
"env": {
112112
"AWSLINT_BASE_CONSTRUCT": true
113113
}
114-
},
115-
"ubergen": {
116-
"exclude": true
117114
}
118115
}

Diff for: packages/aws-cdk/lib/api/bootstrap/bootstrap-template.yaml

+15-1
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,20 @@ Resources:
209209
- HasCustomContainerAssetsRepositoryName
210210
- Fn::Sub: "${ContainerAssetsRepositoryName}"
211211
- Fn::Sub: cdk-${Qualifier}-container-assets-${AWS::AccountId}-${AWS::Region}
212+
RepositoryPolicyText:
213+
Version: "2012-10-17"
214+
Statement:
215+
# Necessary for Lambda container images
216+
# https://docs.aws.amazon.com/lambda/latest/dg/configuration-images.html#configuration-images-permissions
217+
- Sid: LambdaECRImageRetrievalPolicy
218+
Effect: Allow
219+
Principal: { Service: "lambda.amazonaws.com" }
220+
Action:
221+
- ecr:BatchGetImage
222+
- ecr:GetDownloadUrlForLayer
223+
Condition:
224+
StringLike:
225+
"aws:sourceArn": { "Fn::Sub": "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*" }
212226
FilePublishingRole:
213227
Type: AWS::IAM::Role
214228
Properties:
@@ -493,7 +507,7 @@ Resources:
493507
Type: String
494508
Name:
495509
Fn::Sub: '/cdk-bootstrap/${Qualifier}/version'
496-
Value: '10'
510+
Value: '11'
497511
Outputs:
498512
BucketName:
499513
Description: The name of the S3 bucket owned by the CDK toolkit stack

Diff for: tools/@aws-cdk/pkglint/lib/rules.ts

-12
Original file line numberDiff line numberDiff line change
@@ -1733,18 +1733,6 @@ export class UbergenPackageVisibility extends ValidationRule {
17331733
},
17341734
});
17351735
}
1736-
} else {
1737-
if (pkg.json.private && !pkg.json.ubergen?.exclude) {
1738-
pkg.report({
1739-
ruleName: this.name,
1740-
message: 'ubergen.exclude must be configured for private packages',
1741-
fix: () => {
1742-
pkg.json.ubergen = {
1743-
exclude: true,
1744-
};
1745-
},
1746-
});
1747-
}
17481736
}
17491737
}
17501738
}

Diff for: tools/@aws-cdk/ubergen/bin/ubergen.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ async function findLibrariesToPackage(uberPackageJson: PackageJson): Promise<rea
129129
for (const dir of await fs.readdir(librariesRoot)) {
130130
const packageJson = await fs.readJson(path.resolve(librariesRoot, dir, 'package.json'));
131131

132-
if (packageJson.ubergen?.exclude) {
132+
if (packageJson.private || packageJson.ubergen?.exclude) {
133133
console.log(`\t⚠️ Skipping (ubergen excluded): ${packageJson.name}`);
134134
continue;
135135
} else if (packageJson.jsii == null ) {

Diff for: version.v1.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "1.148.0"
2+
"version": "1.149.0"
33
}

0 commit comments

Comments
 (0)