aws-samples / aws-serverless-webapp-workshop

Code and walkthrough labs to set up serverless applications for Wild Rydes workshops
https://serverlessland.com
Other
56 stars 144 forks source link

Update Cloud9 instance to t3.small to avoid error #29

Closed bfreiberg closed 1 year ago

bfreiberg commented 2 years ago

Issue #, if available:

Description of changes:

The t2.micro instance is not able to unzip the latest version of amplify anymore due to limited memory. It results in an opaque error like

Admin:~/environment/wild-rydes (master) $ amplify init
Downloading release from https://d2bkhsss993doa.cloudfront.net/8.0.2/amplify-pkg-linux-x64.tgz
node:internal/buffer:959
    super(bufferOrLength, byteOffset, length);
    ^

RangeError: Array buffer allocation failed
    at new ArrayBuffer (<anonymous>)
    at new Uint8Array (<anonymous>)
    at new FastBuffer (node:internal/buffer:959:5)
    at createUnsafeBuffer (node:internal/buffer:1062:12)
    at allocate (node:buffer:410:10)
    at Function.allocUnsafe (node:buffer:375:10)
    at Function.concat (node:buffer:553:25)
    at Extract.<anonymous> (/home/ec2-user/.nvm/versions/node/v16.14.2/lib/node_modules/@aws-amplify/cli/lib/binary.js:124:37)
    at Extract.emit (node:events:538:35)
    at finishMaybe (/home/ec2-user/.nvm/versions/node/v16.14.2/lib/node_modules/@aws-amplify/cli/node_modules/readable-stream/lib/_stream_writable.js:624:14)

Upgrading the Cloud9 instance to a t3.small solves this issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

moserda commented 2 years ago

+1

falnyr commented 1 year ago

What are the next steps here @kushagra1504 ? Does #32 need to be addressed before this is merged?