Created
September 12, 2018 16:45
-
-
Save Gabelbombe/4a83f3b52ca0dba291a65db0f73764ba to your computer and use it in GitHub Desktop.
Export an EC2 instance from CLI
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
aws --profile {aws_profile} --region {aws_region} \ | |
ec2 create-instance-export-task \ | |
--instance-id {instance_id} \ | |
--target-environment {target_environment} \ | |
--export-to-s3-task DiskImageFormat={disk_image_format},ContainerFormat=ova,S3Bucket={s3_bucket},S3Prefix={s3_prefix} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment