AWS Certified Solutions Architect - Professional 2020

Sign Up Free or Log In to participate!

Is it possible to use CloudFormation to enforce tagging on resources being created?

Hi, 

Seems like a simple question but I cant seem to find the answer anywhere on documentation.

Is it possible to use CloudFormation to enforce tagging on resources being created?

1 Answers

Hi Jneo,
Yes, 

You can set conditions on CloudFormation parameters with ‘parameter constraints’.  regex style constraints.  You can also specify selection lists if you don’t want a free for all.  You can even pass environment parameters such as user ID of the person invoking the template into a Tag.  

So much power, but you need to spend some time learning how to make it work for you. 😉

Check this out.

– https://learn.acloud.guru/course/aws-advanced-cloudformation/dashboard

 https://acloud.guru/course/aws-advanced-cloudformation/learn/d8067ef9-7840-7c93-e19e-6e1d9a52d756/8512173b-d08c-edb6-ea5b-744eeda469cf/watch

This course is getting a bit old, but it is still has a wealth of valuable information built into it.

also 

– https://www.google.com/search?q=cloudformation+parameter+constraints

Rusty

Moderator & Coach

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?