Can anyone share the correct config for a Lambda w...
# aws
s
Can anyone share the correct config for a Lambda whose code is hosted in S3? Getting
code: Cannot assign type 'string' to type 'archive'
from below:
Copy code
service:
  type: aws:lambda:Function
  properties:
    role: ${lambda-role.arn}
    code: s3_bucket
    memorySize: 512
    runtime: "go1.x"
    s3Bucket: mybucket
    s3Key: service.zip
    timeout: 15
    environment:
      variables:
        foo: bar
Edit- solved. Documentation is misleading.
code
should not be used for type
s3_bucket