aws-toolkit-jetbrains icon indicating copy to clipboard operation
aws-toolkit-jetbrains copied to clipboard

Add working directory to `sam invoke local`

Open JadenSimon opened this issue 3 years ago • 3 comments

Types of changes

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)

Description

This should've fixed an issue with SAM CLI not detecting samconfig.toml for sam local invoke But apparently SAM CLI treats the template path as the project root. I think we can just get rid of using --template when provided by a user. Which would fix the issue (plus less opportunity for unexpected behavior).

Motivation and Context

Related Issue(s)

#3105

Testing

Screenshots (if appropriate)

Checklist

  • [ ] I have read the README document
  • [ ] I have read the CONTRIBUTING document
  • [ ] Local run of gradlew check succeeds
  • [ ] My code follows the code style of this project
  • [ ] I have added tests to cover my changes
  • [ ] All new and existing tests passed
  • [ ] A short description of the change has been added to the CHANGELOG if change is customer facing in the IDE.

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

JadenSimon avatar Apr 29 '22 00:04 JadenSimon

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Apr 29 '22 00:04 sonarqubecloud[bot]

/runIntegrationTests

rli avatar Apr 29 '22 16:04 rli

SAM CLI recommends using --config-file (https://github.com/aws/aws-sam-cli/issues/3431) but if we're going to use that parameter then we should expose it in the UI.

JadenSimon avatar May 06 '22 17:05 JadenSimon