Skip to content

Commit

Permalink
feat: minor updates to draft part 3
Browse files Browse the repository at this point in the history
  • Loading branch information
WayneGoosen committed Jul 4, 2024
1 parent a1bacaa commit 9b2265e
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ variable "environment" {

### locals.tf

With our locals we are able to store values that can be shared and built up. Like providing a prefix for the app_service_plan_name.

See [locals](https://developer.hashicorp.com/terraform/language/values/locals)

```hcl
Expand All @@ -165,6 +167,8 @@ locals {

### web-app.tf

This is the required resources to setup an Azure Web App. The interesting part is the application stack which configures it to use a docker image.

```hcl
resource "azurerm_service_plan" "service_plan" {
name = local.app_service_plan_name
Expand Down Expand Up @@ -195,11 +199,5 @@ resource "azurerm_linux_web_app" "web-app" {
docker_registry_password = var.use_docker_registry_auth ? var.docker_registry_password : null
}
}
logs {
application_logs {
file_system_level = "Verbose"
}
}
}
```

0 comments on commit 9b2265e

Please sign in to comment.