Skip to content

Commit

Permalink
Ccl 90/create ai opt out (#144)
Browse files Browse the repository at this point in the history
* Update json policy

* Update policy format
  • Loading branch information
danielpalmeribm authored Jul 15, 2024
1 parent 60c2552 commit 3bf09cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
2 changes: 1 addition & 1 deletion modules/aws/ai_opt_out/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ resource "aws_organizations_policy" "ai_services_opt_out" {
name = var.policy_name
description = var.policy_description
type = "AISERVICES_OPT_OUT_POLICY"
content = jsonencode(var.services_overrides)
content = var.services_overrides
}


Expand Down
28 changes: 9 additions & 19 deletions modules/aws/ai_opt_out/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,14 @@ variable "apply_to_ous_or_accounts" {
}

variable "services_overrides" {
description = "Overrides for AI services opt-out policies"
default = {
"services" : {
"services": {
"@@operators_allowed_for_child_policies": [
"@@none"
],
"default": {
"@@operators_allowed_for_child_policies": [
"@@none"
],
"opt_out_policy": {
"@@assign": "optOut",
"@@operators_allowed_for_child_policies": [
"@@none"
]
}
}
"services": {
"@@operators_allowed_for_child_policies": ["@@none"],
"default": {
"@@operators_allowed_for_child_policies": ["@@none"],
"opt_out_policy": {
"@@operators_allowed_for_child_policies": ["@@none"],
"@@assign": "optOut"
}
} }
}
}
}

0 comments on commit 3bf09cd

Please sign in to comment.