Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Terraform Format Check
run: make fmt-check

- name: Stub Github App credentials (required for validation)
- name: Stub GitHub App credentials (required for validation)
run: cd ./examples/with-backstage && STUB_FILE=1 node create-gh-app/index.js

- name: Terraform Validate
Expand Down
2 changes: 2 additions & 0 deletions examples/with-backstage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ Once you are finished with the reference architecture, you can remove all provis
| [github_actions_organization_secret.backstage_humanitec_token](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/actions_organization_secret) | resource |
| [github_actions_organization_variable.backstage_aws_region](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/actions_organization_variable) | resource |
| [github_actions_organization_variable.backstage_aws_role_arn](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/actions_organization_variable) | resource |
| [github_actions_organization_variable.backstage_cloud_provider](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/actions_organization_variable) | resource |
| [github_actions_organization_variable.backstage_humanitec_org_id](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/actions_organization_variable) | resource |
| [github_repository.backstage](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository) | resource |
| [humanitec_application.backstage](https://registry.terraform.io/providers/humanitec/humanitec/latest/docs/resources/application) | resource |
Expand All @@ -118,6 +119,7 @@ Once you are finished with the reference architecture, you can remove all provis
| [humanitec_resource_definition_criteria.backstage_postgres](https://registry.terraform.io/providers/humanitec/humanitec/latest/docs/resources/resource_definition_criteria) | resource |
| [humanitec_resource_definition_criteria.backstage_workload](https://registry.terraform.io/providers/humanitec/humanitec/latest/docs/resources/resource_definition_criteria) | resource |
| [humanitec_value.aws_default_region](https://registry.terraform.io/providers/humanitec/humanitec/latest/docs/resources/value) | resource |
| [humanitec_value.backstage_cloud_provider](https://registry.terraform.io/providers/humanitec/humanitec/latest/docs/resources/value) | resource |
| [humanitec_value.backstage_github_app_client_id](https://registry.terraform.io/providers/humanitec/humanitec/latest/docs/resources/value) | resource |
| [humanitec_value.backstage_github_app_client_secret](https://registry.terraform.io/providers/humanitec/humanitec/latest/docs/resources/value) | resource |
| [humanitec_value.backstage_github_app_id](https://registry.terraform.io/providers/humanitec/humanitec/latest/docs/resources/value) | resource |
Expand Down
3 changes: 2 additions & 1 deletion examples/with-backstage/aws-github.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
locals {
name = "gha-ecr-push"
name = "gha-ecr-push"
cloud_provider = "aws"
}

# Create a role for GitHub Actions to push to ECR using OpenID Connect (OIDC) so we don't need to store AWS credentials in GitHub
Expand Down
6 changes: 6 additions & 0 deletions examples/with-backstage/backstage-github.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ locals {
backstage_repo = "backstage"
}

resource "github_actions_organization_variable" "backstage_cloud_provider" {
variable_name = "CLOUD_PROVIDER"
visibility = "all"
value = local.cloud_provider
}

resource "github_actions_organization_variable" "backstage_aws_region" {
variable_name = "AWS_REGION"
visibility = "all"
Expand Down
8 changes: 8 additions & 0 deletions examples/with-backstage/backstage-humanitec.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ resource "humanitec_value" "backstage_humanitec_token" {
is_secret = true
}

resource "humanitec_value" "backstage_cloud_provider" {
app_id = humanitec_application.backstage.id
key = "CLOUD_PROVIDER"
description = ""
value = local.cloud_provider
is_secret = false
}

resource "humanitec_value" "aws_default_region" {
app_id = humanitec_application.backstage.id
key = "AWS_DEFAULT_REGION"
Expand Down