vmware-archive / cliaas

an iaas agnostic cli to perform blue green ops manager rotations
Apache License 2.0
5 stars 7 forks source link

AWS replace-vm does not honour Instance Profile #6

Closed sturadnidge closed 6 years ago

sturadnidge commented 7 years ago

If you want to configure Ops Manager to use instance profiles rather an access key + secret key, you need to assign an IAM Role to the Ops Manager VM at creation time, so that it can pass the specified role to the BOSH machine it creates.

cliaas doesn't seem to apply the same IAM Role to a new Ops Manager instance created by replace-vm, resulting in broken pcf-pipelines (for example).

cf-gitbot commented 7 years ago

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

sturadnidge commented 7 years ago

From what I can tell, ec2Client.DescribeInstances will return an IamInstanceProfile attribute, which could be grabbed by GetVMInfo and passed through to CreateVM for use in ec2.RunInstances? Unfortunately it's not a string... I could probably take a shot at a PR, but I'm pretty new to Go so it might be ugly!

abbyachau commented 6 years ago

Closing this issue as it's been delivered some time ago.