Is there a way to specify an AWS IAM role when using awsfab ec2_launch_instance?
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?
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.).
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.
Very understandable. I reopened this issue, because I think we should implement it.
Has anyone made any progress on adding functionality to allow IAM role to be specified when using ec2_launch_instance?
This would be really nice to have. Any idea when it will be available?
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).