Skip to content

Commit

Permalink
Merge pull request #1050 from dan1elt0m/add-sm-update-to-token
Browse files Browse the repository at this point in the history
Add UpdateSecret permissions to lambda role
  • Loading branch information
dan1elt0m authored Oct 16, 2023
2 parents e95f50e + bba6249 commit c080ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typescript/src/resources/deploy-lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export class DatabricksDeployLambda extends IDatabricksDeployLambda {

this.lambdaRole.addToPrincipalPolicy(new aws_iam.PolicyStatement({
effect: aws_iam.Effect.ALLOW,
actions: ["secretsmanager:CreateSecret", "secretsmanager:DeleteSecret"],
actions: ["secretsmanager:CreateSecret", "secretsmanager:DeleteSecret", "secretsmanager:UpdateSecret"],
resources: [
`arn:aws:secretsmanager:${this.props.region}:${this.props.accountId}:secret:/databricks/token/*`,
]
Expand Down

0 comments on commit c080ce1

Please sign in to comment.