Skip to content

Commit

Permalink
update node_version and azurerm to support node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
alismx committed Apr 24, 2024
1 parent fda548a commit f060456
Show file tree
Hide file tree
Showing 31 changed files with 71 additions and 74 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/terraformChecks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@ jobs:
check-terraform-validity:
runs-on: ubuntu-latest
env:
TERRAFORM_DIRS: |
dev dev/persistent dev2 dev2/persistent dev3 dev3/persistent dev4 dev4/persistent
dev5 dev5/persistent dev6 dev6/persistent
test test/persistent demo demo/persistent training training/persistent
stg stg/persistent pentest pentest/persistent prod prod/persistent
global
TERRAFORM_DIRS: pentest pentest/persistent
steps:
- uses: actions/checkout@v4
- uses: hashicorp/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion ops/demo/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
}
required_version = "~> 1.3.3"
Expand Down
2 changes: 1 addition & 1 deletion ops/demo/persistent/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
okta = {
source = "okta/okta"
Expand Down
2 changes: 1 addition & 1 deletion ops/dev/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
}
required_version = "~> 1.3.3"
Expand Down
2 changes: 1 addition & 1 deletion ops/dev/persistent/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
okta = {
source = "okta/okta"
Expand Down
2 changes: 1 addition & 1 deletion ops/dev2/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
}
required_version = "~> 1.3.3"
Expand Down
2 changes: 1 addition & 1 deletion ops/dev2/persistent/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
okta = {
source = "okta/okta"
Expand Down
2 changes: 1 addition & 1 deletion ops/dev3/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
}
required_version = "~> 1.3.3"
Expand Down
2 changes: 1 addition & 1 deletion ops/dev3/persistent/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
okta = {
source = "okta/okta"
Expand Down
2 changes: 1 addition & 1 deletion ops/dev4/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
}
required_version = "~> 1.3.3"
Expand Down
2 changes: 1 addition & 1 deletion ops/dev4/persistent/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
okta = {
source = "okta/okta"
Expand Down
2 changes: 1 addition & 1 deletion ops/dev5/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
}
required_version = "~> 1.3.3"
Expand Down
2 changes: 1 addition & 1 deletion ops/dev5/persistent/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
okta = {
source = "okta/okta"
Expand Down
2 changes: 1 addition & 1 deletion ops/dev6/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
}
required_version = "~> 1.3.3"
Expand Down
2 changes: 1 addition & 1 deletion ops/dev6/persistent/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
okta = {
source = "okta/okta"
Expand Down
2 changes: 1 addition & 1 deletion ops/global/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
okta = {
source = "okta/okta"
Expand Down
28 changes: 14 additions & 14 deletions ops/pentest/.terraform.lock.hcl

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

2 changes: 1 addition & 1 deletion ops/pentest/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
}
required_version = "~> 1.3.3"
Expand Down
52 changes: 26 additions & 26 deletions ops/pentest/persistent/.terraform.lock.hcl

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

2 changes: 1 addition & 1 deletion ops/pentest/persistent/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
okta = {
source = "okta/okta"
Expand Down
2 changes: 1 addition & 1 deletion ops/prod/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
}
required_version = "~> 1.3.3"
Expand Down
2 changes: 1 addition & 1 deletion ops/prod/persistent/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
okta = {
source = "okta/okta"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
}
required_version = "~> 1.3.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ resource "azurerm_linux_function_app" "functions" {
action = "Allow"
}
application_stack {
node_version = "18"
node_version = "20"
}
}

Expand All @@ -76,7 +76,7 @@ resource "azurerm_linux_function_app" "functions" {
app_settings = {
https_only = true
FUNCTIONS_WORKER_RUNTIME = "node"
WEBSITE_NODE_DEFAULT_VERSION = "~18"
WEBSITE_NODE_DEFAULT_VERSION = "~20"
FUNCTION_APP_EDIT_MODE = "readonly"
HASH = azurerm_storage_blob.appcode.content_md5
WEBSITE_RUN_FROM_PACKAGE = "https://${data.azurerm_storage_account.app.name}.blob.core.windows.net/${azurerm_storage_container.deployments.name}/${azurerm_storage_blob.appcode.name}${data.azurerm_storage_account_sas.sas.sas}"
Expand Down
2 changes: 2 additions & 0 deletions ops/services/app_service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ resource "azurerm_linux_web_app" "service" {
use_32_bit_worker = false
ftps_state = "Disabled"
vnet_route_all_enabled = false
ip_restriction_default_action = null
scm_ip_restriction_default_action = null

// NOTE: If this code is removed, TF will not automatically delete it with the current provider version! It must be removed manually from the App Service -> Networking blade!
ip_restriction {
Expand Down
2 changes: 1 addition & 1 deletion ops/stg/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
}
required_version = "~> 1.3.3"
Expand Down
2 changes: 1 addition & 1 deletion ops/stg/persistent/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
okta = {
source = "okta/okta"
Expand Down
2 changes: 1 addition & 1 deletion ops/test/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
}
required_version = "~> 1.3.3"
Expand Down
2 changes: 1 addition & 1 deletion ops/test/persistent/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
okta = {
source = "okta/okta"
Expand Down
2 changes: 1 addition & 1 deletion ops/training/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
}
required_version = "~> 1.3.3"
Expand Down
2 changes: 1 addition & 1 deletion ops/training/persistent/_config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.55"
version = "~> 3.100.0"
}
okta = {
source = "okta/okta"
Expand Down

0 comments on commit f060456

Please sign in to comment.