https://pulumi.com logo
Title
s

straight-arm-50771

03/20/2023, 2:54 PM
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:
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