Skip to content

Instantly share code, notes, and snippets.

@Gabelbombe
Created September 12, 2018 16:45
Show Gist options
  • Save Gabelbombe/4a83f3b52ca0dba291a65db0f73764ba to your computer and use it in GitHub Desktop.
Save Gabelbombe/4a83f3b52ca0dba291a65db0f73764ba to your computer and use it in GitHub Desktop.
Export an EC2 instance from CLI
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