TritonDataCenter / terraform-provider-triton

Terraform Joyent Triton provider
https://www.terraform.io/docs/providers/triton/
Mozilla Public License 2.0
15 stars 24 forks source link

Triton Account data source #68

Closed clstokes closed 6 years ago

clstokes commented 6 years ago

It would be helpful to have a data source to determine a Triton account's information such as the account uuid based on the Triton credentials that are currently in use. This data is used for Triton CNS (and potentially other items) so it would be great to make this data available via a data source.

I'm imagining usage like this:

data "triton_account" "main" {
}

output "triton_account_uuid" {
  value = "${data.triton_account.main.id}"
}

I believe GetAccount in CloudAPI would be the best place to get this data. The account uuid is probably the only data that needs exposing at this point.