Skip to content

Conversation

@kierramarie
Copy link
Member

Description

Added vpc_name var to No Prefix example. Then pass the prefix and vpc in as the name in the test. Should stop name clash errors.

Release required?

  • No release
  • Patch release (x.x.X)
  • Minor release (x.X.x)
  • Major release (X.x.x)
Release notes content

Run the pipeline

If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.

Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:

/run pipeline

Checklist for reviewers

  • If relevant, a test for the change is included or updated with this PR.
  • If relevant, documentation for the change is included or updated with this PR.

For mergers

  • Use a conventional commit message to set the release level. Follow the guidelines.
  • Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
  • Use the Squash and merge option.

tests/pr_test.go Outdated
t.Parallel()

options := setupOptions(t, "no-prefix-lz", noprefixExampleTerraformDir)
options.TerraformVars = map[string]interface{}{
Copy link
Member

Choose a reason for hiding this comment

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

setupOptions will have already created a TerraformVars map with region+prefix+etc already set.

In this case you would want to just add a new entry to the existing map, instead of creating a whole new map.

I think you just need one line here, options.TerraformVars["vpc_name"] = fmt.Sprintf("%s-vpc", options.Prefix)

That should add a new vpc_name map entry to the exiting map.

@kierramarie
Copy link
Member Author

/run pipeline

@kierramarie
Copy link
Member Author

/run pipeline

@ocofaigh
Copy link
Contributor

ocofaigh commented Oct 1, 2025

/run pipeline

@ocofaigh ocofaigh merged commit 74cfa73 into main Oct 1, 2025
2 checks passed
@ocofaigh ocofaigh deleted the ks-noprefix-error branch October 1, 2025 22:17
@terraform-ibm-modules-ops
Copy link
Contributor

🎉 This PR is included in version 8.6.0 🎉

The release is available on:

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.

5 participants