EIP with several instances

The formatting of your copy/pasted code is really hard to read. See Welcome to the forum - please reformat your message.

I personally have no experience with AWS Elastic IPs, but there are examples written right there in the documentation of the aws_eip resource, so you might want to start there.