rundeck-plugins / rundeck-ec2-nodes-plugin

Get resource node data from Amazon EC2
86 stars 45 forks source link

IAM Profile #32

Closed wilddog64 closed 9 years ago

wilddog64 commented 9 years ago

Currently the document specifies that this plugin will need to provide accessKey and secretKey in order to talk to AWS. Can this be extended to use IAM profile? This way, there is no need to explicitly store a pair of access and secret keys if the instance host rundeck is an EC2 node. Some applications will switch to IAM role if access key and secret key are not provided.

gschueler commented 9 years ago

If you don't specify a accessKey and secretKey, and you are running on ec2, then the IAM profile of the instance you are on will be used.

gschueler commented 9 years ago

(the readme probably needs to be updated, but you can see here the plugin mentions this in the configuration page: https://github.com/rundeck-plugins/rundeck-ec2-nodes-plugin/blob/master/src/main/java/com/dtolabs/rundeck/plugin/resources/ec2/EC2ResourceModelSourceFactory.java#L90 )

wilddog64 commented 9 years ago

That's cool. Thanks for this info.