From 9ee079e5b353cef5a23e7da3054b25f3c69aed94 Mon Sep 17 00:00:00 2001 From: mikaelkrief Date: Sun, 11 Jun 2023 16:49:13 +0000 Subject: [PATCH] add --- CHAP11/opa/main.tf | 2 +- CHAP11/pytest/main.tf | 6 +++--- CHAP11/tf-compliance/main.tf | 2 +- CHAP11/tf-pester/main.tf | 4 ++-- CHAP11/tfsec/main.tf | 2 +- CHAP14/migratestate/main.tf | 8 ++++++++ CHAP14/vm/network/main.tf | 2 +- 7 files changed, 17 insertions(+), 9 deletions(-) diff --git a/CHAP11/opa/main.tf b/CHAP11/opa/main.tf index ca274e3..729cf55 100644 --- a/CHAP11/opa/main.tf +++ b/CHAP11/opa/main.tf @@ -22,5 +22,5 @@ resource "azurerm_storage_account" "storage" { location = azurerm_resource_group.rg.location account_tier = "Standard" account_replication_type = "GRS" - enable_https_traffic_only = true + enable_https_traffic_only = true #false } \ No newline at end of file diff --git a/CHAP11/pytest/main.tf b/CHAP11/pytest/main.tf index 575c097..5fe5d93 100644 --- a/CHAP11/pytest/main.tf +++ b/CHAP11/pytest/main.tf @@ -17,11 +17,11 @@ resource "azurerm_resource_group" "rg" { } resource "azurerm_storage_account" "storage" { - name = "sademotestpy123" + name = "sademotestpy1" #"sademotestpy123" resource_group_name = azurerm_resource_group.rg.name location = azurerm_resource_group.rg.location account_tier = "Standard" account_replication_type = "GRS" - enable_https_traffic_only = true - min_tls_version = "TLS1_2" + enable_https_traffic_only = false #true + #min_tls_version = "TLS1_2" } \ No newline at end of file diff --git a/CHAP11/tf-compliance/main.tf b/CHAP11/tf-compliance/main.tf index 76a18fd..e58386c 100644 --- a/CHAP11/tf-compliance/main.tf +++ b/CHAP11/tf-compliance/main.tf @@ -23,7 +23,7 @@ resource "azurerm_storage_account" "storage" { location = azurerm_resource_group.rg.location account_tier = "Standard" account_replication_type = "GRS" - enable_https_traffic_only = true + enable_https_traffic_only = false #true tags = { DEMO = "book" } diff --git a/CHAP11/tf-pester/main.tf b/CHAP11/tf-pester/main.tf index fafb5b1..b96cb83 100644 --- a/CHAP11/tf-pester/main.tf +++ b/CHAP11/tf-pester/main.tf @@ -17,10 +17,10 @@ resource "azurerm_resource_group" "rg" { } resource "azurerm_storage_account" "storage" { - name = "sademotestpester123" + name = "sademotestpester1" #"sademotestpester123" resource_group_name = azurerm_resource_group.rg.name location = azurerm_resource_group.rg.location account_tier = "Standard" account_replication_type = "GRS" - enable_https_traffic_only = true + enable_https_traffic_only = false #true } \ No newline at end of file diff --git a/CHAP11/tfsec/main.tf b/CHAP11/tfsec/main.tf index 44d9aef..37a44de 100644 --- a/CHAP11/tfsec/main.tf +++ b/CHAP11/tfsec/main.tf @@ -22,6 +22,6 @@ resource "azurerm_storage_account" "storage" { location = azurerm_resource_group.rg.location account_tier = "Standard" account_replication_type = "GRS" - enable_https_traffic_only = true + enable_https_traffic_only = false #false min_tls_version = "TLS1_2" } \ No newline at end of file diff --git a/CHAP14/migratestate/main.tf b/CHAP14/migratestate/main.tf index 1037477..c235876 100644 --- a/CHAP14/migratestate/main.tf +++ b/CHAP14/migratestate/main.tf @@ -2,6 +2,14 @@ terraform { required_version = "~> 1.1" required_providers { } + cloud { + hostname = "app.terraform.io" + organization = "demoBook" + + workspaces { + name = "MigrateState" + } + } } resource "random_password" "password" { diff --git a/CHAP14/vm/network/main.tf b/CHAP14/vm/network/main.tf index 344f3e5..98961ef 100644 --- a/CHAP14/vm/network/main.tf +++ b/CHAP14/vm/network/main.tf @@ -6,7 +6,7 @@ terraform { } } - backend "remote" { + cloud { hostname = "app.terraform.io" organization = "demoBook"