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

Fix: Cloudformation Template - Forcing refresh of a TerraformVersion … #819

Merged
merged 2 commits into from
Apr 5, 2024

Conversation

TomerHeber
Copy link
Collaborator

…field

Issue & Steps to Reproduce / Feature Request

fixes #818

Solution

I'm unsure why it's occurring. But I applied a mitigation.
Tests seem to pass.

@@ -39,7 +39,7 @@ func main() {
} else {
success, err := runTest(testName, destroyMode != "NO_DESTROY")
if !success {
log.Fatalln("Halting due to test failure:", err)
log.Fatalf("Halting due to test '%s' failure: %s\n", testName, err.Error())
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unrelated - but was requested to get fixed.


// If this value isn't set, ignore whatever is returned from the response.
// This helps avoid drifts when defaulting to 'opentofu' for new 'terragrunt' templates, and 'terraform' for existing 'terragrunt' templates.
// 'template.TerragruntTfBinary' field is set to 'omitempty'. Therefore, the state isn't modified if `template.TerragruntTfBinary` is an empty string.
if terragruntTfBinary == "" {
template.TerragruntTfBinary = ""
}
// Same explanation as above.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is a mitigation. But I believe it will solve the issue. (As I'm unsure why it's happening to the user).

@TomerHeber TomerHeber requested a review from yaronya April 3, 2024 17:52
@yaronya yaronya merged commit dc3d675 into main Apr 5, 2024
5 checks passed
@yaronya yaronya deleted the fix-terraform-version-drift-#818 branch April 5, 2024 17:17
@github-actions github-actions bot added ready to merge PR approved - can be merged once the PR owner is ready and removed pending final review labels Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix integration-tests provider ready to merge PR approved - can be merged once the PR owner is ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cloudformation Template - Forcing refresh of a TerraformVersion field
2 participants