Skip to content

Commit

Permalink
fix chap15
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelkrief committed Aug 24, 2023
1 parent 489b246 commit 5660f6f
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 19 deletions.
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ repos:
rev: "v1.78.0"
hooks:
- id: terraform_fmt
exclude: CHAP15
- id: terraform_tflint
exclude: CHAP07/privatemodule|CHAP12/preventdestroy/
exclude: CHAP07/privatemodule|CHAP12/preventdestroy|CHAP15
- id: terraform_validate
exclude: CHAP02/version|CHAP06/validate|CHAP07/privatemodule|CHAP07/moduledemo/myapp-loop
exclude: CHAP02/version|CHAP06/validate|CHAP07/privatemodule|CHAP07/moduledemo/myapp-loop|CHAP15
- id: terraform_tfsec
exclude: CHAP07/privatemodule
args:
Expand Down
5 changes: 4 additions & 1 deletion CHAP15/cycle/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ terraform {
azurerm = {
version = "~> 3.23"
}
random = {
source = "hashicorp/random"
version = "3.5.1"
}
}
}

Expand Down Expand Up @@ -52,7 +56,6 @@ resource "azurerm_network_interface" "nic" {
}
}


resource "random_password" "password" {
length = 16
special = true
Expand Down
7 changes: 0 additions & 7 deletions CHAP15/foreach/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,3 @@ variable "service_plan_name" {
description = "Service plan name"
default = "Plan-App"
}


variable "app_name" {
type = string
description = "Name of application"
default = "MyApp"
}
1 change: 0 additions & 1 deletion CHAP15/interpolation/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ resource "azurerm_resource_group" "rg-app" {
location = "westeurope"
}


variable "resource_group_name" {
default = "rg-demo-error"
type = string
Expand Down
42 changes: 42 additions & 0 deletions CHAP15/outputs/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 1 addition & 8 deletions CHAP15/outputs/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,4 @@ variable "service_plan_name" {
type = string
description = "Service plan name"
default = "Plan-App"
}


variable "app_name" {
type = string
description = "Name of application"
default = "MyApp"
}
}

0 comments on commit 5660f6f

Please sign in to comment.