Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Make the name argument the first item in a resource block when generating Terraform configuration #279

Open
wylie-ucb opened this issue Oct 28, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@wylie-ucb
Copy link

wylie-ucb commented Oct 28, 2022

For ease of readability, I want the name argument to be the first item in a resource block. I've been painstakingly moving these manually. It looks like the arguments are being populated in alphabetic order currently, which is fine, but I still want the name to be first. Having the name first also seems to be the Terraform standard.

Current behavior:
resource "azurerm_foo" "bar" {
baz = "xyzzy"
corge = "plugh"
name = "waldo"
quux = "thud"
}

Desired behavior:
resource "azurerm_foo" "bar" {
name = "waldo"
baz = "xyzzy"
corge = "plugh"
quux = "thud"
}

@magodo magodo added the enhancement New feature or request label Oct 28, 2022
@magodo
Copy link
Collaborator

magodo commented Oct 28, 2022

@wylie-ucb This sounds like out of scope of this tool, but can make another dedicated tool for this kind of customization ordering/formatting. I'll still mark this issue as "enhancement" to remind me to work on this if I have bandwidth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants