Skip to content

Commit

Permalink
Add final tags, meeting parity with go tagging library
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshochadel committed Sep 9, 2024
1 parent 722729a commit 012a2e5
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 6 deletions.
12 changes: 12 additions & 0 deletions brokerpaks/cg-smtp/cg-smtp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ provision:
# Inputs used for tagging resources
- name: context
default: ${request.context}
- name: service_offering_name
type: string
default: cg-smtp
- name: service_plan_name
type: string
default: base
outputs:
- field_name: region
type: string
Expand Down Expand Up @@ -166,6 +172,12 @@ bind:
# Inputs used for tagging resources
- name: context
default: ${request.context}
- name: service_offering_name
type: string
default: cg-smtp
- name: service_plan_name
type: string
default: base
outputs:
- field_name: smtp_server
type: string
Expand Down
4 changes: 2 additions & 2 deletions brokerpaks/cg-smtp/terraform/bind/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ provider "aws" {
"Organization name" = local.organization_name
"Space name" = local.space_name
"Space GUID" = local.space_guid
"Service offering name" = "" # todo
"Service plan name" = "" # todo
"Service offering name" = var.service_offering_name
"Service plan name" = var.service_plan_name
}
}
}
10 changes: 10 additions & 0 deletions brokerpaks/cg-smtp/terraform/bind/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,13 @@ variable "context" {
type = any
description = "Cloud Foundry context object from provision call. Useful for tagging resources."
}

variable "service_offering_name" {
type = string
description = "Name of the Cloud Foundry service offering. Used for tagging."
}

variable "service_plan_name" {
type = string
description = "Name of the Cloud Foundry service plan. Used for tagging."
}
8 changes: 4 additions & 4 deletions brokerpaks/cg-smtp/terraform/provision/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ provider "aws" {
"Organization name" = local.organization_name
"Space name" = local.space_name
"Space GUID" = local.space_guid
"Service offering name" = "" # todo
"Service plan name" = "" # todo
"Service offering name" = var.service_offering_name
"Service plan name" = var.service_plan_name
}
}
}
Expand All @@ -48,8 +48,8 @@ provider "aws" {
"Organization name" = local.organization_name
"Space name" = local.space_name
"Space GUID" = local.space_guid
"Service offering name" = "" # todo
"Service plan name" = "" # todo
"Service offering name" = var.service_offering_name
"Service plan name" = var.service_plan_name
}
}
}
10 changes: 10 additions & 0 deletions brokerpaks/cg-smtp/terraform/provision/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,13 @@ variable "context" {
type = any
description = "Cloud Foundry context object from provision call. Useful for tagging resources."
}

variable "service_offering_name" {
type = string
description = "Name of the Cloud Foundry service offering. Used for tagging."
}

variable "service_plan_name" {
type = string
description = "Name of the Cloud Foundry service plan. Used for tagging."
}

0 comments on commit 012a2e5

Please sign in to comment.