Skip to content

Commit

Permalink
HOTT-4135: Update References to Backends
Browse files Browse the repository at this point in the history
[ci skip]

+ Use new admin backends
+ Update pre-commit hooks
+ Update tf version req
  • Loading branch information
amberstarlight committed Oct 30, 2023
1 parent e4ebde8 commit 6b444b5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
files: (^terraform\/\S+)|(.pre\-commit\-config.yaml)|(.circleci\/\S+)
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.81.0
rev: v1.83.5
hooks:
- id: terraform_fmt
- id: terraform_validate
Expand All @@ -14,7 +14,7 @@ repos:
- --hook-config=--create-file-if-not-exist=true

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
4 changes: 2 additions & 2 deletions terraform/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# trade-tariff-duty-calculator terraform
# trade-tariff-admin

Terraform to deploy the service into AWS.
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Requirements

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | 1.5.5 |
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.5 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4 |

## Providers
Expand Down
4 changes: 2 additions & 2 deletions terraform/locals.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
locals {
service = "admin"
api_service_backend_url_options = {
uk = "http://backend-uk.tariff.internal:8080"
xi = "http://backend-xi.tariff.internal:8080"
uk = "http://backend-admin-uk.tariff.internal:8080"
xi = "http://backend-admin-xi.tariff.internal:8080"
}

govuk_app_domain = var.environment != "production" ? var.environment == "development" ? "tariff-admin-dev" : "tariff-admin-staging" : "tariff-admin"
Expand Down
2 changes: 1 addition & 1 deletion terraform/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = "1.5.5"
required_version = ">= 1.5.5"

required_providers {
aws = {
Expand Down

0 comments on commit 6b444b5

Please sign in to comment.