Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1 from dividehex/upgrade_tf
Browse files Browse the repository at this point in the history
Upgrade to terraform 0.7.x compatibility
  • Loading branch information
dividehex authored Nov 1, 2016
2 parents 80d6864 + 9dc6331 commit fd6ba66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ variable "bucket_name" {
}


resource "template_file" "logging_bucket_policy" {
data "template_file" "logging_bucket_policy" {
template = "${file("${path.module}/cloudtrail_bucket.json.tmpl")}"
vars {
account_id = "${var.account_id}"
Expand All @@ -18,7 +18,7 @@ resource "template_file" "logging_bucket_policy" {
resource "aws_s3_bucket" "logging_bucket" {
bucket = "${var.bucket_name}"
acl = "private"
policy = "${template_file.logging_bucket_policy.rendered}"
policy = "${data.template_file.logging_bucket_policy.rendered}"
tags {
Name = "cloudtrail bucket"
}
Expand Down

0 comments on commit fd6ba66

Please sign in to comment.