mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
sneak in some permission stuff
This commit is contained in:
parent
21b7575714
commit
e124560678
@ -158,6 +158,9 @@ snapshotid=$(ec2-create-snapshot --description "$name" "$volumeid" | cut -f2)
|
||||
while ec2-describe-snapshots "$snapshotid" | grep -q pending
|
||||
do sleep 30; done
|
||||
|
||||
echo "Sharing snapshot with Amazon"
|
||||
ec2-modify-snapshot-attribute "$snapshotid" -c --add 679593333241
|
||||
|
||||
echo "Created snapshot $snapshotid, registering as a new AMI"
|
||||
amiid=$(ec2-register \
|
||||
--name "$name" \
|
||||
@ -168,6 +171,9 @@ amiid=$(ec2-register \
|
||||
--block-device-mapping $ephemeraldev=ephemeral0 |
|
||||
cut -f2)
|
||||
|
||||
echo "Making $amiid public"
|
||||
ec2-modify-image-attribute "$amiid" --launch-permission -a all
|
||||
|
||||
ec2-delete-volume "$volumeid"
|
||||
|
||||
# hack job to copy AMIs
|
||||
@ -182,6 +188,7 @@ do
|
||||
--name "$description" \
|
||||
--region "$r" |
|
||||
cut -f2)
|
||||
ec2-modify-image-attribute --region "$r" "$amiid" --launch-permission -a all
|
||||
echo "$r $r_amiid"
|
||||
done
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user