awsfabrictasks icon indicating copy to clipboard operation
awsfabrictasks copied to clipboard

Is there a way to specify an AWS IAM role when using awsfab ec2_launch_instance?

Open phildave opened this issue 12 years ago • 6 comments

I'm loving this python library, but there is one issue... Is it possible to specify an IAM role when launching an EC2 instance? Is there a way to specify this in the EC2_LAUNCH_CONFIGS?

phildave avatar May 31 '13 14:05 phildave

This is not possible at this time, but it is a great idea. Would love this feature myself, but I do not have the time to implement it right now. This should only require a fairly straight forward patch of awsfabrictasks.api.Ec2LaunchInstance (https://github.com/espenak/awsfabrictasks/blob/master/awsfabrictasks/ec2/api.py#L438-L697), so feel free to submit a patch if you have the time. If you do, I will try to help you as much as possible (answer questions, discuss possible solutions etc.).

espenak avatar May 31 '13 17:05 espenak

Thanks for the quick response. I would love to be able to patch awsfabrictasks, but currently i'm just starting out in the world of Python and i don't feel competent / confident enough to even attempt it yet. I will have to work around this for now and hope that i can add this feature or someone else does in future.

phildave avatar Jun 03 '13 09:06 phildave

Very understandable. I reopened this issue, because I think we should implement it.

espenak avatar Jun 03 '13 09:06 espenak

Has anyone made any progress on adding functionality to allow IAM role to be specified when using ec2_launch_instance?

phildave avatar Aug 21 '13 14:08 phildave

This would be really nice to have. Any idea when it will be available?

steffenbeach avatar Dec 06 '13 19:12 steffenbeach

I do not have the time to implement it at this time, but if someone else has the time to implement this, I will review the patch and release a new version (assuming the patch is usable and somewhat cleanly implemented).

espenak avatar Dec 06 '13 20:12 espenak