terraform-bastion icon indicating copy to clipboard operation
terraform-bastion copied to clipboard

Convert default instance size to t3 for AWS

Open sudermanjr opened this issue 4 years ago • 4 comments

sudermanjr avatar Jan 13 '21 20:01 sudermanjr

@mdgreenwald mentioned this during nov 12 2020 engineering office hours, setting the default instance type to use the T3 family.

We also want to make sure the CPU Credits option is set to mirror the default T2 instance type behavior (it's ok to run out of credits), so the bastion cost is predictable.

ivanfetch avatar Jan 13 '21 20:01 ivanfetch

Based on this, I think we'd want to use standard.

resource "aws_instance" "woo" {
  ami           = "ami-12345abcdef"
  instance_type = "t3.micro"

  credit_specification {
    cpu_credits = "standard"
  }
}

mdgreenwald avatar Feb 25 '21 17:02 mdgreenwald

This also may require switching to launch templates.

mdgreenwald avatar Feb 25 '21 17:02 mdgreenwald

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 13 '21 01:04 stale[bot]