-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
50 additions
and
38 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
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,4 @@ | ||
data "aws_region" "main" { | ||
provider = "aws.main" | ||
provider = aws.main | ||
} | ||
|
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,11 +1,12 @@ | ||
provider "aws" { | ||
alias = "main" | ||
alias = "main" | ||
version = "~> 2.9" | ||
# description = "AWS Region for S3 and other resources" | ||
} | ||
|
||
provider "aws" { | ||
alias = "cloudfront" | ||
alias = "cloudfront" | ||
version = "~> 2.9" | ||
# description = "AWS Region for Cloudfront (ACM certs only supports us-east-1)" | ||
} | ||
|
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,38 +1,39 @@ | ||
variable "fqdn" { | ||
type = "string" | ||
type = string | ||
description = "The FQDN of the website and also name of the S3 bucket" | ||
} | ||
|
||
variable "redirect_target" { | ||
type = "string" | ||
type = string | ||
description = "The FQDN to redirect to" | ||
} | ||
|
||
variable "force_destroy" { | ||
type = "string" | ||
type = string | ||
description = "The force_destroy argument of the S3 bucket" | ||
default = "false" | ||
} | ||
|
||
variable "ssl_certificate_arn" { | ||
type = "string" | ||
type = string | ||
description = "ARN of the certificate covering var.fqdn" | ||
} | ||
|
||
variable "web_acl_id" { | ||
type = "string" | ||
type = string | ||
description = "WAF Web ACL ID to attach to the CloudFront distribution, optional" | ||
default = "" | ||
} | ||
|
||
variable "refer_secret" { | ||
type = "string" | ||
type = string | ||
description = "A secret string to authenticate CF requests to S3" | ||
default = "345-VERY-SECRET-678" | ||
default = "345-VERY-SECRET-678" | ||
} | ||
|
||
variable "tags" { | ||
type = "map" | ||
type = map(string) | ||
description = "Tags" | ||
default = {} | ||
} | ||
|
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" | ||
} |