Skip to content

Commit

Permalink
chore(terraform): add script to deploy without downloading secrets be…
Browse files Browse the repository at this point in the history
…fore

Add remove unnecessary comments
  • Loading branch information
hugotiburtino committed Jul 17, 2024
1 parent 5040c4f commit fc27bbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 0 additions & 6 deletions envs/production/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#####################################################################
# settings for production
#####################################################################
locals {
domain = "serlo.org"
project = "serlo-production"
Expand All @@ -17,9 +14,6 @@ locals {
kpi_database_instance_name = "${local.project}-postgres-2020-01-26"
}

#####################################################################
# modules
#####################################################################
module "cluster" {
source = "../../modules/gcloud/cluster"
name = "${local.project}-cluster"
Expand Down
5 changes: 4 additions & 1 deletion envs/terraform.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ terraform_plan: terraform_download_secrets
terraform plan -var-file secrets/terraform-$(env_name).tfvars

.PHONY: terraform_apply
terraform_apply: terraform_download_secrets
terraform_apply: terraform_download_secrets terraform_apply_without_downloading_secrets

.PHONY: terraform_apply_without_downloading_secrets
terraform_apply_without_downloading_secrets:
# just make sure we know what we are doing
terraform fmt -recursive
terraform apply -var-file secrets/terraform-$(env_name).tfvars
Expand Down

0 comments on commit fc27bbb

Please sign in to comment.