-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(custom-resources): cannot find response data key #27626
Comments
Can you provide minimal full code snippets that we can deploy and check in our environment? |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
I believe it has to do with nested attributes. I was under the impression I could get nested attributes since I can do Handler:
Setup a NodeJsFunction, including role and provider:
|
@Lewenhaupt did you manage to get around nested attributes? |
@kornicameister nope, I worked around it by creating them in a cr such that I could avoid the nested structure. |
Describe the bug
I'm using custom-resources provider with a CustomResource.
Trying to use
theCustomResource.getAtt('roleArns.iamDbAuthRoleArn')
in aws-cdk fails.I've verified the provider framework does upload the correct Data to S3, but still I'm unable to retrieve it and I'm at a loss of what I can do...
Expected Behavior
getAtt call to succeed as the key is obviously present in the Data that was put in S3.
Current Behavior
Fails with error
CustomResource attribute error: Vendor response doesn't contain roleArns.iamDbAuthRoleArn
Reproduction Steps
Handler:
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.69.0 (build 60a5b2a)
Framework Version
No response
Node.js Version
v18.12.1
OS
Macos
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: