AWS CloudFormation Macros

0

Hi AWS, I have to create multiple IAM roles and need to attach same level of IAM access (policies) to them. I am using Infrastructure-as-Code approach (CloudFormation) for the same. The approach I am using as of now is duplicated the code for IAM roles and attached the same IAM policy(ies) to all the roles but that doesn't seem to be a right approach from imperative programming point-of-view though CFN is a declarative way of deploying the infrastructure.

I believe CloudFormation Macros can be handy for such an use case but I was not able to find anything similar over the internet which can help me and also the documentation for this very topic is not that elaborative (missing actual practical examples).

Can someone from AWS team help me on that and if there is any other great alternative available please let me know but it has to be in AWS CloudFormation world.

Thanks

profile picture
已提问 6 个月前146 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则