cds-snc / forms-terraform

Infrastructure as Code for the GC Forms environment
MIT License
16 stars 7 forks source link

* Add Env Variable for AddressComplete #793

Closed ShadeWyrm closed 3 months ago

ShadeWyrm commented 3 months ago

Adds what's needed to add a secret API key for AddressComplete.

github-actions[bot] commented 3 months ago

⚠ Terrform update available

Terraform: 1.9.5 (using 1.9.2)
Terragrunt: 0.67.0 (using 0.63.2)
github-actions[bot] commented 3 months ago

Staging: secrets

✅   Terraform Init: success ❌   Terraform Validate: failed ✅   Terraform Format: success ❌   Terraform Plan: failed ❌   Conftest: failed

Show Validate results ```sh Error: Reference to undeclared input variable on secrets.tf line 34, in resource "aws_secretsmanager_secret_version" "addresscomplete_api_key": 34: secret_string = var.addresscomplete_api_key An input variable with the name "addresscomplete_api_key" has not been declared. This variable can be declared with a variable "addresscomplete_api_key" {} block. time=2024-08-29T16:32:09Z level=error msg=terraform invocation failed in /home/runner/work/forms-terraform/forms-terraform/env/cloud/secrets/.terragrunt-cache/_hmgdkrJKVNcixWbuw1c5wF1IMs/-syjFrdAaB-6kNXhMmF1nXBOp7o/secrets error=[/home/runner/work/forms-terraform/forms-terraform/env/cloud/secrets/.terragrunt-cache/_hmgdkrJKVNcixWbuw1c5wF1IMs/-syjFrdAaB-6kNXhMmF1nXBOp7o/secrets] exit status 1 prefix=[/home/runner/work/forms-terraform/forms-terraform/env/cloud/secrets] time=2024-08-29T16:32:09Z level=error msg=1 error occurred: * [/home/runner/work/forms-terraform/forms-terraform/env/cloud/secrets/.terragrunt-cache/_hmgdkrJKVNcixWbuw1c5wF1IMs/-syjFrdAaB-6kNXhMmF1nXBOp7o/secrets] exit status 1 ```
Show plan ```terraform Error: Reference to undeclared input variable on secrets.tf line 34, in resource "aws_secretsmanager_secret_version" "addresscomplete_api_key": 34: secret_string = var.addresscomplete_api_key An input variable with the name "addresscomplete_api_key" has not been declared. This variable can be declared with a variable "addresscomplete_api_key" {} block. time=2024-08-29T16:32:11Z level=error msg=terraform invocation failed in /home/runner/work/forms-terraform/forms-terraform/env/cloud/secrets/.terragrunt-cache/_hmgdkrJKVNcixWbuw1c5wF1IMs/-syjFrdAaB-6kNXhMmF1nXBOp7o/secrets error=[/home/runner/work/forms-terraform/forms-terraform/env/cloud/secrets/.terragrunt-cache/_hmgdkrJKVNcixWbuw1c5wF1IMs/-syjFrdAaB-6kNXhMmF1nXBOp7o/secrets] exit status 1 prefix=[/home/runner/work/forms-terraform/forms-terraform/env/cloud/secrets] time=2024-08-29T16:32:11Z level=error msg=1 error occurred: * [/home/runner/work/forms-terraform/forms-terraform/env/cloud/secrets/.terragrunt-cache/_hmgdkrJKVNcixWbuw1c5wF1IMs/-syjFrdAaB-6kNXhMmF1nXBOp7o/secrets] exit status 1 ```