Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Add Tags support for PaaS services #41

Open
scross01 opened this issue Jul 19, 2018 · 0 comments
Open

Add Tags support for PaaS services #41

scross01 opened this issue Jul 19, 2018 · 0 comments
Labels
accs Application Container Cloud Service dbcs Database Cloud Service jcs Java Cloud Service mysqlcs MySQL Cloud Service new-data-source new-resource

Comments

@scross01
Copy link
Contributor

scross01 commented Jul 19, 2018

Add support for a Tags resource and tag assignment to the PaaS service instances

Tags and Assignments REST Endpoints

Tag resource/datasource

A new Tag resource should be added to manage creation of new tags, and a Tag data source for using existing defined Tags. A Tag is uniquely defined by the key/value pair (i.e. multiple tags can have the same key) e.g.

resource "oraclepaas_tag" "example-tag1" {
  key = "environment"
  value = "qa"
}

data "oraclepaas_tag" "example-tag2" {
  key = "environment"
  value = "production"
}

Tag assignment (for discussion)

Tags are assigned to instances using the tags API, so tag the assignment relationships could be implemented as part of the Tag resource, however for a more natural usage, and consistency to tagging or other resources, the proposal is to declare the Tags are part of the instance resources (JCS, DBCS, ACCS, MySQLCS etc) and have the resource implementation use the tags api to assign and update the tag allocation, e.g.

resource "oraclepaas_mysql_service_instance" "example" {
  name               = "mysql1"
  description        = "Created by Terraform"
  ....
    
  tags = [
    "${oraclepass_tag.example-tag1.id}",
    "${data.oraclepaas_tag.example-tag2.id}"
  ]
}
@scross01 scross01 added new-data-source new-resource dbcs Database Cloud Service jcs Java Cloud Service accs Application Container Cloud Service mysqlcs MySQL Cloud Service labels Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accs Application Container Cloud Service dbcs Database Cloud Service jcs Java Cloud Service mysqlcs MySQL Cloud Service new-data-source new-resource
Projects
None yet
Development

No branches or pull requests

1 participant