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
preguntada hace 6 meses145 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas