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(amazonq): tf scans mapped to wrong language #4975

Merged
merged 1 commit into from May 12, 2024

Conversation

ctlai95
Copy link
Contributor

@ctlai95 ctlai95 commented May 10, 2024

Problem

Projects with terraform files fail with Improperly formed request error. This is happening due to tf incorrectly mapped to hcl.

Solution

The reverse map lookup function getLanguageFromFileExtension is unreliable because there could be duplicate values. Use getLanguageContext instead.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ctlai95 ctlai95 marked this pull request as ready for review May 10, 2024 21:35
@ctlai95 ctlai95 requested review from a team as code owners May 10, 2024 21:35
@justinmk3 justinmk3 merged commit fe588c5 into aws:master May 12, 2024
14 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.

None yet

3 participants