Skip to content

Commit

Permalink
fix: set policy effect deny when removing auth
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardfoyle committed Jan 9, 2024
1 parent 3c956a0 commit 0a3f35f
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 0a3f35f

Please sign in to comment.