mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
Wait a bit longer after EBS AMI registration
This commit is contained in:
parent
3e4f053eb5
commit
f7d6e2940c
1 changed files with 6 additions and 5 deletions
|
@ -149,15 +149,16 @@ else:
|
|||
|
||||
print >> sys.stderr, "registered AMI {0}".format(ami_id)
|
||||
|
||||
time.sleep(5)
|
||||
print >> sys.stderr, "sleeping a bit..."
|
||||
time.sleep(30)
|
||||
|
||||
print >> sys.stderr, "setting image name..."
|
||||
m._conn.create_tags([ami_id], {'Name': ami_name})
|
||||
|
||||
print >> sys.stderr, "making image public..."
|
||||
image = m._conn.get_all_images(image_ids=[ami_id])[0]
|
||||
image.set_launch_permissions(user_ids=[], group_names=["all"])
|
||||
|
||||
m._conn.create_tags([ami_id], {'Name': ami_name})
|
||||
|
||||
time.sleep(5)
|
||||
|
||||
|
||||
# Do a test deployment to make sure that the AMI works.
|
||||
f = open("ebs-test.nix", "w")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue