cloud-gov/product

Tag SES resources with org, space tags

Closed this issue · 4 comments

Other brokers tag resources using the https://github.com/cloud-gov/go-broker-tags repository. This broker should tag resources in the same way — e.g. CF org name, org GUID, space name, space GUID...

  • Rewrite using sesv2 resources so SES identity can be tagged
  • Tag a single resource, the SES identity, as a POC
  • Write a module that allows repeatably tagging all resources created by the brokerpak
  • Investigate tagging all resources created by the broker at the top level

Tagging with org and space information is currently not possible in the CSB. The CSB uses HIL to interpolate variables into service definition files. HIL does not support indexing into maps with heterogeneous value types, and the request.context map, which contains org and space information, contains both string and map types. I've opened a discussion in the CF Slack about possible workarounds.

OSBAPI Cloud Foundry Context object docs: https://github.com/openservicebrokerapi/servicebroker/blob/master/profile.md#cloud-foundry-context-object
Discussion in CF Slack: https://cloudfoundry.slack.com/archives/C0164KKEZGX/p1724703876380109

Started tagging all resources with default_tags on each provider. Now blocked until I hear back from the CSB dev team about the HIL issue.

Submitted PR to fix the issue: cloudfoundry/cloud-service-broker#1087

Workaround works. Last tags added to broker; closing.