Skip to content

Commit ec9ed05

Browse files
authored
Merge pull request #214 from NHSDigital/feature/CCM-7463_build-client
CCM-7463: build api clients
2 parents b6fdeea + c2837d4 commit ec9ed05

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+775
-127
lines changed

infrastructure/terraform/components/app/amplify_app.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ resource "aws_amplify_app" "main" {
3333
ACCOUNT_ID = var.aws_account_id
3434
NEXT_PUBLIC_DISABLE_CONTENT = var.disable_content
3535
AMPLIFY_MONOREPO_APP_ROOT = "frontend"
36+
BACKEND_API_URL = module.backend_api.api_base_url
3637
}
3738
}

infrastructure/terraform/components/app/module_templates_api.tf renamed to infrastructure/terraform/components/app/module_backend_api.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
module "templates_api" {
2-
source = "../../modules/templates-api"
1+
module "backend_api" {
2+
source = "../../modules/backend-api"
33

44
project = var.project
55
environment = var.environment

infrastructure/terraform/components/app/outputs.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,3 @@ output "deployment" {
1818
commit_id = var.commit_id
1919
}
2020
}
21-
22-
output "api_base_url" {
23-
value = module.templates_api.api_base_url
24-
}

infrastructure/terraform/components/sandbox/module_templates_api.tf renamed to infrastructure/terraform/components/sandbox/module_backend_api.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
module "templates_api" {
2-
source = "../../modules/templates-api"
1+
module "backend_api" {
2+
source = "../../modules/backend-api"
33

44
project = var.project
55
environment = var.environment

infrastructure/terraform/components/sandbox/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
output "api_base_url" {
2-
value = module.templates_api.api_base_url
2+
value = module.backend_api.api_base_url
33
}
44

55
output "cognito_user_pool_id" {

infrastructure/terraform/modules/templates-api/api_gateway_deployment_main.tf renamed to infrastructure/terraform/modules/backend-api/api_gateway_deployment_main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
resource "aws_api_gateway_deployment" "main" {
22
rest_api_id = aws_api_gateway_rest_api.main.id
3-
description = "Templates API deployment"
3+
description = "Web template UI API deployment"
44

55
triggers = {
66
openapi_hash = sha1(jsonencode(local.openapi_spec)),

infrastructure/terraform/modules/templates-api/api_gateway_method_settings.tf renamed to infrastructure/terraform/modules/backend-api/api_gateway_method_settings.tf

File renamed without changes.

infrastructure/terraform/modules/templates-api/api_gateway_rest_api_main.tf renamed to infrastructure/terraform/modules/backend-api/api_gateway_rest_api_main.tf

File renamed without changes.

infrastructure/terraform/modules/templates-api/api_gateway_stage_main.tf renamed to infrastructure/terraform/modules/backend-api/api_gateway_stage_main.tf

File renamed without changes.

infrastructure/terraform/modules/templates-api/cloudwatch_log_group_api_gateway_execution.tf renamed to infrastructure/terraform/modules/backend-api/cloudwatch_log_group_api_gateway_execution.tf

File renamed without changes.

0 commit comments

Comments
 (0)