Chef command to create new ec2 instance with second ebs volume attached and mounted instead of the default ephemeral volume?
        Posted  
        
            by 
                runamok
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by runamok
        
        
        
        Published on 2012-12-11T21:52:50Z
        Indexed on 
            2012/12/11
            23:05 UTC
        
        
        Read the original article
        Hit count: 276
        
We currently use this command to create a new ec2 instance with chef:
knife ec2 server create --node-name=prod-apache-1 --availability-zone us-east-1c --image ami-3d4ff254 --distro ubuntu12.04-gems --groups "default" --ssh-key foo  --identity-file ~/.ssh/id_rsa --ssh-user ubuntu --flavor m1.small
After this command we then run further chef commands to finish provisioning the server.
I was wondering if it would be possible while first setting up the instance I wanted a 100 gb volume created and mounted at /mnt and to have the ephemeral storage mounted at /tmp or /mnt-ephemeral instead.
If not what further commands in chef would you advise running? I know how to do this via the aws console and can probably figure out how to do it via the ec2 command line tools but I am knew to chef and a bit overwhelmed.
© Server Fault or respective owner