aws-sam-cli icon indicating copy to clipboard operation
aws-sam-cli copied to clipboard

Bug: sam build - PermissionError

Open Prachi-Philips opened this issue 4 months ago • 2 comments

Description:

Steps to reproduce:

Observed result:

Expected result:

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: Windows-11-10.0.22631-SP0
  2. sam --version: SAM CLI, version 1.142.1
  3. AWS region: us-east-1
# Paste the output of `sam --info` here
``` {
  "version": "1.142.1",
  "system": {
    "python": "3.12.6",
    "os": "Windows-11-10.0.22631-SP0"
  },
  "additional_dependencies": {
    "docker_engine": "Not available",
    "aws_cdk": "Not available",
    "terraform": "Not available"
  },
  "available_beta_feature_env_vars": [
    "SAM_CLI_BETA_FEATURES",
    "SAM_CLI_BETA_BUILD_PERFORMANCE",
    "SAM_CLI_BETA_TERRAFORM_SUPPORT",
    "SAM_CLI_BETA_PACKAGE_PERFORMANCE",
    "SAM_CLI_BETA_RUST_CARGO_LAMBDA"
  ]
}

`Add --debug flag to command you are running`

Prachi-Philips avatar Aug 27 '25 19:08 Prachi-Philips

After multiple trials , I am unable to run sam build successfully

Prachi-Philips avatar Aug 27 '25 19:08 Prachi-Philips

@Prachi-Philips Looks like this might be a duplicate of:

  • #6114 - Bug: sam build - PermissionError
  • #7968 - Bug: sam build - AttributeError
  • #1491 - sam local invoke fails due to file permissions made by sam build

Can you check if those cover your case? If not, explain what's different.

dcabib avatar Oct 03 '25 21:10 dcabib