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 wrap generated import format regex in ^ and $ #6365

Conversation

modular-magician
Copy link
Collaborator

Part of hashicorp/terraform-provider-google#14731

Currently generated import_format regex in TPG is not wrapped in start of line and end of line tokens, which allows for certain edge case false positives in non-standard import formats supplied via override.

Release Note Template for Downstream PRs (will be copied)

provider: fixed many import functions throughout the provider that matched a subset of the provided input when possible. Now, the GCP resource id supplied to "terraform import" must match exactly.

Derived from GoogleCloudPlatform/magic-modules#8913

* updated regex

* removing prefix fron vpntunnel text, updating billing info for allowing supplied uris wth a trailing

* replacing importstateid, skipping import in generated sample

* incorrect var

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit 80eb9f2 into hashicorp:FEATURE-BRANCH-major-release-5.0.0 Sep 25, 2023
@modular-magician modular-magician deleted the downstream-pr-6cdbf4d42c5f254c57bdf57724e159a20f07e6c9 branch November 16, 2024 02:18
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.

1 participant