Skip to content

Commit d459b3c

Browse files
committed
Add AWS tagging how to guide
1 parent 666ee3a commit d459b3c

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"collapsible": false,
3+
"collapsed": false,
4+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# How to tag your infrastructure
2+
3+
This guide shows you how to configure tagging to meet the [tagging standard](../Reference/hosting-standards/tagging.md) using infrastructure as code.
4+
5+
## Terraform
6+
7+
TODO
8+
9+
## Serverless Framework
10+
11+
In order to add tagging to AWS resources managed by Serverless Framework:
12+
13+
1. Install the `serverless-plugin-resource-tagging` Node module, e.g. `npm install serverless-plugin-resource-tagging` or `yarn add serverless-plugin-resource-tagging`.
14+
2. Add the plugin to the `plugins` list in `serverless.yml` in your project and add the tags under `stackTags`, e.g.:
15+
```yaml
16+
provider:
17+
# ...
18+
stackTags:
19+
Application: "Developer Playbook"
20+
TeamEmail: "[email protected]"
21+
Environment: "production"
22+
23+
# For CircleCI
24+
AutomationBuildUrl: ${env:CIRCLE_BUILD_URL}
25+
26+
# For GitHub Actions
27+
AutomationBuildUrl: ${env:GITHUB_SERVER_URL}/${env:GITHUB_REPOSITORY}/actions/runs/${env:GITHUB_RUN_ID}
28+
29+
plugins:
30+
- serverless-plugin-resource-tagging
31+
```
32+
33+
Refer to the [tagging standard](../Reference/hosting-standards/tagging.md) for a full list of mandatory and optional tags.

0 commit comments

Comments
 (0)