updated demo4 to support AWS Academy lab setup
This commit is contained in:
		@@ -7,9 +7,11 @@ from libcloud.compute.types import Provider
 | 
			
		||||
 | 
			
		||||
home = expanduser("~")
 | 
			
		||||
 | 
			
		||||
# reqs:
 | 
			
		||||
#   services: EC2 (nova, glance, neutron)
 | 
			
		||||
#   resources: 2 instances, 2 elastic ips (1 keypair, 2 security groups)
 | 
			
		||||
# requirements:
 | 
			
		||||
#   services: EC2
 | 
			
		||||
#   resources: 2 instances (1 keypair, 2 security groups)
 | 
			
		||||
#              optionally also elastic ip (comparable to floating ip) offering a persistent public
 | 
			
		||||
#              IP, but elastic ips are expensive - make sure to delete them after you used them
 | 
			
		||||
 | 
			
		||||
# The image to look for and use for the started instance
 | 
			
		||||
ubuntu_image_name = 'ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20210128'
 | 
			
		||||
@@ -33,7 +35,7 @@ flavor_name = 't2.nano'
 | 
			
		||||
region_name = 'us-east-1'
 | 
			
		||||
 | 
			
		||||
# starting instances in AWS Academy takes significantly longer compared to paid AWS accounts, allow ~ >2 minutes timeout
 | 
			
		||||
timeout = 300
 | 
			
		||||
timeout = 600
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def main():
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user