dashpay / dash-network-deploy

Tools for Dash networks deployment and testing
MIT License
21 stars 19 forks source link

fix: always set associated IP to be true #482

Closed ktechmidas closed 1 year ago

ktechmidas commented 1 year ago

Issue being fixed or feature implemented

Issue described in PR https://github.com/dashpay/dash-network-deploy/pull/481 - this is a better fix than ignoring lifecycle changes and supersedes that PR

What was done?

Always set associate public IP to true even if we are going to later replace with an EIP. Terraform does not track state changes correctly here (breaking standards with AWS CloudFormation which does but I digress...)

Terraform has a few long standing issues about this:

https://github.com/hashicorp/terraform-provider-aws/issues/343

https://github.com/hashicorp/terraform/issues/9811

How Has This Been Tested?

Devnet

Breaking Changes

Possibly previous networks with HPMNs may need to redeploy.

Checklist:

For repository code-owners and collaborators only

ktechmidas commented 1 year ago

Works for me 👍 But will this result in AWS associating non-EIP public addresses with the instances in addition to the EIPs?

Yes and no, once the EIP gets added the original address goes away. It doesn't really matter in the grand scheme of things