Skip to content

How do I change the user in a workspace from coder to ${data.coder_workspace.me.owner} #10746

Answered by code-asher
simonjcarr asked this question in Q&A
Discussion options

You must be logged in to vote

Just FYI, I transferred your discussion from coder/code-server to coder/coder.

This might help:

coder/dogfood/main.tf

Lines 275 to 276 in ba955f4

# Hostname makes the shell more user friendly: coder@my-workspace:~$
hostname = data.coder_workspace.me.name

Not sure about the user, though. Maybe check out this template as an example:

https://github.com/coder/coder/blob/ba955f44d04dbf976af32ffd6eb274c4e602ee0c/examples/templates/docker/main.tf

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by matifali
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants