-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Fix CFn model class & attribute lookup #8318
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kudos for greenifying the build @dominikschubert ! 🚀
I have only a small comment/question, but imho we could also address this in a follow-up if we want to get the changes out quickly. 👍
kw["resources"][kw["resource_id"]]["PhysicalResourceId"] | ||
] | ||
}, | ||
"parameters": {"InstanceIds": ["InstanceId"]}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: If I'm not mistaken, this would create a parameters dict like
{"InstanceIds": "<my-instance-id>"}
instead of
{"InstanceIds": ["<my-instance-id>"]}
Not very intuitive, but that's the current logic in template_deployer.py
, if I'm reading it correctly: https://github.com/localstack/localstack/blob/master/localstack/services/cloudformation/engine/template_deployer.py#L920-L922
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will fix in a follow-up soon 👍
Fixes a regression introduced in recent CFn refactorings.
PRO overwrites get_resource_type to add support for custom resources, but we didn't use this in get_ref and other call sites, causing this to fail -ext tests.