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

The s3 sync error during Custom::CDKBucketDeployment #246

Open
limenutt opened this issue Mar 7, 2021 · 2 comments
Open

The s3 sync error during Custom::CDKBucketDeployment #246

limenutt opened this issue Mar 7, 2021 · 2 comments

Comments

@limenutt
Copy link

limenutt commented Mar 7, 2021

Hi!
I'm using version 1.89 and I'll try with the latest one in a bit, but in the meantime, here is the issue:

Here is how I create my deployment

const spaDeployment = new SPADeploy(this, 'WebappDeployment')
    .createSiteWithCloudfront({
      indexDoc: 'index.html',
      websiteFolder: resolvePath(__dirname,'../../../../dist/apps/web-app/en-AU'),
      certificateARN: this.props.CDNProjectCertificateARN,
      cfAliases: [this.props.webappHostname]
    });

And the error I'm getting

Failed to create resource. Command '['/opt/awscli/aws', 's3', 'sync', '--delete', '/tmp/tmpoa6yhjsb/contents', 's3://feature-lxp-343-features-webappdeploymentwebsiteb-114do55b79y8j
/']' died with <Signals.SIGKILL: 9>.

I think it could be related to #13292 in aws-cdk.

@ZwaarContrast
Copy link

The amount of memory to allocate to the AWS Lambda function which replicates the files from the CDK bucket to the destination bucket probably exceeds 128mb. This can be increased by setting memoryLimit on the BucketDeployment.

More background info can be found in this thread: aws/aws-cdk#4058
Opened a pull request to add the functionality to CDK-SPA-Deploy: #284

@jgreen-linx
Copy link

Is this PR going to be integrated any time soon?

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

3 participants