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

No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions