Error: Creating Policy Failed: InvalidInputException: Error in the SecurityServiceData.ManagedServiceData at [Source: (String)"{“securityGroupAction”:“DENY”,“securityGroups”:[“sg-xxxxxxxxxxxxx”],“type”:“SECURITY_GROUPS_CONTENT_AUDIT”}"; line: 1, column: 24
I was able to solve the issue I had to modify
managed_service_data = jsonencode({
type = "SECURITY_GROUPS_CONTENT_AUDIT"
securityGroupAction = { type = "DENY"}
securityGroups = [{ id = "sg-xxxxxxxxxxxxxxxxx"}]})