andsens/ec2debian-build-ami — Issue #4: Ec2 API commands not working corretly
Author: mpastor
Created: 2012-02-23 17:21:45+00:00
State: open

Ec2 API commands not working corretly because some variables were not exported:

diff --git a/ec2debian-build-ami b/ec2debian-build-ami
index 6e49d2d..adcd551 100755
--- a/ec2debian-build-ami
+++ b/ec2debian-build-ami
@@ -204,10 +204,15 @@ true ${AWS_USER_ID:?} ${AWS_ACCESS_KEY_ID:?} ${AWS_SECRET_ACCESS_KEY:?} \
if [ ! -f $EC2_CERT ]; then
die "$0: AWS certificate file not found: $EC2_CERT"
fi
+
+export EC2_CERT
+
if [ ! -f $EC2_PRIVATE_KEY ]; then
die "$0: AWS private key file not found: $EC2_PRIVATE_KEY"
fi

+export EC2_PRIVATE_KEY
+
if [ -z "$ebs" ]; then