# How do you enforce tagging policies in your AWS account?

**URL:** <https://awshq.com/t/how-do-you-enforce-tagging-policies-in-your-aws-account/1674>\
**Category:** AWS Cloud Talk\
**Created:** [April 1, 2016, 2:35pm UTC](https://awshq.com/t/how-do-you-enforce-tagging-policies-in-your-aws-account/1674 "2016-04-01T14:35:13Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![ckilborn](https://awshq.com/letter_avatar_proxy/v4/letter/c/a88e57/32.png) [@ckilborn](https://awshq.com/u/ckilborn)\
**Post date:** [April 1, 2016, 2:35pm UTC](https://awshq.com/t/how-do-you-enforce-tagging-policies-in-your-aws-account/1674/1 "2016-04-01T14:35:13Z")

</div>

_How do you enforce tagging policies in your AWS account?_

* * *

**Related discussions:**

- [AWS ETC is being retired](https://awshq.com/t/aws-etc-is-being-retired/21634)
- [AWS suport is the wrost i have ever seen anywhere](https://awshq.com/t/aws-suport-is-the-wrost-i-have-ever-seen-anywhere/21705)
- [PHP critical updated](https://awshq.com/t/php-critical-updated/21653)
- [STS Get Scoped Credentials API](https://awshq.com/t/sts-get-scoped-credentials-api/21727)
- [GPU instance availability in Europe](https://awshq.com/t/gpu-instance-availability-in-europe/21619)

---

<div class="post-metadata">

**Author:** ![Jameswinegar](https://awshq.com/letter_avatar_proxy/v4/letter/j/f9ae1b/32.png) [@Jameswinegar](https://awshq.com/u/Jameswinegar)\
**Post date:** [April 1, 2016, 3:01pm UTC](https://awshq.com/t/how-do-you-enforce-tagging-policies-in-your-aws-account/1674/2 "2016-04-01T15:01:43Z")

</div>

Have a script that automatically terminated non-tagged items. People will tag everything then.

---

<div class="post-metadata">

**Author:** ![BlackIsis](https://awshq.com/letter_avatar_proxy/v4/letter/b/dec6dc/32.png) [@BlackIsis](https://awshq.com/u/BlackIsis)\
**Post date:** [April 1, 2016, 3:14pm UTC](https://awshq.com/t/how-do-you-enforce-tagging-policies-in-your-aws-account/1674/3 "2016-04-01T15:14:29Z")

</div>

This is something I have been trying to figure out too, and I don’t have a good answer yet. I think the first part it tightening down who can spin up new instances and how they can do it – if you give everyone console access and let them go crazy, it will be untenable in short order.

One thing I have thought about is building a front-end that just makes API calls to spin things up, and then it is easy to enforce tagging, if that’s the only way most people have access to it. Unfortunately, that is a little more work than most people have time for. 😕

---

<div class="post-metadata">

**Author:** ![GlobeTrottingWeasels](https://awshq.com/letter_avatar_proxy/v4/letter/g/90db22/32.png) [@GlobeTrottingWeasels](https://awshq.com/u/GlobeTrottingWeasels)\
**Post date:** [April 1, 2016, 3:16pm UTC](https://awshq.com/t/how-do-you-enforce-tagging-policies-in-your-aws-account/1674/4 "2016-04-01T15:16:42Z")

</div>

> [@Jameswinegar](#):
>
> Have a script that automatically terminated non-tagged items. People will tag everything then.

This is just what I’m in the process of doing. It’s amazing how quickly people fall into line when you’re blowing away a days hard work because they didn’t tag something 🙂

---

<div class="post-metadata">

**Author:** ![mfunger](https://awshq.com/letter_avatar_proxy/v4/letter/m/c77e96/32.png) [@mfunger](https://awshq.com/u/mfunger)\
**Post date:** [April 1, 2016, 5:55pm UTC](https://awshq.com/t/how-do-you-enforce-tagging-policies-in-your-aws-account/1674/5 "2016-04-01T17:55:00Z")

</div>

Not allow people to spin resources up outside of OpsWorks.

---

<div class="post-metadata">

**Author:** ![sruon](https://awshq.com/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@sruon](https://awshq.com/u/sruon)\
**Post date:** [April 1, 2016, 8:38pm UTC](https://awshq.com/t/how-do-you-enforce-tagging-policies-in-your-aws-account/1674/6 "2016-04-01T20:38:07Z")

</div>

Lambda that checks every hour for tag present. Missing it? Shutdown or terminate.

---

<div class="post-metadata">

**Author:** ![CoinGrahamIV](https://awshq.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@CoinGrahamIV](https://awshq.com/u/CoinGrahamIV)\
**Post date:** [April 1, 2016, 9:08pm UTC](https://awshq.com/t/how-do-you-enforce-tagging-policies-in-your-aws-account/1674/7 "2016-04-01T21:08:46Z")

</div>

Shotgun? Sythe?

---

<div class="post-metadata">

**Author:** ![Tmarshallva](https://awshq.com/letter_avatar_proxy/v4/letter/t/e8c25b/32.png) [@Tmarshallva](https://awshq.com/u/Tmarshallva)\
**Post date:** [April 1, 2016, 9:21pm UTC](https://awshq.com/t/how-do-you-enforce-tagging-policies-in-your-aws-account/1674/8 "2016-04-01T21:21:11Z")

</div>

Janitor Monkey.

---

<div class="post-metadata">

**Author:** ![tofufish](https://awshq.com/letter_avatar_proxy/v4/letter/t/4af34b/32.png) [@tofufish](https://awshq.com/u/tofufish)\
**Post date:** [April 1, 2016, 10:18pm UTC](https://awshq.com/t/how-do-you-enforce-tagging-policies-in-your-aws-account/1674/9 "2016-04-01T22:18:58Z")

</div>

> [@Tmarshallva](#):
>
> Janitor Monkey.

Are you actually using it? It seems to be the de facto answer but it doesn’t look to be as heavily maintained as it once was.

---

<div class="post-metadata">

**Author:** ![effieram](https://awshq.com/letter_avatar_proxy/v4/letter/e/3da27b/32.png) [@effieram](https://awshq.com/u/effieram)\
**Post date:** [April 1, 2016, 11:31pm UTC](https://awshq.com/t/how-do-you-enforce-tagging-policies-in-your-aws-account/1674/10 "2016-04-01T23:31:11Z")

</div>

How many ways to skin a cat, let me count them.

- AWS Config Rules
- Tag enforcement w/ AWS Service Catalog (Using parameters)
- Lambda (my personal favorite)

With lambda, you can trigger on any number of things, such as a schedule, cloudwatch events, an API call to API Gateway, etc.

---

<div class="post-metadata">

**Author:** ![viyh](https://awshq.com/letter_avatar_proxy/v4/letter/v/a3d4f5/32.png) [@viyh](https://awshq.com/u/viyh)\
**Post date:** [April 2, 2016, 12:16am UTC](https://awshq.com/t/how-do-you-enforce-tagging-policies-in-your-aws-account/1674/11 "2016-04-02T00:16:28Z")

</div>

One of the built-in managed rules with AWS Config Rules is to check for tags.

---

<div class="post-metadata">

**Author:** ![Jrf83317](https://awshq.com/letter_avatar_proxy/v4/letter/j/87869e/32.png) [@Jrf83317](https://awshq.com/u/Jrf83317)\
**Post date:** [April 2, 2016, 1:08pm UTC](https://awshq.com/t/how-do-you-enforce-tagging-policies-in-your-aws-account/1674/12 "2016-04-02T13:08:39Z")

</div>

Config rules are limited to one region as of now

Janitor monkey is ok but requires customization and complete understanding if you need to use it across multiple accounts with different requirements.

My choice is custom scripts for large scale multi-account setups to notify users of untagged resources then proceed with additional actions of turning off, deleting, etc. what ever everyone agrees to.

Lambda scripts work well doing steps above for single accounts or smaller setups. Keep in mind lambda has a 5 minute execution limit and when you have to loop through thousands of resources you may time out.

At the end of the day make sure all the players involved understand the tagging requirements and the actions that will be taken for violations before it is all rolled out. Using dry runs is a good way to test everything.

In addition look into tagging flow down scripts to help automate the tagging. For example copying the tag from the instance to the ebs volumes, ebs volumes to snap shots, AMIs to snapshots, etc.

My .02

---

<div class="post-metadata">

**Author:** ![Tmarshallva](https://awshq.com/letter_avatar_proxy/v4/letter/t/e8c25b/32.png) [@Tmarshallva](https://awshq.com/u/Tmarshallva)\
**Post date:** [April 2, 2016, 6:50pm UTC](https://awshq.com/t/how-do-you-enforce-tagging-policies-in-your-aws-account/1674/13 "2016-04-02T18:50:06Z")

</div>

> [@tofufish](#):
>
> Are you actually using it? It seems to be the de facto answer but it doesn’t look to be as heavily maintained as it once was.

We are. We started by simply notifying account owners of untagged instances and then escalated to deleting if not tagged in a certain amount of time after the notice.
