Closed maslick closed 2 years ago
The evil comes from these checks:
Even if either subnetId or securityGroupId were null (like in my case), it will still run the Both are provided
block, it will set SecurityGroupId to null, and go on creating the stack which will fail since security group value cannot be null.
Here is the cure: #32
Hi @shantgup , what do you think?
Thank you for this @maslick, I will include this fix in the next version.
Fixed in version 2.0.
I am trying to run CommandRunner in a private subnet with the following definition:
The Cloudformation stack fails with the following error (for the
CommandRunner
local resource name):According to
BaseTemplate.json
:a security group will be created if the CreateSecurityGroup condition is met:
So, that means that the error raised when deploying my CommandRunner example template (SecurityGroupId is required) doesn't make any sense. The stack should be deployed normally without any error.
I am reporting this as a bug.