mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-12 00:02:36 -05:00
Upgrade terraform-cloudgov, add prevent_destroy
This commit is contained in:
@@ -3,7 +3,7 @@ locals {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module "s3" {
|
module "s3" {
|
||||||
source = "github.com/18f/terraform-cloudgov//s3?ref=v0.9.1"
|
source = "github.com/GSA-TTS/terraform-cloudgov//s3?ref=v1.0.0"
|
||||||
|
|
||||||
cf_org_name = "gsa-tts-benefits-studio"
|
cf_org_name = "gsa-tts-benefits-studio"
|
||||||
cf_space_name = "notify-management"
|
cf_space_name = "notify-management"
|
||||||
@@ -13,4 +13,8 @@ module "s3" {
|
|||||||
resource "cloudfoundry_service_key" "bucket_creds" {
|
resource "cloudfoundry_service_key" "bucket_creds" {
|
||||||
name = "${local.s3_service_name}-access"
|
name = "${local.s3_service_name}-access"
|
||||||
service_instance = module.s3.bucket_id
|
service_instance = module.s3.bucket_id
|
||||||
|
|
||||||
|
lifecycle {
|
||||||
|
prevent_destroy = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user