-
issue while trying to create a DigitalOcean volume for the workspace.indicating authentication failure with DigitalOcean, preventing the creation of the volume.
Expected Behavior: Actual Behavior: Additional Information:
Error Message:
main.tf |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 2 replies
-
@matifali sir any bypass/workaround for this? |
Beta Was this translation helpful? Give feedback.
-
@ShivamB25, the issue looks like you have an authentication problem with the provider. This is possibly a bug with do provider. Have you searched their issues or filed an issue with them? |
Beta Was this translation helpful? Give feedback.
-
@matifali i am using the api key with both doctl with exported as a variable too on the command line |
Beta Was this translation helpful? Give feedback.
-
The variable needs to be set where Coder is installed and should be accessible to the Coder user. This really depends on how Coder is run. |
Beta Was this translation helpful? Give feedback.
-
running as non-service / docker. |
Beta Was this translation helpful? Give feedback.
-
@ShivamB25 try this https://coder.com/docs/v2/latest/install/packages |
Beta Was this translation helpful? Give feedback.
-
@matifali i will try running it as a service and input those vars and give it a try again in a bit. thanks |
Beta Was this translation helpful? Give feedback.
-
@matifali thanks it worked with service file not sure why wasn't it working with exported env and doctl already authenticated |
Beta Was this translation helpful? Give feedback.
Authenticating
doctl
CLI and authenticating the terraform provider are two different things. Thecoder
user runs terraform, so thecoder
user needs access to this env variable. Glad that you fixed it.