Skip to content

Commit

Permalink
Address PR feedback around tags and egress-proxy outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
rahearn committed Dec 2, 2024
1 parent 16c3e87 commit 169e6ed
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 8 deletions.
2 changes: 1 addition & 1 deletion database/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
tags = setunion(["terraform-cloudgov"], var.tags)
tags = setunion(["terraform-cloudgov-managed"], var.tags)
}

data "cloudfoundry_service_plans" "rds" {
Expand Down
2 changes: 1 addition & 1 deletion database/tests/creation.tftest.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ variables {
cf_space_id = "15836eb6-a57e-4579-bca7-99764c5a01a4"
rds_plan_name = "micro-psql"
name = "terraform-cloudgov-rds-test"
tags = ["terraform-cloudgov", "tests"]
tags = ["terraform-cloudgov-managed", "tests"]
json_params = jsonencode({
backup_retention_period = 30
})
Expand Down
2 changes: 1 addition & 1 deletion domain/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
service_name = (var.name == "" ? "${var.app_names[0]}-${var.domain_name}" : var.name)
tags = setunion(["terraform-cloudgov"], var.tags)
tags = setunion(["terraform-cloudgov-managed"], var.tags)
connect_route = length(var.app_names) > 0
endpoint = (local.connect_route ? cloudfoundry_route.origin_route_connected.0.url : cloudfoundry_route.origin_route.0.url)
}
Expand Down
2 changes: 1 addition & 1 deletion domain/tests/creation.tftest.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ variables {
domain_name = "apps.internal"
name = "terraform-cloudgov-domain-test"
app_names = ["test-app-does-not-exist"]
tags = ["terraform-cloudgov", "tests"]
tags = ["terraform-cloudgov-managed", "tests"]
}

run "test_domain_creation" {
Expand Down
13 changes: 13 additions & 0 deletions egress_proxy/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,16 @@ output "password" {
output "app_id" {
value = cloudfoundry_app.egress_app.id
}

output "json_credentials" {
value = jsonencode({
"https_uri" = local.https_proxy
"http_uri" = local.http_proxy
"domain" = local.domain
"username" = local.username
"password" = local.password
"https_port" = local.https_port
"http_port" = local.http_port
})
sensitive = true
}
2 changes: 1 addition & 1 deletion redis/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
tags = setunion(["terraform-cloudgov"], var.tags)
tags = setunion(["terraform-cloudgov-managed"], var.tags)
}

data "cloudfoundry_service_plans" "redis" {
Expand Down
2 changes: 1 addition & 1 deletion redis/tests/creation.tftest.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ variables {
cf_space_id = "15836eb6-a57e-4579-bca7-99764c5a01a4"
redis_plan_name = "redis-dev"
name = "terraform-cloudgov-redis-test"
tags = ["terraform-cloudgov", "tests"]
tags = ["terraform-cloudgov-managed", "tests"]
json_params = jsonencode({
engineVersion = "7.0"
})
Expand Down
2 changes: 1 addition & 1 deletion s3/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
tags = setunion(["terraform-cloudgov"], var.tags)
tags = setunion(["terraform-cloudgov-managed"], var.tags)
}

data "cloudfoundry_service_plans" "s3" {
Expand Down
2 changes: 1 addition & 1 deletion s3/tests/creation.tftest.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ variables {
cf_space_id = "15836eb6-a57e-4579-bca7-99764c5a01a4"
s3_plan_name = "basic-sandbox"
name = "terraform-cloudgov-s3-test"
tags = ["terraform-cloudgov", "tests"]
tags = ["terraform-cloudgov-managed", "tests"]
}

run "test_bucket_creation" {
Expand Down

0 comments on commit 169e6ed

Please sign in to comment.