Skip to content

Commit

Permalink
updated TF version
Browse files Browse the repository at this point in the history
renaming resoruces
updating S3 git ref
  • Loading branch information
sionsmith committed Nov 8, 2020
1 parent 8dba538 commit 95f8304
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions aws_cloudfront_distribution.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ resource "aws_cloudfront_distribution" "s3_distribution" {
]

logging_config {
bucket = module.bucket-cloudwatch-logs-backup.bucket_domain_name
bucket = module.bucket_cloudwatch_logs_backup.bucket_domain_name
include_cookies = false
prefix = "cloudfront/"
}
Expand Down Expand Up @@ -78,7 +78,7 @@ resource "aws_cloudfront_distribution" "s3_distribution" {
#tags
tags = var.common_tags

depends_on = [module.bucket-cloudwatch-logs-backup, aws_acm_certificate.certificate]
depends_on = [module.bucket_cloudwatch_logs_backup, aws_acm_certificate.certificate]
}

resource "aws_cloudfront_origin_access_identity" "current" {}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module "bucket-cloudwatch-logs-backup" {
source = "../../aws-terraform-module-s3"
module "bucket_cloudwatch_logs_backup" {
source = "git::ssh://[email protected]/osodevops/aws-terraform-module-s3.git"
// source = "../../aws-terraform-module-s3"
s3_bucket_name = local.logging_bucket_name
s3_bucket_force_destroy = false
s3_bucket_policy = ""
Expand Down
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
output "logging_bucket" {
value = module.bucket-cloudwatch-logs-backup.s3_id
value = module.bucket_cloudwatch_logs_backup.s3_id
}

output "distribution" {
Expand Down
3 changes: 3 additions & 0 deletions terraform.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
terraform {
required_version = ">= 0.13.5"
}

0 comments on commit 95f8304

Please sign in to comment.