Skip to content

Commit

Permalink
Stop use here document sqs policy
Browse files Browse the repository at this point in the history
  • Loading branch information
kjmkznr committed Mar 12, 2016
1 parent 2362199 commit 69bf108
Showing 1 changed file with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,22 +331,7 @@ func testAccAWSS3BucketConfigWithQueueNotification(randInt int) string {
return fmt.Sprintf(`
resource "aws_sqs_queue" "queue" {
name = "terraform-test-queue-%d"
policy = <<POLICY
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": "*",
"Action": "sqs:SendMessage",
"Resource": "arn:aws:sqs:*:*:terraform-test-queue-%d",
"Condition": {
"ArnEquals": { "aws:SourceArn": "${aws_s3_bucket.bucket.arn}" }
}
}
]
}
POLICY
policy = "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"sqs:SendMessage\",\"Resource\":\"arn:aws:sqs:*:*:terraform-test-queue-%d\",\"Condition\":{\"ArnEquals\":{\"aws:SourceArn\":\"${aws_s3_bucket.bucket.arn}\"}}}]}"
}
resource "aws_s3_bucket" "bucket" {
Expand Down

0 comments on commit 69bf108

Please sign in to comment.