Skip to content

Commit 4a2f96d

Browse files
authored
Merge branch 'master' into serverlesscluster-resource-arn-prop
2 parents 20d3899 + 8006459 commit 4a2f96d

17 files changed

Lines changed: 44 additions & 36 deletions

File tree

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,18 @@
8282
"aws-cdk-lib/semver/**",
8383
"aws-cdk-lib/yaml",
8484
"aws-cdk-lib/yaml/**",
85-
"monocdk-experiment/case",
86-
"monocdk-experiment/case/**",
87-
"monocdk-experiment/fs-extra",
88-
"monocdk-experiment/fs-extra/**",
89-
"monocdk-experiment/jsonschema",
90-
"monocdk-experiment/jsonschema/**",
91-
"monocdk-experiment/minimatch",
92-
"monocdk-experiment/minimatch/**",
93-
"monocdk-experiment/semver",
94-
"monocdk-experiment/semver/**",
95-
"monocdk-experiment/yaml",
96-
"monocdk-experiment/yaml/**"
85+
"monocdk/case",
86+
"monocdk/case/**",
87+
"monocdk/fs-extra",
88+
"monocdk/fs-extra/**",
89+
"monocdk/jsonschema",
90+
"monocdk/jsonschema/**",
91+
"monocdk/minimatch",
92+
"monocdk/minimatch/**",
93+
"monocdk/semver",
94+
"monocdk/semver/**",
95+
"monocdk/yaml",
96+
"monocdk/yaml/**"
9797
]
9898
}
9999
}

packages/@aws-cdk/aws-stepfunctions/lib/state-machine.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,13 @@ export class StateMachine extends StateMachineBase {
418418
private buildTracingConfiguration(): CfnStateMachine.TracingConfigurationProperty {
419419
this.addToRolePolicy(new iam.PolicyStatement({
420420
// https://docs.aws.amazon.com/xray/latest/devguide/security_iam_id-based-policy-examples.html#xray-permissions-resources
421-
actions: ['xray:PutTraceSegments', 'xray:PutTelemetryRecords'],
421+
// https://docs.aws.amazon.com/step-functions/latest/dg/xray-iam.html
422+
actions: [
423+
'xray:PutTraceSegments',
424+
'xray:PutTelemetryRecords',
425+
'xray:GetSamplingRules',
426+
'xray:GetSamplingTargets',
427+
],
422428
resources: ['*'],
423429
}));
424430

packages/@aws-cdk/aws-stepfunctions/test/state-machine.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ describe('State Machine', () => {
144144
Action: [
145145
'xray:PutTraceSegments',
146146
'xray:PutTelemetryRecords',
147+
'xray:GetSamplingRules',
148+
'xray:GetSamplingTargets',
147149
],
148150
Effect: 'Allow',
149151
Resource: '*',

packages/@aws-cdk/cfnspec/build-tools/update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ node ${scriptdir}/create-missing-libraries.js || {
7171

7272
# update decdk dep list
7373
(cd ${scriptdir}/../../../decdk && node ./deps.js || true)
74-
(cd ${scriptdir}/../../../monocdk-experiment && yarn gen || true)
74+
(cd ${scriptdir}/../../../monocdk && yarn gen || true)
7575

7676
# append old changelog after new and replace as the last step because otherwise we will not be idempotent
7777
_changelog_contents=$(cat CHANGELOG.md.new)

packages/@monocdk-experiment/assert/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"cdk-build-tools": "0.0.0",
4040
"constructs": "^3.0.4",
4141
"jest": "^26.4.2",
42-
"monocdk-experiment": "0.0.0",
42+
"monocdk": "0.0.0",
4343
"pkglint": "0.0.0",
4444
"ts-jest": "^26.4.1"
4545
},
@@ -49,7 +49,7 @@
4949
"peerDependencies": {
5050
"constructs": "^3.0.4",
5151
"jest": "^26.4.2",
52-
"monocdk-experiment": "^0.0.0"
52+
"monocdk": "^0.0.0"
5353
},
5454
"repository": {
5555
"url": "https://github.com/aws/aws-cdk.git",

packages/@monocdk-experiment/rewrite-imports/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
---
1010
<!--END STABILITY BANNER-->
1111

12-
Migrate TypeScript `import` statements from modular CDK (i.e. `@aws-cdk/aws-s3`) to mono-cdk (i.e. `monocdk-experiment/aws-s3`);
12+
Migrate TypeScript `import` statements from modular CDK (i.e. `@aws-cdk/aws-s3`) to mono-cdk (i.e. `monocdk/aws-s3`);
1313

1414
Usage:
1515

packages/@monocdk-experiment/rewrite-imports/lib/rewrite.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function updatedLocationOf(modulePath: string): string | undefined {
9898
}
9999

100100
if (modulePath === '@aws-cdk/core') {
101-
return 'monocdk-experiment';
101+
return 'monocdk';
102102
}
103103

104104
if (modulePath === '@aws-cdk/assert') {
@@ -109,5 +109,5 @@ function updatedLocationOf(modulePath: string): string | undefined {
109109
return '@monocdk-experiment/assert/jest';
110110
}
111111

112-
return `monocdk-experiment/${modulePath.substring(9)}`;
112+
return `monocdk/${modulePath.substring(9)}`;
113113
}

packages/@monocdk-experiment/rewrite-imports/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@monocdk-experiment/rewrite-imports",
33
"version": "0.0.0",
4-
"description": "Rewrites typescript 'import' statements from @aws-cdk/xxx to monocdk-experiment",
4+
"description": "Rewrites typescript 'import' statements from @aws-cdk/xxx to monocdk",
55
"bin": {
66
"rewrite-imports": "bin/rewrite-imports"
77
},

packages/@monocdk-experiment/rewrite-imports/test/rewrite.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ describe(rewriteImports, () => {
4545

4646
expect(output).toBe(`
4747
// something before
48-
import * as s3 from 'monocdk-experiment/aws-s3';
48+
import * as s3 from 'monocdk/aws-s3';
4949
import * as cfndiff from '@aws-cdk/cloudformation-diff';
50-
import { Construct } from "monocdk-experiment";
50+
import { Construct } from "monocdk";
5151
// something after
5252
5353
console.log('Look! I did something!');`);
@@ -65,9 +65,9 @@ describe(rewriteImports, () => {
6565

6666
expect(output).toBe(`
6767
// something before
68-
import s3 = require('monocdk-experiment/aws-s3');
68+
import s3 = require('monocdk/aws-s3');
6969
import cfndiff = require('@aws-cdk/cloudformation-diff');
70-
import { Construct } = require("monocdk-experiment");
70+
import { Construct } = require("monocdk");
7171
// something after
7272
7373
console.log('Look! I did something!');`);

0 commit comments

Comments
 (0)