EC2_* style Amazon environment variables not consulted

Bug #1174874 reported by David Britton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Medium
Ian Booth

Bug Description

dpb@helo:.juju$ export |grep EC2
declare -x EC2_ACCESS_KEY="SECRET_KEY_HERE"
declare -x EC2_SECRET_KEY="ACCESS_KEY_HERE"
dpb@helo:.juju$ tail ~/.juju/environments.yaml
    # secret-key: <secret>

  ## https://juju.ubuntu.com/get-started/amazon/
  aws:
    type: ec2
    admin-secret: 8125b1da537abcdefg9b583d4
    control-bucket: juju-878abcdefg29b8d463a1
    default-series: precise
    #secret-key: "SECRET_KEY_HERE"
    #access-key: "ACCESS_KEY_HERE"
dpb@helo:.juju$ juju status
error: environment has no access-key or secret-key
dpb@helo:.juju$

If I uncomment the entries in the .juju/environments.yaml file, all works fine.

This is on a src deployment bzr revno 1206

Revision history for this message
John A Meinel (jameinel) wrote :

The environment keys that juju looks for for amazon credentials are:
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY

I think it would be reasonable to also look for EC2_ACCESS_KEY and EC2_SECRET_KEY, but you should be able to use the above two. In my config, I actually have:

export EC2_ACCESS_KEY="..."
export EC2_SECRET_KEY="..."
export AWS_ACCESS_KEY_ID="$EC2_ACCESS_KEY"
export AWS_SECRET_ACCESS_KEY="$EC2_SECRET_KEY"

summary: - Amazon environment variables not consulted
+ EC2_* style Amazon environment variables not consulted
Changed in juju-core:
importance: Undecided → Medium
status: New → Confirmed
Ian Booth (wallyworld)
Changed in juju-core:
assignee: nobody → Ian Booth (wallyworld)
Ian Booth (wallyworld)
Changed in juju-core:
status: Confirmed → Fix Committed
Tim Penhey (thumper)
Changed in juju-core:
milestone: none → 1.11.1
Changed in juju-core:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.