You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will create an IAM policy statement for lambda that only allows to GetSecretValue on partial secret arn without trailing 6 characters hence permission denied.
… create correct iam policy (#28379)
In the case for a hosted rotation with a master secret by `fromSecretNameV2()`, IAM policy for lambda is not correct.
The secret by the method has a partial ARN, so a generated IAM policy should use an ARN with `'-??????'`, but it will not use the ARN.
Closes#28308.
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
… create correct iam policy (aws#28379)
In the case for a hosted rotation with a master secret by `fromSecretNameV2()`, IAM policy for lambda is not correct.
The secret by the method has a partial ARN, so a generated IAM policy should use an ARN with `'-??????'`, but it will not use the ARN.
Closesaws#28308.
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Describe the bug
Given the code:
This will create an IAM policy statement for lambda that only allows to
GetSecretValue
on partial secret arn without trailing 6 characters hence permission denied.Expected Behavior
should render correct IAM policy statement
Current Behavior
does not render correct IAM policy statement for Lambda role.
Reproduction Steps
see the code above
Possible Solution
fromSecretCompleteArn()
to generate full secret arn in the iam policy-??????
to the ARNFor example
And when you run
cdk diff
we should see thisAdditional Information/Context
No response
CDK CLI Version
2.113.0
Framework Version
No response
Node.js Version
v18.16.0
OS
mac
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: