Our AWS organizational policy prohibits users to spin up instances with public IP attached.
When I try to create an AWS AMI using packer I get denied by my organizational policy even though I specify associate_public_ip_address: false.
I guess the option associate_public_ip_address is applied to the AMI created but not the `launch instance` packer instantiates for building AMI. So the launch instance is getting created with public ip associated with it causing the organizational policy to reject ec2 creation.
Is there a way to specify associate_public_ip_address:false for launch instance just like the way we have separate launch_block_device_mappings and ami_block_device_mappings ?
Thanks in advance.
Puja