blob: c2ecbc6732cccf9a02c0a7bebed0008540ced3d8 [file] [log] [blame]
Dean Troyer0986a7b2014-10-29 22:08:13 -05001=====================
2eucarc - EC2 Settings
3=====================
Sean M. Collins09e550c2014-10-21 11:40:08 -04004
5``eucarc`` creates EC2 credentials for the current user as defined by
6``OS_TENANT_NAME:OS_USERNAME``. ``eucarc`` sources ``openrc`` at the
7beginning (which in turn sources ``stackrc`` and ``localrc``) in order
8to set credentials to create EC2 credentials in Keystone.
9
10EC2\_URL
11 Set the EC2 url for euca2ools. The endpoint is extracted from the
12 service catalog for ``OS_TENANT_NAME:OS_USERNAME``.
13
14 ::
15
Peter Stachowski9a808922015-04-08 19:48:09 +000016 EC2_URL=$(openstack catalog show ec2 | awk '/ publicURL: / { print $4 }')
Sean M. Collins09e550c2014-10-21 11:40:08 -040017
18S3\_URL
19 Set the S3 endpoint for euca2ools. The endpoint is extracted from
20 the service catalog for ``OS_TENANT_NAME:OS_USERNAME``.
21
22 ::
23
Peter Stachowski9a808922015-04-08 19:48:09 +000024 export S3_URL=$(openstack catalog show s3 | awk '/ publicURL: / { print $4 }')
Sean M. Collins09e550c2014-10-21 11:40:08 -040025
26EC2\_ACCESS\_KEY, EC2\_SECRET\_KEY
27 Create EC2 credentials for the current tenant:user in Keystone.
28
29 ::
30
Peter Stachowski9a808922015-04-08 19:48:09 +000031 CREDS=$(openstack ec2 credentials create)
Sean M. Collins09e550c2014-10-21 11:40:08 -040032 export EC2_ACCESS_KEY=$(echo "$CREDS" | awk '/ access / { print $4 }')
33 export EC2_SECRET_KEY=$(echo "$CREDS" | awk '/ secret / { print $4 }')
34
35Certificates for Bundling
36 Euca2ools requires certificate files to enable bundle uploading. The
37 exercise script ``exercises/bundle.sh`` demonstrated retrieving
38 certificates using the Nova CLI.
39
40 ::
41
42 EC2_PRIVATE_KEY=pk.pem
43 EC2_CERT=cert.pem
44 NOVA_CERT=cacert.pem
45 EUCALYPTUS_CERT=${NOVA_CERT}