Skip to content

Commit

Permalink
merge fixes and comments for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbass committed May 21, 2024
1 parent ff71675 commit 92fdaab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,39 +62,39 @@ jobs:
terragrunt init -upgrade
terragrunt validate
terragrunt plan -out tfplan
# terragrunt apply tfplan
# terragrunt apply tfplan # will be re-enabled once release workflow is tested

- name: backend-infra
working-directory: ./tofu/environments/stage/services/backend-infra
run: |
terragrunt init -upgrade
terragrunt validate
terragrunt plan -out tfplan
# terragrunt apply tfplan
# terragrunt apply tfplan # will be re-enabled once release workflow is tested

- name: cache
working-directory: ./tofu/environments/stage/data-store/cache
run: |
terragrunt init -upgrade
terragrunt validate
terragrunt plan -out tfplan
# terragrunt apply tfplan
# terragrunt apply tfplan # will be re-enabled once release workflow is tested

- name: database
working-directory: ./tofu/environments/stage/data-store/database
run: |
terragrunt init -upgrade
terragrunt validate
terragrunt plan -out tfplan
# terragrunt apply tfplan
# terragrunt apply tfplan # will be re-enabled once release workflow is tested

- name: frontend-infra
working-directory: ./tofu/environments/stage/services/frontend-infra
run: |
terragrunt init -upgrade
terragrunt validate
terragrunt plan -out tfplan
# terragrunt apply tfplan
# terragrunt apply tfplan # will be re-enabled once release workflow is tested

- name: output-bucket-name
id: output-bucket-name
Expand Down Expand Up @@ -156,8 +156,9 @@ jobs:
terragrunt validate
terragrunt plan -var "image=$(cat steps.get_ecr_tag.outputs.*)" -out tfplan
cat tfplan
# terragrunt apply tfplan
# terragrunt apply tfplan # will be re-enabled once release workflow is tested

# will be re-enabled once release workflow is tested
# - name: Deploy frontend to S3
# run: aws s3 sync ./frontend/frontend/dist "s3://${{ needs.deploy-iac.outputs.bucket }}"

Expand Down
4 changes: 0 additions & 4 deletions tofu/environments/stage/environment.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ generate "versions" {
source = "hashicorp/random"
version = ">= 3.6.1"
}
random = {
source = "hashicorp/random"
version = ">= 3.6.1"
}
}
}
EOF
Expand Down
9 changes: 0 additions & 9 deletions tofu/modules/services/backend-infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ resource "random_string" "x_allow_suffix" {
special = false
upper = true
}

resource "random_string" "x_allow_suffix" {
length = 8
lower = true
numeric = false
special = false
upper = true
}

resource "aws_secretsmanager_secret" "x_allow_secret" {
name = "${var.name_prefix}-x-allow-secret-${random_string.x_allow_suffix.result}"
}
Expand Down

0 comments on commit 92fdaab

Please sign in to comment.