Hi,
When writing a provider, is it possible to pass one resource as argument to another resource? Something like this:
resource "provider_account" "sales" {
name = "sales"
key_file = "${path.module}/sales.json"
}
resource "provider_cluster" "europe" {
account = "${provider_account.sales}"
...
}
resource "provider_cluster" "africa" {
account = "${provider_account.sales}"
...
}
Where the provider_cluster.account attribute would accept a resource of type provider_account and the CRUD operations would be able to read the Terraform state of that resource, i.e. id and key_file.
Kind regards,
Johan