Skip to content
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

Merged
merged 5 commits into from
Apr 23, 2021
Merged

Update to Terraform 0.15 #873

merged 5 commits into from
Apr 23, 2021

Conversation

brikis98
Copy link
Member

This PR updates the Terratest build to run with Terraform 0.15.

@brikis98 brikis98 requested a review from yorinasub17 as a code owner April 22, 2021 14:26
zackproser
zackproser previously approved these changes Apr 22, 2021
Copy link
Contributor

@zackproser zackproser left a 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
Copy link
Member Author

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
Copy link
Member Author

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.

@brikis98
Copy link
Member Author

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!

Copy link
Contributor

@zackproser zackproser left a comment

Choose a reason for hiding this comment

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

LGTM

@brikis98
Copy link
Member Author

Thanks for the review! Merging now.

@brikis98 brikis98 merged commit adca4a8 into master Apr 23, 2021
@brikis98 brikis98 deleted the tf15 branch April 23, 2021 13:23
@brikis98
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants