Skip to content

chore: update aws_linux template #9325

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 3 commits into from
Aug 25, 2023
Merged

chore: update aws_linux template #9325

merged 3 commits into from
Aug 25, 2023

Conversation

matifali
Copy link
Member

@matifali matifali commented Aug 25, 2023

Updated the template with the following changes

  1. Use ec2_instance_state to manage start/stop.
  2. Update agent metadata to use coder stat.
  3. Update some wrong regional flag emojis.
  4. Updated Coder terraform provider.

Please test at https://dev.coder.com/templates/aws-linux.

Closes #8931

Updated the template with the following changes
1. use https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ec2_instance_state.html to manage start/stop
2. Update agent metadata to use `coder stat`
3. Update some wrong regional flag emojis
@matifali matifali requested a review from bpmct August 25, 2023 06:44
@matifali matifali self-assigned this Aug 25, 2023
@github-actions
Copy link

github-actions bot commented Aug 25, 2023


✔️ PR 9325 Created successfully.
🚀 Access the credentials here.

cc: @matifali

Copy link
Member

@bpmct bpmct left a comment

Choose a reason for hiding this comment

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

Hey, this looks good! Some feedback:

  • Change count of the agent to 0 or 1 based on the transition state so that the agent isn't flashing when the workspace is stopped
    Screenshot 2023-08-25 at 8 12 21 AM
  • Remove comment that mentions user data and just have local.user_data instead of conditionally rendering it

bpmct

This comment was marked as duplicate.

@matifali matifali enabled auto-merge (squash) August 25, 2023 13:48
@matifali matifali merged commit 3b1ecd3 into main Aug 25, 2023
@matifali matifali deleted the matifali/aws-linux-template branch August 25, 2023 13:50
@github-actions github-actions bot locked and limited conversation to collaborators Aug 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change AWS examples to use aws_ec2_instance_state
2 participants