Hi everyone!
I have a simple question, but I didn't find any information about...
I've created custom component resource for AWS IAM role creation and IAM Policies (two separate)
Is it possible to import existing IAM role to be managed by my custom component resource?
Thanks
s
stocky-restaurant-98004
03/30/2023, 2:15 PM
I think you can import the regular resource (aws.Iam.Role) and then alias it to your component.
f
freezing-twilight-25806
03/30/2023, 2:16 PM
Interesting... I will try! Thank you
s
stocky-restaurant-98004
03/30/2023, 2:16 PM
Please do let me know how it goes.
l
little-cartoon-10569
03/30/2023, 6:47 PM
You can update your component code to add the import opt to the role it creates. This works only if you have just one instance of your component.