S3 Deployment: Deployment fails when using localstack #21014
Labels
@aws-cdk/aws-s3
Related to Amazon S3
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p2
Describe the bug
I'm using
cdklocal
with localstack to deploy my cdk stack in my local environment. When executing the S3 Deployment, I get the error[Errno 2] No such file or directory: '/opt/awscli/aws'
. There is no/opt/awscli/aws
on my machine.Why am I getting this error?
Expected Behavior
The S3 Deployment should upload the contents of
./app/build
to my bucket.Current Behavior
The bucket is created but the contents of
./app/build
is not uploaded to my bucket.Reproduction Steps
localstack start
Stack:
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.22.0 (build 1db4b16)
Framework Version
No response
Node.js Version
v16.15.0
OS
Mac OS Monterey
Language
Typescript
Language Version
No response
Other information
CDK code referencing this value: https://github.com/aws/aws-cdk/blob/v1-main/packages/@aws-cdk/aws-s3-deployment/lib/lambda/index.py#L224
The text was updated successfully, but these errors were encountered: