Skip to content

feat(examples/templates): add aws vm devcontainer template #11248

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 10 commits into from
Dec 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix typo and persist workspace
  • Loading branch information
matifali authored Dec 19, 2023
commit 32e1fa34cda832475404b29b819934c2a6ce5570
4 changes: 2 additions & 2 deletions examples/templates/aws-devcontainer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ resource "coder_agent" "dev" {
arch = "amd64"
auth = "token"
os = "linux"
dir = "/worskpaces"
dir = "/workspaces"
connection_timeout = 0

metadata {
Expand Down Expand Up @@ -145,7 +145,7 @@ locals {

# Start envbuilder
docker run --rm \
-v /tmp/envbuilder:/workspaces \
-v /home/${local.linux_user}/envbuilder:/workspaces \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so this persists now? nice!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it's persistent. I have tested.

-e CODER_AGENT_TOKEN="${try(coder_agent.dev[0].token, "")}" \
-e CODER_AGENT_URL="${data.coder_workspace.me.access_url}" \
-e GIT_URL="${data.coder_parameter.repo_url.value}" \
Expand Down