Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore(examples/templates/aws-devcontainer): update to use envbuilder provider` #14831

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 4 commits into from
Sep 26, 2024

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Sep 26, 2024

Relates to #13278

  • Updates to use envbuilder provider
  • Allows adding a public SSH key for troubleshooting
  • Adds support for attaching an instance profile (for registries hosted on ECR)
  • Also fixes an issue in the gcp-devcontainer template where we do not actually use the output of cached_image 💀

You can play around with the current version of the template here (internal link): https://dev.coder.com/templates/coder/cian-aws-devcontainer

@johnstcn johnstcn requested a review from matifali September 26, 2024 14:48
@johnstcn johnstcn self-assigned this Sep 26, 2024
Copy link
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

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

Great job. ❤️

ami = data.aws_ami.ubuntu.id
availability_zone = local.aws_availability_zone
instance_type = data.coder_parameter.instance_type.value
iam_instance_profile = try(data.aws_iam_instance_profile.vm_instance_profile[0].name, null)
root_block_device {
volume_size = 30
Copy link
Member

Choose a reason for hiding this comment

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

Should we also make the root disk size a parameter?

Copy link
Member Author

@johnstcn johnstcn Sep 26, 2024

Choose a reason for hiding this comment

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

I'd like to keep this a separate change.
Edit: #14833

@johnstcn johnstcn merged commit 4be5b2f into main Sep 26, 2024
29 checks passed
@johnstcn johnstcn deleted the cj/update-aws-devcontainer-template branch September 26, 2024 16:07
@github-actions github-actions bot locked and limited conversation to collaborators Sep 26, 2024
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.

2 participants