Closed tj closed 7 years ago
Why not both? CLI commands read/update central config.
Some day maybe, I think I'll start with the config stuff for now, that's more in-line with best practices lately. Secret env vars are probably the one exception I can think of, having those in config is obviously not good haha, might be more but I can't think of any.
Then yeah, I'd roll with config file first. Not only easier, but supplementing with a CLI later (as opposed to vice versa) is more additive / not breaking.
Thoughts on something like TFE? It's super nice to have the changes planned/applied by a third party and reviewed by the team. We've had significantly fewer outages after moving stuff from "normal" Terraform to Terraform Enterprise.
@stephenmathieson nice! Longer term that definitely makes sense, even running up
from the the CLI is gimmicky beyond super small companies, but people like gimmicks haha, sadly, at least it's low barrier to entry I suppose.
Sucks TF isn't very embeddable right now :'(. I'll have to take a closer look at the TF enterprise stuff I only briefly saw it, but that was before it got all hardcore with services all over.
needs a bit of polish but pretty much done
Curious what peoples thoughts are regarding managing things like DNS records, alarms, etc.
One option is individual CLI commands, this would be a little easier to implement, but awkward since the team can't review/audit them, commit them to source control, and requires listing a bunch of resources to see the state of the world.
The more "correct" approach these days would be more like Terraform infra-as-code style, where the config in your repo is the source of truth, though it may be less familiar/intuitive to some people.
For DNS looking something like the following (for apex.sh zone):
Changes would be previewed via
up plan
which shows what will be updated/created/deleted etc and applied withup apply
or similar. Note this is not a replacement for Terraform or CloudFormation, just need to provide enough for people to get apps bootstrapped.Pros of CRUD style:
Pros of Terraform style:
Any opinions?
What needs implementing for now: