@@ -3,23 +3,37 @@ resource "humanitec_application" "backstage" {
33 name = " backstage"
44}
55
6+ locals {
7+ secrets = {
8+ humanitec-token = var.humanitec_ci_service_user_token
9+ github-app-client-id = var.github_app_client_id
10+ github-app-client-secret = var.github_app_client_secret
11+ github-app-private-key = indent (2 , var. github_app_private_key )
12+ github-webhook-secret = var.github_webhook_secret
13+ }
14+
15+ secret_refs = {
16+ for key , value in local . secrets : key => {
17+ value = value
18+ }
19+ }
20+ }
21+
622module "portal_backstage" {
7- # Not pinned as we don't have a release yet
8- # tflint-ignore: terraform_module_pinned_source
9- source = " github.com/humanitec-architecture/shared-terraform-modules?ref=v2024-06-06//modules/portal-backstage"
23+ source = " github.com/humanitec-architecture/shared-terraform-modules?ref=v2024-06-12//modules/portal-backstage"
1024
1125 cloud_provider = " aws"
1226
13- humanitec_org_id = var. humanitec_org_id
14- humanitec_app_id = humanitec_application. backstage . id
15- humanitec_ci_service_user_token = var . humanitec_ci_service_user_token
27+ humanitec_org_id = var. humanitec_org_id
28+ humanitec_app_id = humanitec_application. backstage . id
29+ humanitec_ci_service_user_token_ref = local . secret_refs [ " humanitec-token " ]
1630
17- github_org_id = var. github_org_id
18- github_app_client_id = var . github_app_client_id
19- github_app_client_secret = var . github_app_client_secret
20- github_app_id = var. github_app_id
21- github_app_private_key = var . github_app_private_key
22- github_webhook_secret = var . github_webhook_secret
31+ github_org_id = var. github_org_id
32+ github_app_client_id_ref = local . secret_refs [ " github-app-client-id " ]
33+ github_app_client_secret_ref = local . secret_refs [ " github-app-client-secret " ]
34+ github_app_id = var. github_app_id
35+ github_app_private_key_ref = local . secret_refs [ " github-app-private-key " ]
36+ github_webhook_secret_ref = local . secret_refs [ " github-webhook-secret " ]
2337}
2438
2539# Configure required resources for backstage
0 commit comments