We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 529fc68 commit 9ba4556Copy full SHA for 9ba4556
1 file changed
template/eip.tftpl
@@ -7,4 +7,9 @@ export PATH=~/.local/bin:$PATH
7
8
pip install aws-ec2-assign-elastic-ip
9
export AWS_DEFAULT_REGION=$(curl -s -H "X-aws-ec2-metadata-token: $token" http://169.254.169.254/latest/dynamic/instance-identity/document | grep region | awk -F\" '{print $4}')
10
-/usr/local/bin/aws-ec2-assign-elastic-ip --valid-ips ${eip}
+
11
+for i in {1..7}
12
+do
13
+ echo "Attempt: ---- " $i
14
+ /usr/local/bin/aws-ec2-assign-elastic-ip --valid-ips ${eip} && break || sleep 60
15
+done
0 commit comments