seahaven-org-baseline/lib/scp/external-dev-protect-security.json
Adam Moussa 10e66c92c0
Adopt external-dev OU and its 3 SCPs via resource import (#45)
cdk import by Id (non-mutating), content byte-exact from
describe-policy, targetIds = exact live attachments. Post-import drift
detection: IN_SYNC, 0 drifted. All four Retain — the full org guardrail
set is now drift-checked IaC.
2026-07-14 14:10:10 -04:00

26 lines
1 KiB
JSON

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyDisablingSecurityServices",
"Effect": "Deny",
"Action": [
"cloudtrail:StopLogging", "cloudtrail:DeleteTrail", "cloudtrail:UpdateTrail",
"guardduty:DeleteDetector", "guardduty:UpdateDetector", "guardduty:DisassociateFromMasterAccount",
"config:StopConfigurationRecorder", "config:DeleteConfigurationRecorder", "config:DeleteDeliveryChannel",
"securityhub:DisableSecurityHub", "securityhub:BatchDisableStandards",
"accessanalyzer:DeleteAnalyzer", "inspector2:Disable"
],
"Resource": "*",
"Condition": {
"ArnNotLike": { "aws:PrincipalArn": [
"arn:aws:iam::396287094661:role/OrganizationAccountAccessRole",
"arn:aws:iam::396287094661:role/cdk-hnb659fds-*",
"arn:aws:iam::396287094661:role/seahaven-extdev-config-custom-resource-role"
]}
}
},
{ "Sid": "DenyLeavingOrganization", "Effect": "Deny", "Action": ["organizations:LeaveOrganization"], "Resource": "*" }
]
}