Skip to content

Commit 1beab8b

Browse files
committed
Adding in tfvars
1 parent 0be6e76 commit 1beab8b

File tree

4 files changed

+79
-1
lines changed

4 files changed

+79
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ crash.log
1010
crash.*.log
1111

1212
# Exclude all .tfvars files, which are likely to contain sensitive data
13-
*.tfvars
1413
*.tfvars.json
1514
# But keep example files
1615
!*.tfvars.example

infra/terraform-dev.tfvars

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Development environment variables
2+
environment = "dev"
3+
project_name = "terraform-ci-cd-sample"
4+
resource_group_name = "rg-terraform-sample-dev"
5+
location = "USGov Virginia"
6+
container_registry_name = "acrtfsampledev"
7+
container_registry_sku = "Standard"
8+
app_service_plan_name = "asp-terraform-sample-dev"
9+
app_service_plan_sku = "S1"
10+
app_service_name = "app-terraform-sample-dev"
11+
app_service_always_on = true
12+
health_check_path = "/health"
13+
docker_image_name = "my-app"
14+
docker_image_tag = "latest"
15+
websites_port = "80"
16+
additional_app_settings = {
17+
"ENVIRONMENT" = "dev"
18+
"LOG_LEVEL" = "DEBUG"
19+
}

infra/terraform-local.tfvars

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Local development variables
2+
environment = "local"
3+
project_name = "terraform-ci-cd-sample"
4+
resource_group_name = "rg-terraform-sample-local"
5+
location = "USGov Virginia"
6+
container_registry_name = "acrtfsamplelocal"
7+
container_registry_sku = "Basic"
8+
app_service_plan_name = "asp-terraform-sample-local"
9+
app_service_plan_sku = "B1"
10+
app_service_name = "app-terraform-sample-local"
11+
app_service_always_on = false
12+
health_check_path = "/health"
13+
docker_image_name = "my-app"
14+
docker_image_tag = "latest"
15+
websites_port = "80"
16+
additional_app_settings = {
17+
"ENVIRONMENT" = "local"
18+
}

infra/terraform.tfvars

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# General Configuration - Azure Government
2+
location = "USGov Virginia"
3+
environment = "dev"
4+
project_name = "demo-app"
5+
azure_environment = "usgovernment"
6+
7+
# Resource Group Configuration
8+
resource_group_name = "rg-demo-app-gov-dev"
9+
10+
# Container Registry Configuration (must be globally unique)
11+
# Note: Azure Government ACR uses .azurecr.us domain
12+
container_registry_name = "acrdemoappgov001"
13+
container_registry_sku = "Basic"
14+
15+
# App Service Plan Configuration
16+
app_service_plan_name = "asp-demo-app-gov-dev"
17+
app_service_plan_sku = "B1"
18+
19+
# App Service Configuration (must be globally unique)
20+
# Note: Azure Government App Services use .azurewebsites.us domain
21+
app_service_name = "app-demo-gov-demo-001"
22+
app_service_always_on = true
23+
health_check_path = "/"
24+
25+
# Docker Configuration
26+
docker_image_name = "my-app"
27+
docker_image_tag = "latest"
28+
websites_port = "80"
29+
30+
# Additional App Settings (optional)
31+
additional_app_settings = {
32+
"NODE_ENV" = "production"
33+
"PORT" = "80"
34+
# Add any other environment variables your app needs
35+
}
36+
37+
# Managed Identity Configuration
38+
# Set to true to use managed identity in addition to admin credentials
39+
enable_managed_identity_acr_access = true
40+
41+
# Custom Domain Configuration (optional)
42+
# custom_domain = "your-domain.com"

0 commit comments

Comments
 (0)