Search code examples
amazon-web-servicesamazon-s3aws-codepipelineaws-code-deploy

AWS CodePipeline - Code Deploy to S3 uncompressed artifact size limit


I have a simple AWS code pipeline that builds a Gatsby site and creates a compressed artifact with around ~3.2GB. When moving to code deploy it fails with the following message,

enter image description here

Is there an option to increase the limit or any workarounds to upload the artifact to S3 and unzip it?

Following are the code pipeline steps,

enter image description here

Deploy stage configuration,

enter image description here


Solution

  • Try using this command in your buildspec.yaml in codebuild stage itself

    aws s3 cp --recursive ./build s3://AWS_S3_BUCKET​/