mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-05 08:40:29 -04:00
Explicitly add allow_ssh flag and disable for production
This will also ensure any drift is picked up by our infrastructure verification checks Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -11,6 +11,7 @@ data "cloudfoundry_org" "org" {
|
||||
###
|
||||
|
||||
resource "cloudfoundry_space" "public_egress" {
|
||||
allow_ssh = var.allow_ssh
|
||||
delete_recursive_allowed = var.delete_recursive_allowed
|
||||
name = "${var.cf_restricted_space_name}-egress"
|
||||
org = data.cloudfoundry_org.org.id
|
||||
|
||||
@@ -9,3 +9,9 @@ variable "delete_recursive_allowed" {
|
||||
default = true
|
||||
description = "Flag for allowing resources to be recursively deleted - not recommended in production environments"
|
||||
}
|
||||
|
||||
variable "allow_ssh" {
|
||||
type = bool
|
||||
default = true
|
||||
description = "Flag for allowing SSH access in a space - not recommended in production environments"
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ data "cloudfoundry_space" "space" {
|
||||
# SES Space
|
||||
###
|
||||
resource "cloudfoundry_space" "cf_ses_service_space" {
|
||||
allow_ssh = var.allow_ssh
|
||||
delete_recursive_allowed = var.delete_recursive_allowed
|
||||
name = data.cloudfoundry_space.space.name
|
||||
org = data.cloudfoundry_org.org.id
|
||||
|
||||
@@ -40,3 +40,9 @@ variable "delete_recursive_allowed" {
|
||||
default = true
|
||||
description = "Flag for allowing resources to be recursively deleted - not recommended in production environments"
|
||||
}
|
||||
|
||||
variable "allow_ssh" {
|
||||
type = bool
|
||||
default = true
|
||||
description = "Flag for allowing SSH access in a space - not recommended in production environments"
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ data "cloudfoundry_space" "space" {
|
||||
# SNS Space
|
||||
###
|
||||
resource "cloudfoundry_space" "cf_sns_service_space" {
|
||||
allow_ssh = var.allow_ssh
|
||||
delete_recursive_allowed = var.delete_recursive_allowed
|
||||
name = data.cloudfoundry_space.space.name
|
||||
org = data.cloudfoundry_org.org.id
|
||||
|
||||
@@ -28,3 +28,9 @@ variable "delete_recursive_allowed" {
|
||||
default = true
|
||||
description = "Flag for allowing resources to be recursively deleted - not recommended in production environments"
|
||||
}
|
||||
|
||||
variable "allow_ssh" {
|
||||
type = bool
|
||||
default = true
|
||||
description = "Flag for allowing SSH access in a space - not recommended in production environments"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user