Created
May 18, 2020 17:40
-
-
Save ashutoshkarna03/d1ec975134c9d6ce6b96ce5d663b0ac0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# create boto3 client for ec2 for both source and destination region | |
client_src = boto3.client('ec2', region_name=os.getenv('SOURCE_REGION')) | |
client_des = boto3.client('ec2', region_name=os.getenv('DESTINATION_REGION')) | |
# create ec2 resource | |
ec2 = boto3.resource('ec2', region_name=os.getenv('DESTINATION_REGION')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment