Skip to content

Commit

Permalink
Terraform Provider Upgrade (#4406)
Browse files Browse the repository at this point in the history
* Bootstrap module update

* Meta provider update

* Bootstrap-env template update

* Preview local file regeneration

* Dev local file regeneration

* Fix preview provider

* Fix dev provider

* Fix shared env provider

* Upgrade dev terraform lock

* Upgrade preview lock

* Change template

* Full provider upgrade

* fix glob issue on basename

* Fix init.sh to prevent basename issues

* Terraform Lock

* Terraform Lock - Meta
  • Loading branch information
asteel-gsa authored Nov 8, 2024
1 parent 2e85c7d commit ba40962
Show file tree
Hide file tree
Showing 22 changed files with 449 additions and 258 deletions.
132 changes: 88 additions & 44 deletions terraform/dev/.terraform.lock.hcl

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

3 changes: 1 addition & 2 deletions terraform/dev/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
set -e
terraform init \
--backend-config=../shared/config/backend.tfvars \
--backend-config=key=terraform.tfstate.$(basename $(pwd))

--backend-config=key=terraform.tfstate."$(basename "$(pwd)")"
4 changes: 2 additions & 2 deletions terraform/dev/providers-managed.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
required_providers {
cloudfoundry = {
source = "cloudfoundry-community/cloudfoundry"
version = "~>0.51.3"
version = "~>0.53.1"
}
}

Expand All @@ -26,4 +26,4 @@ provider "cloudfoundry" {
api_url = "https://api.fr.cloud.gov"
user = var.cf_user
password = var.cf_password
}
}
62 changes: 31 additions & 31 deletions terraform/meta/.terraform.lock.hcl

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

4 changes: 2 additions & 2 deletions terraform/meta/bootstrap-env/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ terraform {
required_providers {
cloudfoundry = {
source = "cloudfoundry-community/cloudfoundry"
version = "~>0.51.3"
version = "~>0.53.1"
}
github = {
source = "integrations/github"
version = "~>5.12.0"
}
}
}
}
7 changes: 4 additions & 3 deletions terraform/meta/bootstrap-env/space.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ data "cloudfoundry_asg" "asgs" {

# Ensure the space exists and is configured as expected
resource "cloudfoundry_space" "space" {
name = var.name
org = data.cloudfoundry_org.org.id
allow_ssh = var.allow_ssh
name = var.name
org = data.cloudfoundry_org.org.id
allow_ssh = var.allow_ssh
delete_recursive_allowed = false
}

resource "cloudfoundry_space_asgs" "space_asgs" {
Expand Down
3 changes: 1 addition & 2 deletions terraform/meta/bootstrap-env/templates/init.sh-template
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
set -e
terraform init \
--backend-config=../shared/config/backend.tfvars \
--backend-config=key=terraform.tfstate.$(basename $(pwd))

--backend-config=key=terraform.tfstate."$(basename "$(pwd)")"
4 changes: 2 additions & 2 deletions terraform/meta/bootstrap-env/templates/providers.tf-template
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
required_providers {
cloudfoundry = {
source = "cloudfoundry-community/cloudfoundry"
version = "~>0.51.3"
version = "~>0.53.1"
}
}

Expand All @@ -26,4 +26,4 @@ provider "cloudfoundry" {
api_url = "https://api.fr.cloud.gov"
user = var.cf_user
password = var.cf_password
}
}
55 changes: 37 additions & 18 deletions terraform/meta/bootstrap/.terraform.lock.hcl

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

4 changes: 2 additions & 2 deletions terraform/meta/bootstrap/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
cloudfoundry = {
source = "cloudfoundry-community/cloudfoundry"
version = "~>0.50.2"
version = "~>0.53.1"
}
}
}
Expand All @@ -13,4 +13,4 @@ provider "cloudfoundry" {
user = var.cf_user
password = var.cf_password
app_logs_max = 30
}
}
2 changes: 1 addition & 1 deletion terraform/meta/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
set -e
terraform init \
--backend-config=../shared/config/backend.tfvars \
--backend-config=key=terraform.tfstate.$(basename $(pwd))
--backend-config=key=terraform.tfstate."$(basename "$(pwd)")"
Loading

0 comments on commit ba40962

Please sign in to comment.