Skip to content

Commit

Permalink
Fix terraform validate issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rahearn committed May 8, 2024
1 parent 541d295 commit ddff0be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions domain/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
service_name = (var.name == "" ? "${data.cloudfoundry_app.app.name}-${var.domain_name}" : var.name)
service_name = (var.name == "" ? "${data.cloudfoundry_app.app[0].name}-${var.domain_name}" : var.name)
endpoint = (var.host_name != null ? "${var.host_name}.${var.domain_name}" : var.domain_name)
target_apps = (var.app_name_or_id != null ? [var.app_name_or_id] : var.app_names_or_ids)
}
Expand Down Expand Up @@ -34,7 +34,7 @@ resource "cloudfoundry_route" "origin_route" {

dynamic "target" {
for_each = data.cloudfoundry_app.app
content = {
content {
app = target.id
}
}
Expand Down
2 changes: 1 addition & 1 deletion domain/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ variable "app_names_or_ids" {

variable "name" {
type = string
description = "name of the service instance"
description = "name of the service instance. Required if not passing in app names or ids"
default = ""
}

Expand Down

0 comments on commit ddff0be

Please sign in to comment.