Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundleNewAMI should check if necessary Amazon env variables are set before using them. #49

Open
andyk opened this issue Feb 18, 2011 · 0 comments

Comments

@andyk
Copy link
Member

andyk commented Feb 18, 2011

Amazon environment variables are read in by and set as variables in the AWSConnection trait in aws.scala.

If the enviornment variables are not set when bundleNewAMI is called the function should fail with a useful message telling the user which environment variable they need to set.

These are the relevant lines in bundleNewAMI()

this.executeCommand("mv ~/.tags /tmp/mesos-ec2-tags")
this ! "ec2-bundle-vol -c /tmp/%s -k /tmp/%s -u %s --arch %s".format(ec2Cert.getName, ec2PrivateKey.getName, userID, "x86_64")
this ! "ec2-upload-bundle -b %s -m %s -a %s -s %s".format(bucketName, "/tmp/image.manifest.xml", accessKeyId, secretAccessKey)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant