-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Update to Terraform 0.15 #873
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -1,3 +1,8 @@ | |||
// +build azure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing build tag on our Azure code. Not related to this PR, but was causing test failures.
This ensures we always pick an instance type available in every AZ of our chosen AWS region
@@ -26,7 +26,7 @@ provider "aws" { | |||
resource "aws_launch_template" "sample_launch_template" { | |||
name_prefix = var.instance_name | |||
image_id = data.aws_ami.ubuntu.id | |||
instance_type = "t2.micro" | |||
instance_type = var.instance_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not directly related to this PR, but we were getting intermittent test failures when we picked an instance type that happened not to be available in all AZs in an AWS region. To make tests more stable, I made these configurable, and used GetRecommendedInstanceType
in our test code to pick a type that is available in all AZs.
OK, there is still a bit of test instability, but it's unrelated to this PR, and passed on re-run, and now all tests are passing! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for the review! Merging now. |
This PR updates the Terratest build to run with Terraform 0.15.