question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

API Gateway disappears as lambda trigger when provisionedConcurrency is set to 1

See original GitHub issue

Bug Report

Description

I can’t say for sure if this is related to #7059 or #7137 but since I’m running a (more) recent version I assume it’s still an issue.

When simply follwing the example code on https://serverless.com/blog/framework-example-golang-lambda-support/ and deploying this unchanged (except for go mod in stead of dep), I get a functioning lambda with API Gateway trigger as expected:

Screenshot_2020-01-29 myservice-dev-hello - Lambda

If I then add provisionedConcurrency: 1 and redeploy, the API Gateway trigger disappears. It’s still there and functioning but it’s no longer being shown (which of course confused me)

Screenshot_2020-01-29 myservice-dev-hello - Lambda(1)

This also happens with versionFunctions: false

I would expect the API Gateway trigger to be still visible with the lambda.

serverless.yml

This is the serverless.yml as produced by serverless create -t aws-go-dep -p myservice with the only change the addition of provisionedConcurrency: 1 (comments removed)

service: myservice

frameworkVersion: '>=1.28.0 <2.0.0'

provider:
  name: aws
  runtime: go1.x

package:
  exclude:
    - ./**
  include:
    - ./bin/**

functions:
  hello:
    handler: bin/hello
    provisionedConcurrency: 1  # <- added
    events:
      - http:
          path: hello
          method: get
  world:
    handler: bin/world
    events:
      - http:
          path: world
          method: get

sls versions

$ sls --version
Framework Core: 1.61.3
Plugin: 3.3.0
SDK: 2.3.0
Components Core: 1.1.2
Components CLI: 1.4.0

deploy output

Fresh deployment with provisionedConcurrency: 1

$ SLS_DEBUG=* serverless deploy
Serverless: Load command interactiveCli
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command config:tabcompletion
Serverless: Load command config:tabcompletion:install
Serverless: Load command config:tabcompletion:uninstall
Serverless: Load command create
Serverless: Load command install
Serverless: Load command package
Serverless: Load command deploy
Serverless: Load command deploy:function
Serverless: Load command deploy:list
Serverless: Load command deploy:list:functions
Serverless: Load command invoke
Serverless: Load command invoke:local
Serverless: Load command info
Serverless: Load command logs
Serverless: Load command metrics
Serverless: Load command print
Serverless: Load command remove
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command slstats
Serverless: Load command plugin
Serverless: Load command plugin
Serverless: Load command plugin:install
Serverless: Load command plugin
Serverless: Load command plugin:uninstall
Serverless: Load command plugin
Serverless: Load command plugin:list
Serverless: Load command plugin
Serverless: Load command plugin:search
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command upgrade
Serverless: Load command uninstall
Serverless: Load command login
Serverless: Load command logout
Serverless: Load command generate-event
Serverless: Load command test
Serverless: Load command dashboard
Serverless: Load command output
Serverless: Load command output:get
Serverless: Load command output:list
Serverless: Load command param
Serverless: Load command param:get
Serverless: Load command param:list
Serverless: Invoke deploy
Serverless: Invoke package
Serverless: Invoke aws:common:validate
Serverless: Invoke aws:common:cleanupTempDir
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Invoke aws:package:finalize
Serverless: Invoke aws:common:moveArtifactsToPackage
Serverless: Invoke aws:common:validate
Serverless: Invoke aws:deploy:deploy
Serverless: [AWS cloudformation 400 0.479s 0 retries] describeStacks({ StackName: 'myservice-dev' })
Serverless: Creating Stack...
Serverless: [AWS cloudformation 200 0.607s 0 retries] createStack({
  StackName: 'myservice-dev',
  OnFailure: 'DELETE',
  Capabilities: [ 'CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM', [length]: 2 ],
  Parameters: [ [length]: 0 ],
  TemplateBody: '{"AWSTemplateFormatVersion":"2010-09-09","Description":"The AWS CloudFormation template for this Serverless application","Resources":{"ServerlessDeploymentBucket":{"Type":"AWS::S3::Bucket","Properties":{"BucketEncryption":{"ServerSideEncryptionConfiguration":[{"ServerSideEncryptionByDefault":{"SSEAlgorithm":"AES256"}}]}}},"ServerlessDeploymentBucketPolicy":{"Type":"AWS::S3::BucketPolicy","Properties":{"Bucket":{"Ref":"ServerlessDeploymentBucket"},"PolicyDocument":{"Statement":[{"Action":"s3:*","Effect":"Deny","Principal":"*","Resource":[{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":s3:::",{"Ref":"ServerlessDeploymentBucket"},"/*"]]}],"Condition":{"Bool":{"aws:SecureTransport":false}}}]}}}},"Outputs":{"ServerlessDeploymentBucketName":{"Value":{"Ref":"ServerlessDeploymentBucket"}}}}',
  Tags: [ { Key: 'STAGE', Value: 'dev' }, [length]: 1 ]
})
Serverless: Checking Stack create progress...
Serverless: [AWS cloudformation 200 0.476s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
...Serverless: [AWS cloudformation 200 0.469s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.509s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.497s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.47s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
.Serverless: [AWS cloudformation 200 0.481s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
....
Serverless: Stack create finished...
Serverless: [AWS cloudformation 200 0.481s 0 retries] describeStackResource({
  StackName: 'myservice-dev',
  LogicalResourceId: 'ServerlessDeploymentBucket'
})
Serverless: [AWS s3 200 0.761s 0 retries] listObjectsV2({
  Bucket: 'myservice-dev-serverlessdeploymentbucket-tvllb4jsugw2',
  Prefix: 'serverless/myservice/dev'
})
Serverless: [AWS lambda 404 0.474s 0 retries] getFunction({ FunctionName: 'myservice-dev-hello' })
Serverless: [AWS lambda 404 0.486s 0 retries] getFunction({ FunctionName: 'myservice-dev-world' })
Serverless: [AWS sts 200 0.478s 0 retries] getCallerIdentity({})
Serverless: Uploading CloudFormation file to S3...
Serverless: [AWS s3 200 0.53s 0 retries] putObject({
  Body: <Buffer 7b 22 41 57 53 54 65 6d 70 6c 61 74 65 46 6f 72 6d 61 74 56 65 72 73 69 6f 6e 22 3a 22 32 30 31 30 2d 30 39 2d 30 39 22 2c 22 44 65 73 63 72 69 70 74 ... 6728 more bytes>,
  Bucket: 'myservice-dev-serverlessdeploymentbucket-tvllb4jsugw2',
  Key: 'serverless/myservice/dev/1580312028979-2020-01-29T15:33:48.979Z/compiled-cloudformation-template.json',
  ContentType: 'application/json',
  Metadata: { filesha256: 'PWFF3ImVo/QHEdsqTu/niPp/utt2U6V3fqHt3Lp5oVA=' }
})
Serverless: Uploading artifacts...
Serverless: Uploading service myservice.zip file to S3 (6.17 MB)...
Serverless: [AWS s3 200 0.489s 0 retries] createMultipartUpload({
  Bucket: 'myservice-dev-serverlessdeploymentbucket-tvllb4jsugw2',
  Key: 'serverless/myservice/dev/1580312028979-2020-01-29T15:33:48.979Z/myservice.zip',
  ContentType: 'application/zip',
  Metadata: { filesha256: 'P0hF1pPL2q9gcZzWQsyDVc6h1J0aKFHXJT+Z3HVIfFA=' }
})
Serverless: [AWS s3 200 1.588s 0 retries] uploadPart({
  Body: <Buffer a0 87 40 dd c0 ab 8b b6 08 31 e4 3e 43 62 b4 04 3e 0a 2c 3e eb 20 ce 6a e0 b5 a0 5e 88 73 3a fc ef 80 ec 2c f0 c7 20 8f 11 c8 41 48 62 df 09 5a 04 ba ... 1230583 more bytes>,
  ContentLength: 1230633,
  PartNumber: 2,
  Bucket: 'myservice-dev-serverlessdeploymentbucket-tvllb4jsugw2',
  Key: 'serverless/myservice/dev/1580312028979-2020-01-29T15:33:48.979Z/myservice.zip',
  UploadId: 'irTLtwT5c0T1P8oIXWE6nGcQAXPW94cUUhFtzOt3N8O5fd9UGm_0TQF5pGJYMx6XQaQJ6DXjbDsTsMdSwC4_.s4YZCjmgQ2sVYaKo7gG7WiIKVRb0qW7iKsi7_YEa4t6'
})
Serverless: [AWS s3 200 3.806s 0 retries] uploadPart({
  Body: <Buffer 50 4b 03 04 14 00 08 00 08 00 00 00 21 00 00 00 00 00 00 00 00 00 00 00 00 00 09 00 00 00 62 69 6e 2f 68 65 6c 6c 6f ec bd 0b 74 14 45 da 3f 3c 81 0c ... 5242830 more bytes>,
  ContentLength: 5242880,
  PartNumber: 1,
  Bucket: 'myservice-dev-serverlessdeploymentbucket-tvllb4jsugw2',
  Key: 'serverless/myservice/dev/1580312028979-2020-01-29T15:33:48.979Z/myservice.zip',
  UploadId: 'irTLtwT5c0T1P8oIXWE6nGcQAXPW94cUUhFtzOt3N8O5fd9UGm_0TQF5pGJYMx6XQaQJ6DXjbDsTsMdSwC4_.s4YZCjmgQ2sVYaKo7gG7WiIKVRb0qW7iKsi7_YEa4t6'
})
Serverless: [AWS s3 200 0.669s 0 retries] completeMultipartUpload({
  MultipartUpload: {
    Parts: [
      { ETag: '"2bf80b414c39e4464bcfd694cc9aa1ef"', PartNumber: 1 },
      { ETag: '"bed7764c0b32785fd10d8b8494d3386e"', PartNumber: 2 },
      [length]: 2
    ]
  },
  Bucket: 'myservice-dev-serverlessdeploymentbucket-tvllb4jsugw2',
  Key: 'serverless/myservice/dev/1580312028979-2020-01-29T15:33:48.979Z/myservice.zip',
  UploadId: 'irTLtwT5c0T1P8oIXWE6nGcQAXPW94cUUhFtzOt3N8O5fd9UGm_0TQF5pGJYMx6XQaQJ6DXjbDsTsMdSwC4_.s4YZCjmgQ2sVYaKo7gG7WiIKVRb0qW7iKsi7_YEa4t6'
})
Serverless: Validating template...
Serverless: [AWS cloudformation 200 0.767s 0 retries] validateTemplate({
  TemplateURL: 'https://s3.amazonaws.com/myservice-dev-serverlessdeploymentbucket-tvllb4jsugw2/serverless/myservice/dev/1580312028979-2020-01-29T15:33:48.979Z/compiled-cloudformation-template.json'
})
Serverless: Updating Stack...
Serverless: [AWS cloudformation 200 1.192s 0 retries] updateStack({
  StackName: 'myservice-dev',
  Capabilities: [ 'CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM', [length]: 2 ],
  Parameters: [ [length]: 0 ],
  TemplateURL: 'https://s3.amazonaws.com/myservice-dev-serverlessdeploymentbucket-tvllb4jsugw2/serverless/myservice/dev/1580312028979-2020-01-29T15:33:48.979Z/compiled-cloudformation-template.json',
  Tags: [ { Key: 'STAGE', Value: 'dev' }, [length]: 1 ]
})
Serverless: Checking Stack update progress...
Serverless: [AWS cloudformation 200 0.614s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
............Serverless: [AWS cloudformation 200 0.59s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
......Serverless: [AWS cloudformation 200 0.589s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.596s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
.......Serverless: [AWS cloudformation 200 0.603s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
................Serverless: [AWS cloudformation 200 0.609s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
...Serverless: [AWS cloudformation 200 0.645s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
.Serverless: [AWS cloudformation 200 0.792s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.84s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.605s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.816s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.795s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.614s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.814s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.806s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.607s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.612s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.727s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.827s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.581s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.617s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.612s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.806s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.588s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.595s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.794s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.633s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.782s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.815s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.791s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.809s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.608s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.612s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.82s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.603s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.591s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.622s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.81s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.585s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.623s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.698s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.583s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.805s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.577s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.608s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.621s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.824s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.713s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.809s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.822s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.6s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.606s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.591s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.729s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
...Serverless: [AWS cloudformation 200 0.608s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
Serverless: [AWS cloudformation 200 0.607s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:907019612533:stack/myservice-dev/bf50e7a0-42ac-11ea-918b-0e2e9aec3a21'
})
...
Serverless: Stack update finished...
Serverless: Invoke aws:info
Serverless: [AWS cloudformation 200 0.491s 0 retries] describeStacks({ StackName: 'myservice-dev' })
Serverless: [AWS cloudformation 200 0.48s 0 retries] listStackResources({ StackName: 'myservice-dev' })
Service Information
service: myservice
stage: dev
region: us-east-1
stack: myservice-dev
resources: 18
api keys:
  None
endpoints:
  GET - https://jr7rvcne9l.execute-api.us-east-1.amazonaws.com/dev/hello
  GET - https://jr7rvcne9l.execute-api.us-east-1.amazonaws.com/dev/world
functions:
  hello: myservice-dev-hello
  world: myservice-dev-world
layers:
  None
Serverless: Invoke aws:deploy:finalize
Serverless: [AWS s3 200 0.472s 0 retries] listObjectsV2({
  Bucket: 'myservice-dev-serverlessdeploymentbucket-tvllb4jsugw2',
  Prefix: 'serverless/myservice/dev'
})
Serverless: Run the "serverless" command to setup monitoring, troubleshooting and testing.

After this update, the hello lambda is missing the trigger (but as functioning endpoints). The world lambda does have the trigger.

Similar or dependent issues:

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
medikoocommented, Jan 29, 2020

@iivvoo when configuring a provisioned concurrency, the provisioned alias is setup (which is provisioned) and it’s what API Gateway endpoint triggers (there’s no way to configure provisioned concurrency for $LATEST alias).

I believe it disappears for you, as you look at $LATEST alias, ensure to check provisioned, the API Gateway attachment should be visible there

0reactions
medikoocommented, Apr 14, 2020

I am experiencing the same issue. The trigger is attached to the provisioned version but is missing from the $latest version. Has this been resolved?

It’s not an issue, it’s intentional. We cannot provision $LATEST alias, and you want API Gateway to trigger the provisioned alias

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot invocation issues in Lambda
Provisioned concurrency is not configurable on the $LATEST version. Ensure that your triggers invoke the correct function version or alias. For example, if...
Read more >
13 AWS Lambda design considerations you need to know about
Below are a few examples that showcase the different models and invocation types available: API Gateway Request is a Push model and by...
Read more >
AWS Lambda | Severless provision concurrency trigger alias
How can I make sure that service like SQS or API Gateway that are attached to my lambdas and trigger the lambdas will...
Read more >
Find Answers to AWS Questions about AWS Lambda | AWS re:Post
Business Support gives you: 1-hour response time for production system down ... Lambda provisioned concurrency for $LATEST, or, updating API gateway to ...
Read more >
AWS Lambda Provisioned Concurrency AutoScaling with ...
A couple of weeks ago I was working on some AWS CDK based code and I was trying to figure out how to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found