mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-26 17:24:23 -04:00
fix provider name
This commit is contained in:
@@ -33,17 +33,39 @@ data "cloudfoundry_space" "space" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# IF we want to upgrade from cloudfoundry communit to official,
|
||||||
|
# we need to do something like what's commented out below
|
||||||
|
#
|
||||||
|
# We also need to run
|
||||||
|
#
|
||||||
|
# terraform state replace-provider \
|
||||||
|
# -auto-approve \
|
||||||
|
# -state=terraform.tfstate
|
||||||
|
# 'registry.terraform.io/cloudfoundry-community/cloudfoundry' \
|
||||||
|
# 'registry.terraform.io/cloudfoundry/cloudfoundry' \
|
||||||
|
# module.logo_upload_bucket (or something like that)
|
||||||
|
# module "logo_upload_bucket" {
|
||||||
|
# source = "github.com/GSA-TTS/terraform-cloudgov//s3?ref=v2.4.0"
|
||||||
|
# Right now the default is cfcommunity, remove this when default is cloudfoundry
|
||||||
|
# providers = {
|
||||||
|
# cloudfoundry = cloudfoundry.official
|
||||||
|
# }
|
||||||
|
# cf_space_id = data.cloudfoundry_space.space.id
|
||||||
|
# name = "${local.app_name}-logo-upload-bucket-${local.env}"
|
||||||
|
# }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
module "logo_upload_bucket" {
|
module "logo_upload_bucket" {
|
||||||
source = "github.com/GSA-TTS/terraform-cloudgov//s3?ref=v2.4.0"
|
source = "../shared/container_networking"
|
||||||
# Right now the default is cfcommunity, remove this when default is cloudfoundry
|
|
||||||
providers = {
|
cf_org_name = local.cf_org_name
|
||||||
cloudfoundry = cloudfoundry.official
|
cf_space_name = local.cf_space_name
|
||||||
}
|
name = "${local.app_name}-logo-upload-bucket-${local.env}"
|
||||||
# org = data.cloudfoundry_organization.org.id
|
|
||||||
cf_space_id = data.cloudfoundry_space.space.id
|
|
||||||
name = "${local.app_name}-logo-upload-bucket-${local.env}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
module "api_network_route" {
|
module "api_network_route" {
|
||||||
source = "../shared/container_networking"
|
source = "../shared/container_networking"
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
cloudfoundry = {
|
cloudfoundry = {
|
||||||
source = "cloudfoundry/cloudfoundry"
|
source = "cloudfoundry/cloudfoundry"
|
||||||
version = "1.11.0"
|
version = "1.9.0"
|
||||||
}
|
}
|
||||||
cfcommunity = {
|
cfcommunity = {
|
||||||
source = "cloudfoundry-community/cloudfoundry"
|
source = "cloudfoundry-community/cloudfoundry"
|
||||||
|
|||||||
Reference in New Issue
Block a user