1
# Copyright [2010] [Anso Labs, LLC]
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
# you may not use this file except in compliance with the License.
5
# You may obtain a copy of the License at
7
# http://www.apache.org/licenses/LICENSE-2.0
9
# Unless required by applicable law or agreed to in writing, software
10
# distributed under the License is distributed on an "AS IS" BASIS,
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
15
NOVA_KEY_DIR=$(pushd $(dirname $BASH_SOURCE)>/dev/null; pwd; popd>/dev/null)
16
export EC2_ACCESS_KEY="%(access)s"
17
export EC2_SECRET_KEY="%(secret)s"
18
export EC2_URL="%(ec2)s"
19
export S3_URL="%(s3)s"
20
export EC2_USER_ID=42 # nova does not use user id, but bundling requires it
21
export EC2_PRIVATE_KEY=${NOVA_KEY_DIR}/%(key)s
22
export EC2_CERT=${NOVA_KEY_DIR}/%(cert)s
23
export NOVA_CERT=${NOVA_KEY_DIR}/%(nova)s
24
export EUCALYPTUS_CERT=${NOVA_CERT} # euca-bundle-image seems to require this set
25
alias ec2-bundle-image="ec2-bundle-image --cert ${EC2_CERT} --privatekey ${EC2_PRIVATE_KEY} --user 42 --ec2cert ${NOVA_CERT}"
26
alias ec2-upload-bundle="ec2-upload-bundle -a ${EC2_ACCESS_KEY} -s ${EC2_SECRET_KEY} --url ${S3_URL} --ec2cert ${NOVA_CERT}"