Skip to content

Instantly share code, notes, and snippets.

@adamenger
Created September 23, 2018 00:47
Show Gist options
  • Save adamenger/c342ae0cc3cab3bd436697b567f379a6 to your computer and use it in GitHub Desktop.
Save adamenger/c342ae0cc3cab3bd436697b567f379a6 to your computer and use it in GitHub Desktop.
#!/bin/bash
aws ec2 associate-address --instance-id $(curl http://169.254.169.254/latest/meta-data/instance-id) --allocation-id ${aws_eip_id} --allow-reassociation --region us-east-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment