Skip to content

Commit 70783b8

Browse files
committed
fix: Deprecation warnings
1 parent a5ffe79 commit 70783b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/cdk-blue-green-container-deployment/src/dummy-task-definition.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class DummyTaskDefinition extends Construct implements IDummyTaskDefiniti
3838

3939
const serviceToken = CustomResourceProvider.getOrCreate(this, 'Custom::DummyTaskDefinition', {
4040
codeDirectory: path.join(__dirname, 'lambdas', 'dummy-task-definition'),
41-
runtime: CustomResourceProviderRuntime.NODEJS_12,
41+
runtime: CustomResourceProviderRuntime.NODEJS_12_X,
4242
policyStatements: [
4343
{
4444
Effect: Effect.ALLOW,
@@ -75,6 +75,6 @@ export class DummyTaskDefinition extends Construct implements IDummyTaskDefiniti
7575
* Adds a policy statement to the task execution IAM role.
7676
*/
7777
public addToExecutionRolePolicy(statement: PolicyStatement): void {
78-
this.executionRole.addToPolicy(statement);
78+
this.executionRole.addToPrincipalPolicy(statement);
7979
}
8080
}

packages/cdk-blue-green-container-deployment/src/ecs-deployment-group.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export class EcsDeploymentGroup extends Resource implements IEcsDeploymentGroup
8181

8282
const serviceToken = CustomResourceProvider.getOrCreate(this, 'Custom::EcsDeploymentGroup', {
8383
codeDirectory: path.join(__dirname, 'lambdas', 'ecs-deployment-group'),
84-
runtime: CustomResourceProviderRuntime.NODEJS_12,
84+
runtime: CustomResourceProviderRuntime.NODEJS_12_X,
8585
policyStatements: [
8686
{
8787
Effect: Effect.ALLOW,

0 commit comments

Comments
 (0)