Open
Conversation
Harsh9485
commented
Apr 12, 2026
| version = "~> 1.0" | ||
|
|
||
| agent_id = coder_agent.dev[0].id | ||
| agent_name = "dev" |
Contributor
Author
There was a problem hiding this comment.
I want to mention that when I ran terraform init, the agent_name variable did not exist. So in my template, I removed agent_name.
Contributor
Author
Oh, my mistake. I wrote closes, but this PR is for the aws-linux template. I only refactored the code that runs the init script in the AWS VM. I know coder/coder#22664 added a check script, but I made this PR because I think using a cloud-init file is a better way to run the init script in the AWS VM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#723
Description
Refactored AWS Linux template to use cloud-init for agent initialization, bringing it to parity with the Azure template pattern.
Key Changes:
startup_scriptto cloud-init configurationcloud_final_moduleswithalwaysfrequency to ensure agent starts on every workspace bootType of Change
Template Information
Path:
registry/coder/templates/aws-linuxTesting & Validation
bun test)bun fmt)Screenshots