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

iam_profile_name not being added to ec2 #54

Closed
aboutte opened this issue May 19, 2014 · 11 comments
Closed

iam_profile_name not being added to ec2 #54

aboutte opened this issue May 19, 2014 · 11 comments

Comments

@aboutte
Copy link

aboutte commented May 19, 2014

I am attempting to specify an AWS IAM role in my .kitchen.yml but when the EC2 instance is created the role it not attached to the instance which is being verified in the AWS console.

test-kitchen (1.2.1)
kitchen-ec2 (0.8.0)

Here is my .kitchen.yml


---
driver:
  name: ec2
  aws_access_key_id: A....A
  aws_secret_access_key: S....v
  aws_ssh_key_id: s...s
  ssh_key: ~/.ssh/s....pem
  region: us-west-2
  availability_zone: us-west-2b
  require_chef_omnibus: true
  subnet_id: subnet-2...c 
  security_group_ids: ["sg-09...c", "sg-b...dd", "sg-...ad7", "sg-...46c"]
  iam_profile_name: chef-manager
  tags:
    Name: marketplace-test-kitchen
    created-by: test-kitchen

platforms:
  - name: AWS
    driver:
      image_id: ami-5....5
      username: ec2-user

suites:
  - name: default
    run_list:
      - role[base]
      - marketplace-shopatron
      - newrelic
    attributes:

What am I missing here?

@rayrod2030
Copy link

I don't believe the iam_profile_name functionality is in a release yet but you can get it by referencing kitchen-ec2 master in your gemfile like so: gem 'kitchen-ec2', github: 'test-kitchen/kitchen-ec2'.

Hope that helps.

@zerowolfgang
Copy link

I was struggling with this too, but was of the belief that it had more to do with my lack of IAM profile policy crafting skillz. Thanks for this clarification !

@aboutte
Copy link
Author

aboutte commented May 21, 2014

Thanks @rayrod2030. Any idea when the next release will happen?

@rayrod2030
Copy link

I have no idea as I'm not a project maintainer but I'd love to see #42 hit master soon. :)

@goncalopereira
Copy link

Oh dear I just ran into this one! Thanks for the info.

@rberger
Copy link

rberger commented Jun 18, 2014

+1

@jmassara
Copy link

+1 When will this make it into the release?

@nielskrijger
Copy link

+1

1 similar comment
@MrMMorris
Copy link

+1

@sethvargo
Copy link
Contributor

This has been added in the master branch and will be available in the next release.

@balldarrens
Copy link

This is being used to create the instance, and it is not attaching to the instance once it is up.
aws cli commands need an instance role to authenticate.

There needs to be something like: http://docs.aws.amazon.com/cli/latest/reference/iam/add-role-to-instance-profile.html

In any case, using 0.8.0, this still does not seem to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants