gligor
10/21/2021, 2:05 AMERROR: `serverless package` failed to generate deployment package. This could be because the build is running out of memory. Try a larger build machine or contact us if the problem persists.
Ashishkumar Pandey
10/21/2021, 3:05 AMStandard SG
to Medium SG
. That should do the trick, I guess.Ashishkumar Pandey
10/21/2021, 3:06 AMAshishkumar Pandey
10/21/2021, 3:06 AMAshishkumar Pandey
10/21/2021, 3:06 AMgligor
10/21/2021, 3:07 AMAshishkumar Pandey
10/21/2021, 3:08 AMgligor
10/21/2021, 3:08 AMgligor
10/21/2021, 3:08 AMAshishkumar Pandey
10/21/2021, 3:10 AMgligor
10/21/2021, 3:13 AMAshishkumar Pandey
10/21/2021, 3:15 AMgligor
10/21/2021, 3:17 AMservice: api-gateway
projectDir: ../../
plugins:
- serverless-deployment-bucket
custom: ${file(../../serverless.common.yml):custom}
provider:
name: ${self:custom.provider.name}
region: ${self:custom.provider.region}
stage: ${self:custom.stage}
deploymentBucket:
name: <secret>
serverSideEncryption: AES256
resources:
Resources:
ApiGatewayRestApi:
Type: AWS::ApiGateway::RestApi
Properties:
Name: ${self:custom.stage}-api
ApiGatewayApiKey:
Type: AWS::ApiGateway::ApiKey
Properties:
Enabled: true
Name: ${self:custom.stage}-ApiKey
Outputs:
ApiGatewayRestApiId:
Value:
Ref: ApiGatewayRestApi
Export:
Name: ${self:custom.stage}-RestApiId
ApiGatewayRestApiRootResourceId:
Value:
Fn::GetAtt:
- ApiGatewayRestApi
- RootResourceId
Export:
Name: ${self:custom.stage}-RestApiRootResourceId
ApiGatewayApiKeyId:
Value:
Ref: ApiGatewayApiKey
Export:
Name: ${self:custom.stage}-ApiKeyId
Ashishkumar Pandey
10/21/2021, 3:56 AMgligor
10/21/2021, 4:37 AMgligor
10/21/2021, 9:26 AMname: ${self:custom.provider.name}
to hardcoded name: aws
in all the serverless.yml files and it all automagically worked. I’m not sure why I can’t have a common provider set outside and just reference to it - it works locally just not on seedAshishkumar Pandey
10/21/2021, 9:27 AMFrank
gligor
10/24/2021, 5:44 AMFrank
sls -v
locally in the same directory of serverless.yml
, and on SEED add a before_build
hook and run sls -v
inside the same directory, and share the output for both here?gligor
10/25/2021, 8:38 PMFramework Core: 2.64.1 (local)
Plugin: 5.5.0
SDK: 4.3.0
Components: 3.17.1
Frank
gligor
11/02/2021, 3:02 AMgligor
11/02/2021, 3:03 AMgligor
11/02/2021, 3:03 AMFrank
name
. It seems they support that now.Frank
gligor
11/02/2021, 4:01 AMgligor
11/02/2021, 4:01 AM