https://kotlinlang.org logo
a

AnnoymousGiraf

10/09/2020, 2:03 AM
Hey all is there anyway i can specify a specific iam role with the config?
t

TanVD

10/09/2020, 8:10 AM
Only via terraform extensions :)
BTW, what is the use case? Maybe Kotless just lacks an annotations for resources in your case
a

AnnoymousGiraf

10/11/2020, 9:05 AM
what do you mean lack annotations? our use case it that the Lamda needs specific IAM role that it is not stored loccaly. you rekon we can use some libary with Kotless or to move on to CDK which works fine for us in the meantime
t

TanVD

10/11/2020, 10:21 AM
Hm, is that role already exist in cloud? Should it be applied to all routes inside application or only to some of them? It is possible to add inside Kotless annotation that will assign to lambda specific IAM role :) But it is not supported right now
a

AnnoymousGiraf

10/11/2020, 10:54 PM
it is already created, since we work at a bank we cant just create roles on the fly. how can i assign the IAM to the lambda ?
t

TanVD

10/12/2020, 11:08 AM
Right now you can use terraform extensions functionality to extend generated code with additional assignment )