TagPolicy(Organizations)
動作確認済み@2025/12/24
tag-policy-common.yml
AWSTemplateFormatVersion: "2010-09-09"
Description: tag-policy-common (SYSTEM, ENV, STACK_NAME)
Resources:
TagPolicyCommon:
Type: AWS::Organizations::Policy
Properties:
Name: tag-policy-common
Description: Common tag policy to normalize SYSTEM, ENV, STACK_NAME
Type: TAG_POLICY
Content: |
{
"tags": {
"SYSTEM": {
"tag_key": {
"@@assign": "SYSTEM"
}
},
"ENV": {
"tag_key": {
"@@assign": "ENV"
},
"tag_value": {
"@@assign": [
"prd",
"stg",
"dev"
]
}
},
"STACK_NAME": {
"tag_key": {
"@@assign": "STACK_NAME"
}
}
}
}