Skip to content

Conversation

huttotw
Copy link
Collaborator

@huttotw huttotw commented Nov 18, 2024

Description

This uses a new variable is_serverless so that the resources created by the module are deterministic.

Checklist before submitting PR for review

  • This change requires a doc update, and I've included it
  • My code follows the style guidelines of this project
  • I have ensured my code is commented and any new terraform variables have proper descriptions

@huttotw huttotw changed the title fix: use is_serverless so that input is deterministic fix: use is_serverless so that output is deterministic Nov 18, 2024
@@ -7,6 +7,7 @@ run "valid_serverless_minimal_details" {
vpc_id = "my-vpc"
workgroup_arn = "workgroup_arn"
s3_bucket_name = "my-bucket"
is_serverless = true
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to add some validation that workgroup_arn should be supplied when is_serverless is true?

Copy link
Collaborator

@camphillips22 camphillips22 left a comment

Choose a reason for hiding this comment

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

LGTM!

@huttotw
Copy link
Collaborator Author

huttotw commented Nov 18, 2024

@camphillips22 looks like we have to bump all the way to Terraform v1.9.0 in order to enable dependent variable validation, I'm hesitant to bump to such a recent version at the expense of compatibility.

@huttotw huttotw merged commit e3a7c8c into main Nov 18, 2024
5 checks passed
@huttotw huttotw deleted the huttotw/use-deterministic-variables branch November 18, 2024 19:40
@huttotw
Copy link
Collaborator Author

huttotw commented Nov 18, 2024

🎉 This PR is included in version 0.1.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants