This repository has been archived by the owner on Oct 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 196
CustomResources do not respect DependsOn #270
Comments
Here's a simple example, showing the issue:
This outputs:
i.e. It's missing |
I can confirm that DependsOn is missing as mentioned by @douglas-gibbons-lark. This is needed otherwise our stack creation fails (the custom resource for our stack dependsOn a DDB table to be created first). |
Let's close it 🎊 @PaulMaddox |
Amazing! Thank you @xrn - I entirely forgot about this thread. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This is an issue in v4
CustomResources still follow the pattern in #132. The goformation library has since changed to using field types and custom JSON marshal/unmarshal in #245.
This is problematic when I attempt to create a
CustomResource
in aTemplate
. TheDependsOn
will never be populated correctly during aTemplate.YAML()
orTemplate.JSON()
call.Additionally, there are actually two versions of
CustomResources
in this library:in:
github.com/awslabs/goformation/v4/cloudformation
goformation/cloudformation/custom_resource.go
Lines 9 to 22 in 785575a
vs
in:
github.com/awslabs/goformation/v4/cloudformation/cloudformation
goformation/cloudformation/cloudformation/aws-cloudformation-customresource.go
Lines 11 to 31 in 785575a
The text was updated successfully, but these errors were encountered: