Skip to content

Commit

Permalink
embeddingコンテナにAmazonECSTaskExecutionRolePolicyのポリシーを追加 (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsatsuki authored Aug 26, 2024
1 parent 1277acd commit cd66959
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cdk/lib/constructs/embedding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ export class Embedding extends Construct {
});
taskLogGroup.grantWrite(this._container.taskDefinition.executionRole!);
props.dbSecrets.grantRead(this._container.taskDefinition.taskRole);
this._container.taskDefinition.executionRole?.addManagedPolicy(
iam.ManagedPolicy.fromAwsManagedPolicyName(
"service-role/AmazonECSTaskExecutionRolePolicy"
)
);
return this;
}

Expand Down

0 comments on commit cd66959

Please sign in to comment.