designs/build_debug_artifacts.md
sam build produces artifacts that are built for production use. In some langauges (usually interpreted),
these production artifacts are also debuggable locally. In the case of compiled languages, you usually need to compile
the binary or artifact in a specific manner for them to be debuggable.
We will introduce a way in sam build to produce these debuggable artifacts for those compiled languages.
sam build supports will not be changedExplain the changes to command line interface, including adding new commands, modifying arguments etc
Changes are additive and will not break any existing functionality.
We have a couple options to consider:
--mode)
SAM_BUILD_MODE). IDE Toolkit will set the env var when calling sam build
while debugging.
sam build produces debug artifacts by default and sam package will build
non debug artifacts by default
sam build as build is positioned to produce artifacts that are ready for deploymentMy recommendation is to follow Option #2 from above, mainly because:
.samrc ChangesExplain the new configuration entries, if any, you want to add to .samrc
Tip: How does this change impact security? Answer the following questions to help answer this question better:
What new dependencies (libraries/cli) does this change require? No
What other Docker container images are you using? N/A
Are you creating a new HTTP endpoint? If so explain how it will be created & used No
Are you connecting to a remote API? If so explain how is this connection secured No
Are you reading/writing to a temporary folder? If so, what is this used for and when do you clean up? No
How do you validate new .samrc configuration? N/A