Created
January 29, 2019 22:10
-
-
Save twwlogin/f44c761ebdc9add6898e010ee4c43801 to your computer and use it in GitHub Desktop.
Register correct snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/create-ami.sh b/create-ami.sh | |
index 63349ca..05b614a 100755 | |
--- a/create-ami.sh | |
+++ b/create-ami.sh | |
@@ -245,6 +276,7 @@ create_ami() { | |
-O "${AWS_ACCESS_KEY_ID}" \ | |
-W "${AWS_SECRET_ACCESS_KEY}" \ | |
--region ${AWS_REGION} 2>/dev/null | | |
+ grep "${_VOL}" | | |
grep "completed.*${_IMGNAME}" | | |
grep -Eo "snap-[[:alnum:]]*") || true | |
sleep 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment