Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion terraform/platform/iam/boundary.tf
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,13 @@ locals {
# -- REQUEST TAG ENFORCEMENT --
# SGs use IDs in ARNs so DenyBadName can't enforce naming.
# Require team tag on create — Terraform default_tags handles this.
# Only the SG resource: CreateSecurityGroup is also authorized against
# the VPC, where request tags are never present, so "*" denied it always.
{
Sid = "DenyNoTag"
Effect = "Deny"
Action = "ec2:CreateSecurityGroup"
Resource = "*"
Resource = "arn:aws:ec2:*:*:security-group/*"
Condition = {
StringNotEqualsIfExists = {
"aws:RequestTag/team" = "$${aws:PrincipalTag/team}"
Expand Down
Loading