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: account for multiple chars in resource id[IAC-3015] #298

Conversation

sergiu-snyk
Copy link
Contributor

When computing a resource location a regex is used to strip the brackets from a resource ID.
E.g. aws_s3_bucket.example[1] stripped of brackets is aws_s3_bucket.example

The regex used was not working when an ID had multiple chars inside brackets.

@sergiu-snyk sergiu-snyk requested a review from a team as a code owner July 25, 2024 11:59
@sergiu-snyk sergiu-snyk requested review from andreeaneata and removed request for a team July 25, 2024 11:59
@sergiu-snyk sergiu-snyk merged commit 8527d10 into main Jul 25, 2024
11 checks passed
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