2022-11-08 11:45:37 -05:00
|
|
|
terraform {
|
2024-06-25 14:24:31 -07:00
|
|
|
required_version = "~> 1.7"
|
2022-11-08 11:45:37 -05:00
|
|
|
required_providers {
|
|
|
|
|
cloudfoundry = {
|
2025-10-20 13:44:13 -07:00
|
|
|
source = "cloudfoundry/cloudfoundry"
|
|
|
|
|
version = "1.9.0"
|
|
|
|
|
}
|
|
|
|
|
cfcommunity = {
|
2022-11-08 11:45:37 -05:00
|
|
|
source = "cloudfoundry-community/cloudfoundry"
|
2024-06-25 14:18:14 -07:00
|
|
|
version = "0.53.1"
|
2022-11-08 11:45:37 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
backend "s3" {
|
2025-10-14 13:21:06 -07:00
|
|
|
bucket = "cg-6b759c13-6253-4a64-9bda-dd1f620185b0"
|
2025-10-21 09:43:06 -07:00
|
|
|
key = "admin.tfstate.sandbox"
|
2025-10-14 13:21:06 -07:00
|
|
|
encrypt = "true"
|
|
|
|
|
region = "us-gov-west-1"
|
2025-10-14 11:54:53 -07:00
|
|
|
use_lockfile = "true"
|
2022-11-08 11:45:37 -05:00
|
|
|
}
|
|
|
|
|
}
|
2022-12-22 08:38:06 -05:00
|
|
|
|
2025-10-20 13:44:13 -07:00
|
|
|
# Official provider (should be default but aliased for now)
|
2022-12-22 08:38:06 -05:00
|
|
|
provider "cloudfoundry" {
|
2025-10-20 13:44:13 -07:00
|
|
|
alias = "official"
|
|
|
|
|
api_url = "https://api.fr.cloud.gov"
|
|
|
|
|
user = var.cf_user
|
|
|
|
|
password = var.cf_password
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Community provider (should be aliased but default for now)
|
|
|
|
|
provider "cfcommunity" {
|
2022-12-22 08:38:06 -05:00
|
|
|
api_url = "https://api.fr.cloud.gov"
|
|
|
|
|
user = var.cf_user
|
|
|
|
|
password = var.cf_password
|
|
|
|
|
app_logs_max = 30
|
|
|
|
|
}
|