Skip to content

Commit

Permalink
chore(release): 1.200.0 (#25323)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Apr 26, 2023
2 parents 5e13cf6 + a8fa955 commit 516cb3c
Show file tree
Hide file tree
Showing 60 changed files with 6,951 additions and 6,580 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
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.

## [1.200.0](https://github.com/aws/aws-cdk/compare/v1.199.0...v1.200.0) (2023-04-26)


### Bug Fixes

* **pipelines:** CodeBuild Action role can be assumed by too many identities ([#25318](https://github.com/aws/aws-cdk/issues/25318)) ([8ceae2e](https://github.com/aws/aws-cdk/commit/8ceae2e6baae9041f24b9ea347366701715aa80f))

## [1.199.0](https://github.com/aws/aws-cdk/compare/v1.198.1...v1.199.0) (2023-04-19)


Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ it appropriate permissions:

```ts
const myRole = new iam.Role(this, 'My Role', {
assumedBy: new iam.ServicePrincipal('sns.amazonaws.com'),
assumedBy: new iam.ServicePrincipal('lambda.amazonaws.com'),
});

const fn = new lambda.Function(this, 'MyFunction', {
Expand Down
11,936 changes: 6,059 additions & 5,877 deletions packages/@aws-cdk/cfnspec/spec-source/cfn-docs/cfn-docs.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
awscli==1.27.114
awscli==1.27.118
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,7 @@ export class CodeBuildFactory implements ICodePipelineActionFactory {
const actionRole = this.props.actionRole
?? options.pipeline.node.tryFindChild(actionRoleCid) as iam.IRole
?? new iam.Role(options.pipeline, actionRoleCid, {
assumedBy: new iam.PrincipalWithConditions(new iam.AccountRootPrincipal(), {
Bool: { 'aws:ViaAWSService': iam.ServicePrincipal.servicePrincipalName('codepipeline.amazonaws.com') },
}),
assumedBy: options.pipeline.pipeline.role,
});

stage.addAction(new codepipeline_actions.CodeBuildAction({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,7 @@ test('CodeBuild action role has the right AssumeRolePolicyDocument', () => {
{
Action: 'sts:AssumeRole',
Principal: {
AWS: { 'Fn::Join': ['', ['arn:', { Ref: 'AWS::Partition' }, ':iam::123pipeline:root']] },
},
Condition: {
Bool: {
'aws:ViaAWSService': 'codepipeline.amazonaws.com',
},
AWS: { 'Fn::GetAtt': ['CdkPipelineRoleC09C4D44', 'Arn'] },
},
},
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"version": "19.0.0",
"version": "21.0.0",
"files": {
"09ed6a107711fc77b4417fe759eedb1920ea48ea07d68490b9973255f017840d": {
"a847a27eed9056ff8ff8fb030b376a5a8f1cd0c253c0918cd6ed1c23ad26b3ed": {
"source": {
"path": "PipelineStack.template.json",
"packaging": "file"
},
"destinations": {
"current_account-current_region": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "09ed6a107711fc77b4417fe759eedb1920ea48ea07d68490b9973255f017840d.json",
"objectKey": "a847a27eed9056ff8ff8fb030b376a5a8f1cd0c253c0918cd6ed1c23ad26b3ed.json",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1265,27 +1265,12 @@
"Statement": [
{
"Action": "sts:AssumeRole",
"Condition": {
"Bool": {
"aws:ViaAWSService": "codepipeline.amazonaws.com"
}
},
"Effect": "Allow",
"Principal": {
"AWS": {
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":iam::",
{
"Ref": "AWS::AccountId"
},
":root"
]
"Fn::GetAtt": [
"PipelineRoleB27FAA37",
"Arn"
]
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "19.0.0",
"version": "21.0.0",
"files": {
"8289faf53c7da377bb2b90615999171adef5e1d8f6b88810e5fef75e6ca09ba5": {
"source": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"19.0.0"}
{"version":"21.0.0"}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "19.0.0",
"version": "21.0.0",
"artifacts": {
"PipelineStackBetaStack1E6541489.assets": {
"type": "cdk:asset-manifest",
Expand Down Expand Up @@ -39,16 +39,16 @@
"type": "aws:cdk:logicalId",
"data": "OtherQueue60B686DC",
"trace": [
"new Queue (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/aws-sqs/lib/queue.js:89:23)",
"new Queue (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/aws-sqs/lib/queue.js:88:23)",
"new AppStage (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/pipelines/test/integ.newpipeline-with-vpc.js:39:9)",
"new PipelineStack (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/pipelines/test/integ.newpipeline-with-vpc.js:26:27)",
"Object.<anonymous> (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/pipelines/test/integ.newpipeline-with-vpc.js:47:1)",
"Module._compile (node:internal/modules/cjs/loader:1105:14)",
"Module._extensions..js (node:internal/modules/cjs/loader:1159:10)",
"Module.load (node:internal/modules/cjs/loader:981:32)",
"Module._load (node:internal/modules/cjs/loader:827:12)",
"Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)",
"node:internal/main/run_main_module:17:47"
"Module._compile (node:internal/modules/cjs/loader:1159:14)",
"Module._extensions..js (node:internal/modules/cjs/loader:1213:10)",
"Module.load (node:internal/modules/cjs/loader:1037:32)",
"Module._load (node:internal/modules/cjs/loader:878:12)",
"Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)",
"node:internal/main/run_main_module:23:47"
]
}
],
Expand All @@ -57,26 +57,26 @@
"type": "aws:cdk:logicalId",
"data": "BootstrapVersion",
"trace": [
"addBootstrapVersionRule (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/stack-synthesizers/default-synthesizer.js:285:19)",
"DefaultStackSynthesizer.synthesize (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/stack-synthesizers/default-synthesizer.js:175:13)",
"addBootstrapVersionRule (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/stack-synthesizers/default-synthesizer.js:282:19)",
"DefaultStackSynthesizer.synthesize (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/stack-synthesizers/default-synthesizer.js:172:13)",
"/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/private/synthesis.js:155:35",
"visit (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/private/synthesis.js:200:9)",
"visit (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/private/synthesis.js:197:9)",
"synthesizeTree (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/private/synthesis.js:148:5)",
"Object.synthesize (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/private/synthesis.js:33:5)",
"AppStage.synth (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/stage.js:105:41)",
"AppStage.synth (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/stage.js:104:41)",
"Object.pipelineSynth (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/pipelines/lib/private/construct-internals.js:25:18)",
"Function.fromStage (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/pipelines/lib/blueprint/stage-deployment.js:44:48)",
"Wave.addStage (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/pipelines/lib/blueprint/wave.js:49:56)",
"StageDeployment.fromStage (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/pipelines/lib/blueprint/stage-deployment.js:42:48)",
"Wave.addStage (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/pipelines/lib/blueprint/wave.js:48:56)",
"CodePipeline.addStage (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/pipelines/lib/main/pipeline-base.js:69:46)",
"new PipelineStack (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/pipelines/test/integ.newpipeline-with-vpc.js:26:18)",
"Object.<anonymous> (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/pipelines/test/integ.newpipeline-with-vpc.js:47:1)",
"Module._compile (node:internal/modules/cjs/loader:1105:14)",
"Module._extensions..js (node:internal/modules/cjs/loader:1159:10)",
"Module.load (node:internal/modules/cjs/loader:981:32)",
"Module._load (node:internal/modules/cjs/loader:827:12)",
"Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)",
"node:internal/main/run_main_module:17:47"
"Module._compile (node:internal/modules/cjs/loader:1159:14)",
"Module._extensions..js (node:internal/modules/cjs/loader:1213:10)",
"Module.load (node:internal/modules/cjs/loader:1037:32)",
"Module._load (node:internal/modules/cjs/loader:878:12)",
"Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)",
"node:internal/main/run_main_module:23:47"
]
}
],
Expand All @@ -85,26 +85,26 @@
"type": "aws:cdk:logicalId",
"data": "CheckBootstrapVersion",
"trace": [
"addBootstrapVersionRule (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/stack-synthesizers/default-synthesizer.js:293:5)",
"DefaultStackSynthesizer.synthesize (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/stack-synthesizers/default-synthesizer.js:175:13)",
"addBootstrapVersionRule (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/stack-synthesizers/default-synthesizer.js:290:5)",
"DefaultStackSynthesizer.synthesize (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/stack-synthesizers/default-synthesizer.js:172:13)",
"/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/private/synthesis.js:155:35",
"visit (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/private/synthesis.js:200:9)",
"visit (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/private/synthesis.js:197:9)",
"synthesizeTree (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/private/synthesis.js:148:5)",
"Object.synthesize (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/private/synthesis.js:33:5)",
"AppStage.synth (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/stage.js:105:41)",
"AppStage.synth (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/core/lib/stage.js:104:41)",
"Object.pipelineSynth (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/pipelines/lib/private/construct-internals.js:25:18)",
"Function.fromStage (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/pipelines/lib/blueprint/stage-deployment.js:44:48)",
"Wave.addStage (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/pipelines/lib/blueprint/wave.js:49:56)",
"StageDeployment.fromStage (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/pipelines/lib/blueprint/stage-deployment.js:42:48)",
"Wave.addStage (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/pipelines/lib/blueprint/wave.js:48:56)",
"CodePipeline.addStage (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/pipelines/lib/main/pipeline-base.js:69:46)",
"new PipelineStack (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/pipelines/test/integ.newpipeline-with-vpc.js:26:18)",
"Object.<anonymous> (/Users/huijbers/Workspaces/PublicCDK/aws-cdk4/packages/@aws-cdk/pipelines/test/integ.newpipeline-with-vpc.js:47:1)",
"Module._compile (node:internal/modules/cjs/loader:1105:14)",
"Module._extensions..js (node:internal/modules/cjs/loader:1159:10)",
"Module.load (node:internal/modules/cjs/loader:981:32)",
"Module._load (node:internal/modules/cjs/loader:827:12)",
"Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)",
"node:internal/main/run_main_module:17:47"
"Module._compile (node:internal/modules/cjs/loader:1159:14)",
"Module._extensions..js (node:internal/modules/cjs/loader:1213:10)",
"Module.load (node:internal/modules/cjs/loader:1037:32)",
"Module._load (node:internal/modules/cjs/loader:878:12)",
"Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)",
"node:internal/main/run_main_module:23:47"
]
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"19.0.0"}
{"version":"21.0.0"}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "19.0.0",
"version": "21.0.0",
"testCases": {
"integ.newpipeline-with-vpc": {
"stacks": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "19.0.0",
"version": "21.0.0",
"artifacts": {
"assembly-PipelineStack-Beta": {
"type": "cdk:cloud-assembly",
Expand Down Expand Up @@ -30,7 +30,7 @@
"validateOnSynth": false,
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}",
"cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}",
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/09ed6a107711fc77b4417fe759eedb1920ea48ea07d68490b9973255f017840d.json",
"stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a847a27eed9056ff8ff8fb030b376a5a8f1cd0c253c0918cd6ed1c23ad26b3ed.json",
"requiresBootstrapStackVersion": 6,
"bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version",
"additionalDependencies": [
Expand Down
Loading

0 comments on commit 516cb3c

Please sign in to comment.