I am trying to apply https://docs.aws.amazon.com/config/latest/developerguide/s3-bucket-policy-not-more-permissive.html into a terraform template.
Now, in the input_parameters I need to pass the control policy statement.
{
“Version”: “2012-10-17”,
“Statement”: [
{
“Principal”: {
“AWS”: “11112222333”
},
“Effect”: “Allow”,
“Action”: “s3:GetObject”,
“Resource”: “"
},
{
“Principal”: {
“AWS”: “44445556666”
},
“Effect”: “Allow”,
“Action”: "s3:”,
“Resource”: “*”
}
]
}
However, Terraform apply keeps throwing me an error Failed to create AWSConfig rule: InvalidParameterValueException: Blank spaces are not acceptable for input parameter statement.
Can somebody please advise.