modules/github/action_variables.tf (32 lines of code) (raw):
resource "github_actions_environment_variable" "azure_plan_client_id" {
for_each = var.environments
repository = github_repository.alz.name
environment = github_repository_environment.alz[each.key].environment
variable_name = "AZURE_CLIENT_ID"
value = var.managed_identity_client_ids[each.key]
}
resource "github_actions_variable" "azure_subscription_id" {
repository = github_repository.alz.name
variable_name = "AZURE_SUBSCRIPTION_ID"
value = var.azure_subscription_id
}
resource "github_actions_variable" "azure_tenant_id" {
repository = github_repository.alz.name
variable_name = "AZURE_TENANT_ID"
value = var.azure_tenant_id
}
resource "github_actions_variable" "backend_azure_resource_group_name" {
repository = github_repository.alz.name
variable_name = "BACKEND_AZURE_RESOURCE_GROUP_NAME"
value = var.backend_azure_resource_group_name
}
resource "github_actions_variable" "backend_azure_storage_account_name" {
repository = github_repository.alz.name
variable_name = "BACKEND_AZURE_STORAGE_ACCOUNT_NAME"
value = var.backend_azure_storage_account_name
}
resource "github_actions_variable" "backend_azure_storage_account_container_name" {
repository = github_repository.alz.name
variable_name = "BACKEND_AZURE_STORAGE_ACCOUNT_CONTAINER_NAME"
value = var.backend_azure_storage_account_container_name
}