Skip to content

sam build arg cached=false / turn off cache #3828

@elliottyates

Description

@elliottyates

Describe your idea/feature/enhancement

It would be great if sam build could accept a parameter to override the samconfig.toml's cached = true setting. I see only --cached (setting to 'true') in the possible build args (https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-cli-command-reference-sam-build.html).

Additional Details

Context: Builds are failing using VS Code AWS Toolkit run/debug config, cf aws/aws-toolkit-vscode#2395. Being able to "turn off" the default caching in samconfig.toml as a workaround, using sam / buildArguments, is what I was thinking of.

Workarounds:

  • Use a different --config-env (but this requires duplicating whatever might be e.g. in default.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions