Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying assets to s3 bucket does not work #66

Closed
Townsheriff opened this issue Mar 22, 2022 · 0 comments
Closed

Deploying assets to s3 bucket does not work #66

Townsheriff opened this issue Mar 22, 2022 · 0 comments

Comments

@Townsheriff
Copy link

Hey,

I'm trying to publish assets to s3 buckets with:

  new cdk.aws_s3_deployment.BucketDeployment(this, "AssetsDeployment", {
    destinationBucket: assetsBucket,
    sources: [cdk.aws_s3_deployment.Source.asset(websiteAssets.path)],
  });

I'm getting error in docker container: {"Status": "FAILED", "Reason": "[Errno 2] No such file or directory: '/opt/awscli/aws'", "PhysicalResourceId": "2022/03/22/[1]7b16a3b1", "StackId": "arn:aws:cloudformation:eu-central-1:000000000000:stack/DemoAppStack/id-123", "RequestId": "1638d886", "LogicalResourceId": "AssetsDeploymentCustomResourceEBEC1B06", "NoEcho": false, "Data": {}}

What happens is that s3 deployment uses python lambda function in which it runs executable located /opt/awscli/aws which I cannot override. Source of truth is here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant