We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d55d8fc commit 351072dCopy full SHA for 351072d
terragrunt/org_account/organization/scp_deny_ec2_connect.tf
@@ -11,8 +11,18 @@ data "aws_iam_policy_document" "scp_deny_ec2_connect" {
11
"*"
12
]
13
}
14
-}
15
+ statement {
16
+ effect = "Deny"
17
+ actions = [
18
+ "ssm:StartSession"
19
+ ]
20
+ resources = [
21
+ "arn:aws:ec2:*:*:instance/*",
22
+ "arn:aws:ssm:*:*:managed-instance/*"
23
24
+ }
25
+}
26
27
resource "aws_organizations_policy" "scp_deny_ec2_connect" {
28
name = "Deny EC2 Instance Connect"
0 commit comments