Skip to content

Commit

Permalink
fix: set policy effect deny when removing auth (#13523)
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardfoyle authored Jan 9, 2024
1 parent 89ae5ad commit 73b08dc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
" try {",
" delete authParamsJson.Statement[0].Condition;",
" delete unauthParamsJson.Statement[0].Condition;",
" authParamsJson.Statement[0].Effect = 'Deny'",
" unauthParamsJson.Statement[0].Effect = 'Deny'",
" let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};",
" let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};",
" const iam = new IAMClient({region: event.ResourceProperties.region});",
Expand Down

0 comments on commit 73b08dc

Please # to comment.