Skip to content

docs: add template to provision docker image based workspaces on fly.io #6526

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

Merged
merged 13 commits into from
Mar 17, 2023
Prev Previous commit
Next Next commit
fix: valid fly_app name
  • Loading branch information
matifali committed Mar 12, 2023
commit fe925aa6d542d06b8c23146a64ed0ebf84cb460c
2 changes: 1 addition & 1 deletion examples/templates/fly-docker-image/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ provider "coder" {
}

resource "fly_app" "workspace" {
name = "coder-${data.coder_workspace.me.owner}-${lower(data.coder_workspace.me.name)}"
name = "coder-${data.coder_workspace.me.owner}-${lower(replace(data.coder_workspace.me.name, "-", "_"))}"
org = var.fly_org
}

Expand Down