-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade codebase to 0.12 syntax (#34)
- Loading branch information
1 parent
8888087
commit 3741d09
Showing
17 changed files
with
214 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
# Compiled files | ||
*.tfstate | ||
*.tfstate.backup | ||
.terraform/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
variable domain {} | ||
variable target {} | ||
variable route53_zone_id {} | ||
variable cdn_hosted_zone_id {} | ||
variable "domain" { | ||
type = string | ||
} | ||
|
||
variable "target" { | ||
type = string | ||
} | ||
|
||
variable "route53_zone_id" { | ||
type = string | ||
} | ||
|
||
variable "cdn_hosted_zone_id" { | ||
type = string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
terraform { | ||
required_version = ">= 0.12" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
variable domain {} | ||
variable target {} | ||
variable route53_zone_id {} | ||
variable "domain" { | ||
type = string | ||
} | ||
|
||
variable "target" { | ||
type = string | ||
} | ||
|
||
variable "route53_zone_id" { | ||
type = string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
terraform { | ||
required_version = ">= 0.12" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
output "website_cdn_hostname" { | ||
value = "${aws_cloudfront_distribution.website_cdn.domain_name}" | ||
value = aws_cloudfront_distribution.website_cdn.domain_name | ||
} | ||
|
||
output "website_cdn_id" { | ||
value = "${aws_cloudfront_distribution.website_cdn.id}" | ||
value = aws_cloudfront_distribution.website_cdn.id | ||
} | ||
|
||
output "website_cdn_arn" { | ||
value = "${aws_cloudfront_distribution.website_cdn.arn}" | ||
value = aws_cloudfront_distribution.website_cdn.arn | ||
} | ||
|
||
|
||
output "website_cdn_zone_id" { | ||
value = "${aws_cloudfront_distribution.website_cdn.hosted_zone_id}" | ||
value = aws_cloudfront_distribution.website_cdn.hosted_zone_id | ||
} | ||
|
||
output "website_bucket_id" { | ||
value = "${aws_s3_bucket.website_bucket.id}" | ||
value = aws_s3_bucket.website_bucket.id | ||
} | ||
|
||
output "website_bucket_arn" { | ||
value = "${aws_s3_bucket.website_bucket.arn}" | ||
value = aws_s3_bucket.website_bucket.arn | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,71 @@ | ||
variable region { | ||
variable "region" { | ||
default = "us-east-1" | ||
} | ||
|
||
variable project { | ||
variable "project" { | ||
default = "noproject" | ||
} | ||
variable environment { | ||
|
||
variable "environment" { | ||
type = string | ||
default = "default" | ||
} | ||
|
||
variable domain {} | ||
variable "domain" { | ||
type = string | ||
} | ||
|
||
variable bucket_name { | ||
variable "bucket_name" { | ||
type = string | ||
description = "The name of the S3 bucket to create." | ||
} | ||
|
||
variable duplicate-content-penalty-secret {} | ||
variable deployer {} | ||
variable acm-certificate-arn {} | ||
variable "duplicate-content-penalty-secret" { | ||
type = string | ||
} | ||
|
||
variable "deployer" { | ||
type = string | ||
} | ||
|
||
variable "acm-certificate-arn" { | ||
type = string | ||
} | ||
|
||
variable routing_rules { | ||
variable "routing_rules" { | ||
type = string | ||
default = "" | ||
} | ||
|
||
variable default-root-object { | ||
variable "default-root-object" { | ||
type = string | ||
default = "index.html" | ||
} | ||
|
||
variable not-found-response-path { | ||
variable "not-found-response-path" { | ||
type = string | ||
default = "/404.html" | ||
} | ||
|
||
variable "tags" { | ||
type = "map" | ||
type = map(string) | ||
description = "Optional Tags" | ||
default = {} | ||
} | ||
|
||
variable "trusted_signers" { | ||
type = "list" | ||
type = list(string) | ||
default = [] | ||
} | ||
|
||
variable "forward-query-string" { | ||
type = bool | ||
description = "Forward the query string to the origin" | ||
default = false | ||
} | ||
|
||
variable "price_class" { | ||
type = string | ||
description = "CloudFront price class" | ||
default = "PriceClass_200" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
terraform { | ||
required_version = ">= 0.12" | ||
} |
Oops, something went wrong.