Please advise on how to use an AWS Elastic IP assigned to the Docker Cloud instance?
My goal is to get a second level domain (example.com) pointing with an A record to a Docker Cloud service.
CNAME record can be used only if there’re no other records on the set (which is obviously not a case: I have MX and some other stuff).
A record should be set to an IP, which I can get from instance settings but I’m not really sure if it’s persistent enough (the doc says it will be removed when the instance is stopped).
The problem with Elastic IP is the EC2 instance IP address change:
- When I first deploy a node from Docker cloud and the assign Elastic IP from AWS console I don’t seem to be able to edit node IP address on the Docker Cloud panel; and the system isn’t updating the info by itself.
- When I alternatively setup and interface with Elastic IP connected on the AWS first, and even poind a node to it while deploying it seems to only use a subnetwork, not the interface with Elastic IP assigned to it.
TL;DR: Is it possible to change a node IP when the node is already deployed? Or is there some way to put the node into a pre-created AWS EC2 instance or assign a specified AWS EC2 Network Interface?