You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(build): support mount symlink in terraform build (#8854)
* feat(build): support --mount-symlinks in terraform build
Thread the --mount-symlinks flag through the Terraform build pipeline so
that zip artifacts containing symlinks (e.g. absolute symlinks) can be
extracted during sam build --hook-name terraform.
Changes:
- copy_terraform_built_artifacts.py: Add --mount-symlinks CLI flag and
pass it to unzip()
- makefile_generator.py: Include $(SAM_CLI_MOUNT_SYMLINKS_FLAG)
placeholder in the Makefile recipe
- app_builder.py: Replace the placeholder with --mount-symlinks in the
Makefile before invoking the builder (per-build, race-safe)
- build_integ_base.py: Add mount_symlinks parameter to get_command_list
Tests:
- Script-level tests for symlink zip extraction with/without flag
- E2E integration test with sam build --hook-name terraform
- Unit test for makefile recipe generation
* black
* change to pass mount-symlink down from the call chain
* feedback
0 commit comments