Skip to content

conspire-org/docker-ebs-attach

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-ebs-attach

Docker container that attaches an EBS volume to the local ec2 instance.

Usage:

docker run -it --rm leg100/ebs-attach \
--volumeid vol-123123 \
--device /dev/xvdf \
--region eu-west-1

Note: it relies on the ec2 instance possessing an IAM profile with the following privileges:

  • ec2:AttachVolume
  • ec2:DetachVolume

Provision your EC2 instances with the IAM role "ebs-association". EBS volumes must also be formatted before they can be used.

  1. Provision EBS volume in the correct region.
  2. Attach to any host (ops or target are fine).
  3. Format with sudo mkfs -t ext4 device_name where device name is the device you attached this EBS volume to (e.g., /dev/xvdc).

(Adapted from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html)

About

Docker container that attaches an EBS volume to the local ec2 instance.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%