Explicitly define AssociatePublicIpAddress
in Launch Templates
#3815
Labels
feature
New feature or request
AssociatePublicIpAddress
in Launch Templates
#3815
Tell us about your request
Explicitly set
AssociatePublicIpAddress
in launch templates. The missing key in launch templates results in the rejection of EC2 instance creation requests in environments whereAssociatePublicIpAddress
is required to be false by the use of aBoolIfExists
condition, an AWS-recommended best practice, an instance of which can be found here under the subheading "Recommended Combination". To be explicit, this problem is occurring with a subnet which is not configured to assign public IP addresses.I am aware that the project would prefer to have subnet settings determine whether an attempt to associate a public IP address is actually made. Ensuring that a value exists, either true or false, does not change this design decision.
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
See above.
Are you currently working around this issue?
I am using custom launch templates, which introduces a great deal of overhead for a basic and philosophically-aligned feature.
Additional Context
Example policy statement, demonstrating the cause of the conflict:
Sketch of a possible solution:
main...lorenzadia:karpenter:lorenzo.explictly-disable-public-ipaddr-in-launch-template
Attachments
No response
Community Note
The text was updated successfully, but these errors were encountered: