Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@f0ssel

Description

@f0ssel

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
}

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions