Error Code: MalformedPolicyDocument #21741
Unanswered
afisher-stelligent
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello All...
Using the latest Python CDK. I have two applications, one to deploy infrastructure, and another that deploys a CodePipeline.
The infrastructure creates a database, and we generate a secret:
secret = secretsmanager.Secret.from_secret_name_v2(self, "mySecret", database_cluster.secret.secret_name)
The ARN of the secret is an output of the stack.
Now, as part of the pipeline, we're trying to do automated updates using Flyway. This requires pulling the db user and password from the secret above. This is how I'm attempting to do it:
Then, as part of the pipeline project:
When I try to deploy, I get the following error:
❌ CdkPipielineStack failed: Error: The stack named CdkPipielineStack failed to deploy: UPDATE_ROLLBACK_COMPLETE: Resource <blah> must be in ARN format or "*". (Service: AmazonIdentityManagement; Status Code: 400; Error Code: MalformedPolicyDocument; Request ID: blah; Proxy: null)
The CFN that is synthesized is bad... so the error's not wrong. What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions