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 1e1982a commit daa8c21Copy full SHA for daa8c21
script/create-ami.sh
@@ -122,8 +122,7 @@ aws ec2 create-image --region $REGION --instance-id $instanceId --no-reboot --na
122
123
sleep 120
124
125
-#기존의 ami 삭제
126
-aws ec2 deregister-image --region $REGION --image-id $latestAMI
+
127
128
#Terminate the EC2 Instance
129
#Finally we can terminate the EC2 instance weused to build the AMI.
@@ -155,3 +154,7 @@ echo $AMI_NAME_TARGET
155
154
#https://datawookie.dev/blog/2021/07/creating-an-ami-using-the-aws-cli/
156
157
python3 ./script/update-ami.py "${instanceId}" "${AMI_ID_TARGET}" "${updateKey}"
158
+#기존의 ami 삭제
159
+sleep 300
160
+aws ec2 deregister-image --region $REGION --image-id $latestAMI
0 commit comments