Skip to content

Commit

Permalink
pull region into var
Browse files Browse the repository at this point in the history
  • Loading branch information
swhite24 committed Mar 3, 2021
1 parent 5ddec47 commit 6fb49da
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions terraform/backend.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
terraform {
backend "s3" {
bucket = "swhite24-cbpro-buy-state"
key = "cbpro-weekly.terraform.tfstate"
region = "us-east-1"
}
}
2 changes: 1 addition & 1 deletion terraform/providers.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
provider aws {
region = "us-east-1"
region = var.region
}
1 change: 1 addition & 0 deletions terraform/var.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
variable region { default = "us-east-1" }
variable function_name { default = "cbpro-buy-weekly" }
variable lambda_schedule_expression { default = "cron(0 5 ? * 5 *)" }
variable executable { default = "cbpro-buy-lambda" }
Expand Down

0 comments on commit 6fb49da

Please sign in to comment.