associate_public_ip_address
triggers recreation if instance is stopped
#121
Labels
bug
🐛 An issue with the system
Describe the Bug
Creating an instance using this module with the following flags:
causes the instance to be recreated when it is
stopped
because the "public address" (not EIP) is released when the server is shutdown.To prevent this from happening we could add a lifecycle configuration which ignores this particular key. Unfortunately this cannot be done on a
module
object within Terraform so it must be done from inside the module itself.Expected Behavior
No instance re-creation.
Steps to Reproduce
Steps to reproduce the behavior:
plan
and see that it will be recreatedThe text was updated successfully, but these errors were encountered: