Compare commits

...

19 Commits

Author SHA1 Message Date
Kenneth Kehl
caa6953023 revert bootstrap and demo 2025-10-16 13:54:24 -07:00
Kenneth Kehl
9941170ad6 try pointing modules to old provider 2025-10-16 13:33:36 -07:00
Kenneth Kehl
72e6a6eb29 try pointing modules to old provider 2025-10-16 13:27:35 -07:00
Kenneth Kehl
d1e1c68331 try pointing modules to old provider 2025-10-16 13:16:05 -07:00
Kenneth Kehl
d7c8fc0f1f try pointing modules to old provider 2025-10-16 13:02:37 -07:00
Kenneth Kehl
ad517289d6 fix error 2025-10-16 12:47:29 -07:00
Kenneth Kehl
042efb0a07 fix format 2025-10-16 12:29:44 -07:00
Kenneth Kehl
c1bc07e85d try with two providers 2025-10-16 12:28:30 -07:00
Kenneth Kehl
d9f9bb68df try downgrade terraform-cloudgov to 2.0.0 2025-10-15 14:04:11 -07:00
Kenneth Kehl
0f502bfd11 try downgrade terraform-cloudgov to 2.3.0 2025-10-15 13:47:28 -07:00
Kenneth Kehl
63b6a2f807 upgrade terraform_cloudgov as well 2025-10-15 13:16:19 -07:00
Kenneth Kehl
7ab45dd785 upgrade terraform_cloudgov as well 2025-10-15 13:07:52 -07:00
Kenneth Kehl
4909ed4770 upgrade terraform_cloudgov as well 2025-10-15 12:56:41 -07:00
Kenneth Kehl
1013f0bb12 upgrade terraform_cloudgov as well 2025-10-15 12:50:43 -07:00
Kenneth Kehl
9e30741fb0 fiddle with container networking 2025-10-15 10:50:17 -07:00
Kenneth Kehl
b6913959a0 fiddle with container networking 2025-10-15 10:44:57 -07:00
Kenneth Kehl
6838f94c7a fiddle with container networking 2025-10-15 10:34:38 -07:00
Kenneth Kehl
e6763bbf35 remove cloudfoundry-community 2025-10-15 10:23:01 -07:00
Kenneth Kehl
aa6cc0bdbd remove cloudfoundry-community 2025-10-15 10:12:18 -07:00
10 changed files with 79 additions and 48 deletions

View File

@@ -5,8 +5,8 @@ locals {
}
data "cloudfoundry_space" "dev" {
org_name = local.cf_org_name
name = local.cf_space_name
org = "9e428562-a2d9-41b4-9c23-1ef5237fb44e"
name = local.cf_space_name
}
module "logo_upload_bucket" {
@@ -17,15 +17,18 @@ module "logo_upload_bucket" {
name = "${var.username}-logo-upload-bucket"
}
resource "cloudfoundry_service_key" "logo_key" {
provider = cloudfoundry-community.legacy
name = local.key_name
service_instance = module.logo_upload_bucket.bucket_id
}
data "cloudfoundry_service_instance" "csv_bucket" {
name_or_id = "${var.username}-csv-upload-bucket"
space = data.cloudfoundry_space.dev.id
name = "${var.username}-csv-upload-bucket"
space = data.cloudfoundry_space.dev.id
}
resource "cloudfoundry_service_key" "csv_key" {
provider = cloudfoundry-community.legacy
name = local.key_name
service_instance = data.cloudfoundry_service_instance.csv_bucket.id
}

View File

@@ -2,13 +2,28 @@ terraform {
required_version = "~> 1.7"
required_providers {
cloudfoundry = {
source = "cloudfoundry/cloudfoundry"
version = "1.9.0"
}
cloudfoundry-community = {
source = "cloudfoundry-community/cloudfoundry"
version = "0.53.1"
}
}
}
provider "cloudfoundry" {
api_url = "https://api.fr.cloud.gov"
user = var.cf_user
password = var.cf_password
# app_logs_max = 30
}
provider "cloudfoundry-community" {
alias = "legacy"
api_url = "https://api.fr.cloud.gov"
user = var.cf_user
password = var.cf_password

View File

@@ -13,10 +13,9 @@ resource "null_resource" "prevent_destroy" {
}
module "redis-v70" {
source = "github.com/GSA-TTS/terraform-cloudgov//redis?ref=v1.0.0"
source = "github.com/GSA-TTS/terraform-cloudgov//redis?ref=v2.0.0"
cf_org_name = local.cf_org_name
cf_space_name = local.cf_space_name
cf_space_id = local.cf_space_name
name = "${local.app_name}-redis-v70-${local.env}"
redis_plan_name = "redis-3node-large"
json_params = jsonencode(
@@ -27,11 +26,10 @@ module "redis-v70" {
}
module "logo_upload_bucket" {
source = "github.com/GSA-TTS/terraform-cloudgov//s3?ref=v1.0.0"
source = "github.com/GSA-TTS/terraform-cloudgov//s3?ref=v2.0.0"
cf_org_name = local.cf_org_name
cf_space_name = local.cf_space_name
name = "${local.app_name}-logo-upload-bucket-${local.env}"
cf_space_id = local.cf_space_name
name = "${local.app_name}-logo-upload-bucket-${local.env}"
}
module "api_network_route" {
@@ -57,7 +55,7 @@ module "api_network_route" {
# https://cloud.gov/docs/services/external-domain-service/#how-to-create-an-instance-of-this-service
###########################################################################
module "domain" {
source = "github.com/GSA-TTS/terraform-cloudgov//domain?ref=v1.0.0"
source = "github.com/GSA-TTS/terraform-cloudgov//domain?ref=v2.0.0"
cf_org_name = local.cf_org_name
cf_space_name = local.cf_space_name

View File

@@ -2,8 +2,8 @@ terraform {
required_version = "~> 1.7"
required_providers {
cloudfoundry = {
source = "cloudfoundry-community/cloudfoundry"
version = "0.53.1"
source = "cloudfoundry/cloudfoundry"
version = "1.9.0"
}
}
@@ -17,8 +17,8 @@ terraform {
}
provider "cloudfoundry" {
api_url = "https://api.fr.cloud.gov"
user = var.cf_user
password = var.cf_password
app_logs_max = 30
api_url = "https://api.fr.cloud.gov"
user = var.cf_user
password = var.cf_password
# app_logs_max = 30
}

View File

@@ -13,10 +13,9 @@ resource "null_resource" "prevent_destroy" {
}
module "redis-v70" {
source = "github.com/GSA-TTS/terraform-cloudgov//redis?ref=v1.0.0"
source = "github.com/GSA-TTS/terraform-cloudgov//redis?ref=v2.0.0"
cf_org_name = local.cf_org_name
cf_space_name = local.cf_space_name
cf_space_id = local.cf_space_name
name = "${local.app_name}-redis-v70-${local.env}"
redis_plan_name = "redis-dev"
json_params = jsonencode(
@@ -27,11 +26,10 @@ module "redis-v70" {
}
module "logo_upload_bucket" {
source = "github.com/GSA-TTS/terraform-cloudgov//s3?ref=v1.0.0"
source = "github.com/GSA-TTS/terraform-cloudgov//s3?ref=v2.0.0"
cf_org_name = local.cf_org_name
cf_space_name = local.cf_space_name
name = "${local.app_name}-logo-upload-bucket-${local.env}"
cf_space_id = local.cf_space_name
name = "${local.app_name}-logo-upload-bucket-${local.env}"
}
module "api_network_route" { # API and Admin apps must both exist in Cloud

View File

@@ -2,8 +2,8 @@ terraform {
required_version = "~> 1.7"
required_providers {
cloudfoundry = {
source = "cloudfoundry-community/cloudfoundry"
version = "0.53.1"
source = "cloudfoundry/cloudfoundry"
version = "1.9.0"
}
}
@@ -17,8 +17,8 @@ terraform {
}
provider "cloudfoundry" {
api_url = "https://api.fr.cloud.gov"
user = var.cf_user
password = var.cf_password
app_logs_max = 30
api_url = "https://api.fr.cloud.gov"
user = var.cf_user
password = var.cf_password
# app_logs_max = 30
}

View File

@@ -1,22 +1,29 @@
data "cloudfoundry_org" "org" {
name = var.cf_org_name
}
data "cloudfoundry_space" "space" {
org_name = var.cf_org_name
name = var.cf_space_name
org = data.cloudfoundry_org.org.id
# org = "9e428562-a2d9-41b4-9c23-1ef5237fb44e"
name = var.cf_space_name
}
data "cloudfoundry_app" "source_app" {
name_or_id = var.source_app_name
space = data.cloudfoundry_space.space.id
org_name = var.cf_org_name
name = var.source_app_name
space_name = data.cloudfoundry_space.space.id
}
data "cloudfoundry_app" "destination_app" {
name_or_id = var.destination_app_name
space = data.cloudfoundry_space.space.id
org_name = var.cf_org_name
name = var.destination_app_name
space_name = data.cloudfoundry_space.space.id
}
resource "cloudfoundry_network_policy" "internal_route" {
policy {
policies = [{
source_app = data.cloudfoundry_app.source_app.id
destination_app = data.cloudfoundry_app.destination_app.id
port = var.destination_port
}
}]
}

View File

@@ -2,8 +2,8 @@ terraform {
required_version = "~> 1.7"
required_providers {
cloudfoundry = {
source = "cloudfoundry-community/cloudfoundry"
version = "0.53.1"
source = "cloudfoundry/cloudfoundry"
version = "1.9.0"
}
}
}

View File

@@ -13,10 +13,9 @@ resource "null_resource" "prevent_destroy" {
}
module "redis-v70" {
source = "github.com/GSA-TTS/terraform-cloudgov//redis?ref=v1.0.0"
source = "github.com/GSA-TTS/terraform-cloudgov//redis?ref=v2.4.0"
cf_org_name = local.cf_org_name
cf_space_name = local.cf_space_name
cf_space_id = local.cf_space_name
name = "${local.app_name}-redis-v70-${local.env}"
redis_plan_name = "redis-dev"
json_params = jsonencode(
@@ -27,11 +26,10 @@ module "redis-v70" {
}
module "logo_upload_bucket" {
source = "github.com/GSA-TTS/terraform-cloudgov//s3?ref=v1.0.0"
source = "github.com/GSA-TTS/terraform-cloudgov//s3?ref=v2.4.0"
cf_org_name = local.cf_org_name
cf_space_name = local.cf_space_name
name = "${local.app_name}-logo-upload-bucket-${local.env}"
cf_space_id = local.cf_space_name
name = "${local.app_name}-logo-upload-bucket-${local.env}"
}
module "api_network_route" {

View File

@@ -2,6 +2,10 @@ terraform {
required_version = "~> 1.7"
required_providers {
cloudfoundry = {
source = "cloudfoundry/cloudfoundry"
version = "1.9.0"
}
cloudfoundry-community = {
source = "cloudfoundry-community/cloudfoundry"
version = "0.53.1"
}
@@ -17,6 +21,14 @@ terraform {
}
provider "cloudfoundry" {
api_url = "https://api.fr.cloud.gov"
user = var.cf_user
password = var.cf_password
# app_logs_max = 30
}
provider "cloudfoundry-community" {
alias = "legacy"
api_url = "https://api.fr.cloud.gov"
user = var.cf_user
password = var.cf_password