service: hnw-wallpad-etl plugins: - serverless-python-requirements provider: name: aws runtime: python3.8 lambdaHashingVersion: 20201221 # you can overwrite defaults here stage: dev region: ap-northeast-2 memorySize: 1024 timeout: 180 # you can add statements to the Lambda function's IAM Role here iamRoleStatements: - Effect: "Allow" Action: - "s3:ListBucket" - "s3:GetObject" Resource: - "arn:aws:s3:::homenetwork-data/*" - Effect: "Allow" Action: - "s3:PutObject" Resource: - "arn:aws:s3:::hdci-wallpad-prep/*" # you can define service wide environment variables here environment: PREP_BUCKET: hdci-wallpad-prep # you can add packaging information here package: individually: true exclude: - "**/requirements.txt" - "venv/**" custom: UPLOAD_BUCKET: ${self:custom.bucket} bucket: ${self:service}-${self:provider.stage} pythonRequirements: slim: true useStaticCache: true useDownloadCache: true cacheLocation: './._cache' staticCacheMaxVersions: 10 noDeploy: - pip - setuptools - boto3 - botocore - dateutil - docutils - jmespath - python_dateutil - s3transfer - six - urllib3 dockerizePip: non-linux functions: prep-f: handler: preprocess/lambda_function.lambda_handler module: preprocess name: hdci-wallpad-raw-to-prep events: - s3: bucket: homenetwork-data event: s3:ObjectCreated:* existing: true