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

Support installing coder and using provider in single terraform apply #144

Open
f0ssel opened this issue Nov 20, 2024 · 0 comments
Open
Assignees
Labels
question Further information is requested

Comments

@f0ssel
Copy link

f0ssel commented Nov 20, 2024

Currently the provider requires you provide an authentication token on initialization. If you do something like a helm_release of coder, it is currently not possible to also manage resources on the coder installation in the same terraform apply step because you do not have an authentication token yet. You would need to install coder in one step, login or make a new api key, and then run another terraform apply step for the terraform-provider-coderd resources.

Ideally a user can install coder and manage it's resources in the same step by allowing the user to create the "first coder user" and then login with that user for the provider.

One idea of how this could possibly look:

provider "coderd" {
  url   = "coder.example.com"
  email = "[email protected]"
  password = "SomeSecurePassword!"
  username = "Admin"
  create_first_user = true
}
@f0ssel f0ssel self-assigned this Nov 20, 2024
@coder-labeler coder-labeler bot added the question Further information is requested label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant