Skip to content

Commit

Permalink
Merge pull request #4 from mergermarket/cloudfront
Browse files Browse the repository at this point in the history
Cloudfront switch
  • Loading branch information
keirbadger authored Oct 7, 2024
2 parents c7ceca4 + e96734d commit 8dc1f32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions fastly.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module "fastly" {
source = "./modules/fastly-frontend"
count = var.cloudfront_migrated == "false" ? 1 : 0

domain_name = var.fastly_domain
additional_domain_names = var.additional_fastly_domains
Expand Down
7 changes: 7 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
variable "cloudfront_migrated" {
description = "Whether the service has been migrated to CloudFront"
type = string
default = "false"

}

# required
variable "fastly_domain" {
description = ""
Expand Down

0 comments on commit 8dc1f32

Please sign in to comment.