adding test environment
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
data "azurerm_app_configuration" "app_configuration" {
|
||||
name = "noahspan-appconfig"
|
||||
resource_group_name = data.azurerm_resource_group.resource_group.name
|
||||
}
|
||||
|
||||
resource "azurerm_app_configuration_feature" "pilots_app_configuration_feature" {
|
||||
configuration_store_id = data.azurerm_app_configuration.app_configuration.id
|
||||
description = "Feature flag for pilots page"
|
||||
name = "flying-pilots"
|
||||
label = var.WORKSPACE
|
||||
enabled = false
|
||||
}
|
||||
|
||||
resource "azurerm_app_configuration_feature" "logbook_app_configuration_feature" {
|
||||
configuration_store_id = data.azurerm_app_configuration.app_configuration.id
|
||||
description = "Feature flag for logbook page"
|
||||
name = "flying-logbook"
|
||||
label = var.WORKSPACE
|
||||
enabled = false
|
||||
}
|
||||
@@ -1,76 +1,60 @@
|
||||
locals {
|
||||
container_app_app_name = {
|
||||
dev = "flying-app-dev"
|
||||
test = "flying-app-test"
|
||||
prod = "flying-app-prod"
|
||||
}
|
||||
|
||||
container_app_app_container_image = {
|
||||
dev = "noahspan/flying-app:v0.0.1"
|
||||
test = "noahspan/flying-app:v0.0.1"
|
||||
prod = "noahspan/flying-app:v0.0.1"
|
||||
}
|
||||
|
||||
container_app_app_container_name = {
|
||||
dev = "flying-app-dev"
|
||||
test = "flying-app-test"
|
||||
prod = "flying-app-prod"
|
||||
}
|
||||
|
||||
container_app_app_redirect_url = {
|
||||
dev = "https://flying-app-dev.greensea-e83e7646.centralus.azurecontainerapps.io"
|
||||
}
|
||||
|
||||
container_app_api_name = {
|
||||
dev = "flying-api-dev"
|
||||
test = "flying-api-test"
|
||||
prod = "flying-api-prod"
|
||||
}
|
||||
|
||||
container_app_api_container_image = {
|
||||
dev = "noahspan/flying-api:v0.0.1"
|
||||
test = "noahspan/flying-api:v0.0.1"
|
||||
prod = "noahspan/flying-api:v0.0.1"
|
||||
}
|
||||
|
||||
container_app_api_container_name = {
|
||||
dev = "flying-api-dev"
|
||||
test = "flying-api-test"
|
||||
prod = "flying-api-prod"
|
||||
}
|
||||
|
||||
container_app_api_dapr_app_id = {
|
||||
dev = "flyingapidev"
|
||||
test = "flyingapitest"
|
||||
prod = "flyingpapiprod"
|
||||
}
|
||||
|
||||
container_app_environment_name = {
|
||||
dev = "flying-dev"
|
||||
test = "flying-test"
|
||||
prod = "flying-prod"
|
||||
}
|
||||
|
||||
logbook_feature_flag_active = {
|
||||
dev = "true"
|
||||
test = "true"
|
||||
prod = "true"
|
||||
}
|
||||
|
||||
log_analytics_workspace_name = {
|
||||
dev = "flying-log-analytics-workspace-dev"
|
||||
test = "flying-log-analytics-workspace-test"
|
||||
prod = "flying-log-analytics-workspace-prod"
|
||||
}
|
||||
|
||||
pilots_feature_flag_active = {
|
||||
dev = "true"
|
||||
test = "true"
|
||||
prod = "true"
|
||||
}
|
||||
|
||||
storage_account_name = {
|
||||
dev = "noahspanflyingdev"
|
||||
test = "noahspanflyingtest"
|
||||
prod = "noahspanflyingprod"
|
||||
}
|
||||
|
||||
@@ -14,10 +14,6 @@ output "container_app_api_name" {
|
||||
value = local.container_app_api_name[var.environment]
|
||||
}
|
||||
|
||||
output "container_app_app_redirect_url" {
|
||||
value = local.container_app_app_redirect_url[var.environment]
|
||||
}
|
||||
|
||||
output "container_app_api_container_image" {
|
||||
value = local.container_app_api_container_image[var.environment]
|
||||
}
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
# output "api_key" {
|
||||
# value = azurerm_static_web_app.static_web_app.api_key
|
||||
# sensitive = true
|
||||
# }
|
||||
|
||||
# output "default_host_name" {
|
||||
# value = azurerm_static_web_app.static_web_app.default_host_name
|
||||
# }
|
||||
@@ -1,8 +1,3 @@
|
||||
provider "azurerm" {
|
||||
features {
|
||||
key_vault {
|
||||
purge_soft_deleted_certificates_on_destroy = true
|
||||
recover_soft_deleted_secrets = true
|
||||
}
|
||||
}
|
||||
features {}
|
||||
}
|
||||
@@ -6,10 +6,6 @@ variable "APP_SUBDOMAIN_NAME" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "AZURE_STORAGE_CONNECTION_STRING" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "CLIENT_ID" {
|
||||
type = string
|
||||
}
|
||||
@@ -32,10 +28,6 @@ variable "DOMAIN_NAME" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "CUSTOM_DOMAIN_NAME_COUNT" {
|
||||
type = number
|
||||
}
|
||||
|
||||
variable "REGION" {
|
||||
type = string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user