mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
fix(cloudformation): treat an AWS::NoValue property as omitted before provisioning (#6726)
This commit is contained in:
1 parent
3f294c3529
commit
0d74eb5eeb
2 files changed
+262
-1
No files matched your search
+3
-1
@@ -2012,7 +2012,6 @@ public class CloudFormationService implements ResourceProvider {
|
||||
JsonNode resDef = resources.get(logicalId);
|
||||
String type = resDef.path("Type").asText();
|
||||
String deletionPolicy = resDef.path("DeletionPolicy").asText(null);
|
||||
JsonNode props = resDef.path("Properties");
|
||||
|
||||
CloudFormationTemplateEngine engine = new CloudFormationTemplateEngine(
|
||||
accountId, region, stack.getStackName(),
|
||||
@@ -2024,6 +2023,9 @@ public class CloudFormationService implements ResourceProvider {
|
||||
parameterTypes,
|
||||
(id, attribute, value) -> dispatcher.attributeValue(
|
||||
resources.path(id).path("Type").asText(), attribute, value));
|
||||
// AWS::NoValue removes the property, wherever the template puts it, so no
|
||||
// provisioner sees it: not a member, a list item or a whole property.
|
||||
JsonNode props = engine.omitNoValue(resDef.path("Properties"));
|
||||
|
||||
StackResource resource = stack.getResources().get(logicalId);
|
||||
StackResource previousResource = resource;
|
||||
|
||||
Reference in new issue
Block a user