Skip to content

Commit 563432b

Browse files
committed
add team tag to activities
cloudwatch metric streams to datadog copies AWS tags over to metrics in datadog, and it'd be helpful for activity metrics to have a team tag to create team-specific alerts
1 parent 178da8b commit 563432b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/sfncli/sfncli.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ func tagsFromEnv() []*sfn.Tag {
232232
if account := os.Getenv("_POD_ACCOUNT"); account != "" {
233233
tags = append(tags, &sfn.Tag{Key: aws.String("pod-account"), Value: aws.String(account)})
234234
}
235+
if team := os.Getenv("_TEAM_OWNER"); team != "" {
236+
tags = append(tags, &sfn.Tag{Key: aws.String("team"), Value: aws.String(team)})
237+
}
235238

236239
return tags
237240
}

0 commit comments

Comments
 (0)