Created
August 25, 2019 00:26
-
-
Save anhtv08/d5a9faa4586647f0480d3187487cc4ec 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
def shutdown_ec2_instance(ec2_client, instanceId): | |
log.info("shutting down instance-id :" + instanceId) | |
ec2_client.terminate_instances( | |
InstanceIds=[ | |
instanceId | |
] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment