Skip to content

lambda.AssetCode() does not preserve file permissions #7749

@pahud

Description

@pahud

I was trying to deploy my lambda code assets with custom runtime with my own bootstrap file which has to be executable(chmod +x).

However, it loos like when the folder was staged into cdk.out the executable permission will not be preserved.

圖片

According to the document, if we are implementing the custom runtime, the bootstrap file has to be exetable.
https://docs.aws.amazon.com/lambda/latest/dg/runtimes-custom.html

Looks like we have no property to enable the permission preservation in this scenario.

Not sure if it's related to nodejs/node#27241

Reproduction Steps

Error Log

Environment

  • CLI Version : 1.36.1
  • Framework Version:
  • OS : mac os x
  • Language : typescript

Other


This is 🐛 Bug Report

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-lambdaRelated to AWS LambdabugThis issue is a bug.closing-soonThis issue will automatically close in 4 days unless further comments are made.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions