Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelkrief committed Jun 11, 2023
1 parent 7011901 commit 9ee079e
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHAP11/opa/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
6 changes: 3 additions & 3 deletions CHAP11/pytest/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion CHAP11/tf-compliance/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
4 changes: 2 additions & 2 deletions CHAP11/tf-pester/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion CHAP11/tfsec/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
8 changes: 8 additions & 0 deletions CHAP14/migratestate/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion CHAP14/vm/network/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ terraform {
}
}

backend "remote" {
cloud {
hostname = "app.terraform.io"
organization = "demoBook"

Expand Down

0 comments on commit 9ee079e

Please sign in to comment.