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

Unify the Configuration of Triton Accounts #49

Closed stack72 closed 7 years ago

stack72 commented 7 years ago

Currently, the Terraform triton provider would support configuration via 2 methods:

It was missing a 3rd way of configuring, passing a key path and letting the terraform provider get the contents for itself

This means we are now starting to be more consistent in how we configure the triton provider

//cc @cheapRoc

jen20 commented 7 years ago

FWIW this was supported and then deprecated as part of the push to stop Terraform reading files for itself in favour of the file interpolation, back in the Terraform 0.6-0.7 days. That said, people have the path configured in their environment there is value to reviving it, so :+1.

jwreagor commented 7 years ago

👍 I feel like this enhances usability. We've had a recent issue (#40) around configuration so PRs like this help.

stack72 commented 7 years ago

@cheapRoc / @jen20 also, the reason I realised this had to still be supported was when working with SolEng for the Minio work. They didn't know about SSH Agents so still wanted to read SSH Key details using a path

jwreagor commented 7 years ago

@stack72 Your point makes me think this could be handy in triton-go as a helper function. Though I'm still in favor of triton-go defaulting to SSH agent authentication.

Worth mentioning that I've done some work around guarding this default case while adding unit tests (branch still in flux here). Maybe this is worth merging in and adding the better SDC_KEY_MATERIAL support as a utility for reuse?

stack72 commented 7 years ago

@cheapRoc I think we can merge this now and then we can decide about a helper in triton-go

Right now, this doesn't change any of the default behaviour :)