-
Notifications
You must be signed in to change notification settings - Fork 89
Closed
localstack/localstack
#2034Description
Trying to deploy my serverless stack to localstack. This deploys successfully to AWS but fails here.
serverless.yml:
service: smb
package:
individually: false
exclude:
- "**"
- "!*.py"
provider:
name: aws
runtime: python3.6
region: us-west-2
resources:
Resources:
SMBDLQPolicy:
Type: AWS::IAM::ManagedPolicy
Properties:
Path: /smb/
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Action:
- sqs:ChangeMessageVisibility
- sqs:GetQueueUrl
- sqs:ListQueues
- sqs:SendMessage
Resource:
Fn::GetAtt:
- SMBDeadLetterQueue
- Arn
SMBIngestInvokePolicy:
Type: AWS::IAM::ManagedPolicy
Properties:
Path: /smb/
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Action:
- lambda:InvokeFunction
Resource:
Fn::GetAtt:
- SMBIngestLambdaFunction
- Arn
SMBVPCPolicy:
Type: AWS::IAM::ManagedPolicy
Properties:
Path: /smb/
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Action:
- ec2:CreateNetworkInterface
- ec2:DescribeNetworkInterfaces
- ec2:DeleteNetworkInterface
Resource: "*"
SMBIngestRole:
Type: AWS::IAM::Role
Properties:
Path: /smb/
RoleName: SMBIngestRole
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Principal:
Service:
- lambda.amazonaws.com
Action: sts:AssumeRole
ManagedPolicyArns:
- arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
- Ref: SMBDLQPolicy
- Ref: SMBVPCPolicy
Policies:
- PolicyName: SMBSNSPublishPolicy
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Action:
- sns:CreateTopic
- sns:Publish
- SNS:ListSubscriptionsByTopic
Resource:
Ref: SMBSNSTopic
SMBAPIRole:
Type: AWS::IAM::Role
Properties:
Path: /smb/
RoleName: SMBAPI
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Principal:
Service:
- lambda.amazonaws.com
Action: sts:AssumeRole
ManagedPolicyArns:
- arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
- Ref: SMBIngestInvokePolicy
- Ref: SMBDLQPolicy
- Ref: SMBVPCPolicy
SMBDeadLetterQueue:
Type: AWS::SQS::Queue
Properties:
QueueName: smb_dlq
VisibilityTimeout: 0
SMBSNSTopic:
Type: AWS::SNS::Topic
Properties:
DisplayName: SMB
TopicName: SMB
functions:
SMBIngest:
handler: ingest.lambda_handler
description: ingest data coming from various sources into the postgres database
memorySize: 256
name: SMBIngest
timeout: 300
role:
Fn::GetAtt:
- SMBIngestRole
- Arn
environment:
DB_HOST: ******
DB_NAME: ****
DB_USER: ****
DB_PASSWORD: ****
SMBAPI:
handler: api.lambda_handler
description: api for sending and receiving raw data into and from the database
memorySize: 256
name: SMBAPI
timeout: 30
role:
Fn::GetAtt:
- SMBAPIRole
- Arn
environment:
DB_HOST: ******
DB_NAME: ****
DB_USER: ****
DB_PASSWORD: ****
events:
- http:
path: /
method: get
- http:
path: /
method: post
plugins:
- serverless-python-requirements
- serverless-pseudo-parameters
- serverless-localstack
custom:
pythonRequirements:
dockerizePip: non-linux
noDeploy: []
localstack:
debug: true
host: http://localhost
autostart: true
stages:
- local
docker logs (cleaned up a tad for readability). The line Resource SMBAPIRole need not be deployed seems fishy to me:
2020-02-07T00:51:56.955057791Z - Waiting for all LocalStack services to be ready
2020-02-07T00:51:57.122762375Z - 2020-02-07 00:51:57,122 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2020-02-07T00:51:57.125271265Z - 2020-02-07 00:51:57,125 INFO supervisord started with pid 14
2020-02-07T00:51:58.13173478Z - 2020-02-07 00:51:58,130 INFO spawned: 'dashboard' with pid 20
2020-02-07T00:51:58.138840548Z - 2020-02-07 00:51:58,138 INFO spawned: 'infra' with pid 21
2020-02-07T00:51:58.155339555Z - 2020-02-07 00:51:58,154 INFO success: dashboard entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2020-02-07T00:51:58.15568957Z - 2020-02-07 00:51:58,155 INFO exited: dashboard (exit status 0; expected)
2020-02-07T00:51:58.945694592Z - (. .venv/bin/activate; exec bin/localstack start --host)
2020-02-07T00:51:58.945718202Z - Starting local dev environment. CTRL-C to quit.
2020-02-07T00:51:59.571776808Z - 2020-02-07 00:51:59,571 INFO success: infra entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-02-07T00:52:03.946934372Z - 2020-02-07T00:52:03:INFO:localstack.services.install: Downloading and installing local KMS server. This may take some time.
2020-02-07T00:52:03.957774101Z - Waiting for all LocalStack services to be ready
2020-02-07T00:52:04.947264756Z - 2020-02-07T00:52:04:DEBUG:localstack.utils.common: Starting download from https://s3-eu-west-2.amazonaws.com/local-kms/localstack/v3/local-kms.alpine.bin to /opt/code/localstack/localstack/infra/kms/local-kms.linux.bin (13867077 bytes)
2020-02-07T00:52:05.947614967Z - 2020-02-07T00:52:05:DEBUG:localstack.utils.common: Writing 1048576 bytes (total 1048576) to /opt/code/localstack/localstack/infra/kms/local-kms.linux.bin
2020-02-07T00:52:06.947725344Z - 2020-02-07T00:52:06:DEBUG:localstack.utils.common: Writing 1048576 bytes (total 2097152) to /opt/code/localstack/localstack/infra/kms/local-kms.linux.bin
2020-02-07T00:52:06.94777653Z - 2020-02-07T00:52:06:DEBUG:localstack.utils.common: Writing 1048576 bytes (total 3145728) to /opt/code/localstack/localstack/infra/kms/local-kms.linux.bin
2020-02-07T00:52:06.947790172Z - 2020-02-07T00:52:06:DEBUG:localstack.utils.common: Writing 1048576 bytes (total 4194304) to /opt/code/localstack/localstack/infra/kms/local-kms.linux.bin
2020-02-07T00:52:06.947800829Z - 2020-02-07T00:52:06:DEBUG:localstack.utils.common: Writing 1048576 bytes (total 5242880) to /opt/code/localstack/localstack/infra/kms/local-kms.linux.bin
2020-02-07T00:52:06.947811273Z - 2020-02-07T00:52:06:DEBUG:localstack.utils.common: Writing 1048576 bytes (total 6291456) to /opt/code/localstack/localstack/infra/kms/local-kms.linux.bin
2020-02-07T00:52:06.947821308Z - 2020-02-07T00:52:06:DEBUG:localstack.utils.common: Writing 1048576 bytes (total 7340032) to /opt/code/localstack/localstack/infra/kms/local-kms.linux.bin
2020-02-07T00:52:06.947831425Z - 2020-02-07T00:52:06:DEBUG:localstack.utils.common: Writing 1048576 bytes (total 8388608) to /opt/code/localstack/localstack/infra/kms/local-kms.linux.bin
2020-02-07T00:52:07.948389577Z - Starting mock API Gateway (http port 4567)...
2020-02-07T00:52:07.948512734Z - 2020-02-07T00:52:07:DEBUG:localstack.utils.common: Writing 1048576 bytes (total 9437184) to /opt/code/localstack/localstack/infra/kms/local-kms.linux.bin
2020-02-07T00:52:07.948538449Z - 2020-02-07T00:52:07:DEBUG:localstack.utils.common: Writing 1048576 bytes (total 10485760) to /opt/code/localstack/localstack/infra/kms/local-kms.linux.bin
2020-02-07T00:52:07.948553669Z - 2020-02-07T00:52:07:DEBUG:localstack.utils.common: Writing 1048576 bytes (total 11534336) to /opt/code/localstack/localstack/infra/kms/local-kms.linux.bin
2020-02-07T00:52:07.948567812Z - 2020-02-07T00:52:07:DEBUG:localstack.utils.common: Writing 1048576 bytes (total 12582912) to /opt/code/localstack/localstack/infra/kms/local-kms.linux.bin
2020-02-07T00:52:07.948587222Z - 2020-02-07T00:52:07:DEBUG:localstack.utils.common: Writing 1048576 bytes (total 13631488) to /opt/code/localstack/localstack/infra/kms/local-kms.linux.bin
2020-02-07T00:52:07.948610536Z - 2020-02-07T00:52:07:DEBUG:localstack.utils.common: Writing 235589 bytes (total 13867077) to /opt/code/localstack/localstack/infra/kms/local-kms.linux.bin
2020-02-07T00:52:07.94862615Z - 2020-02-07T00:52:07:DEBUG:localstack.utils.common: Done downloading https://s3-eu-west-2.amazonaws.com/local-kms/localstack/v3/local-kms.alpine.bin, response code 200, total bytes 13867077
2020-02-07T00:52:07.948640574Z - 2020-02-07T00:52:07:DEBUG:localstack.utils.common: Cleaning up file handles for download of https://s3-eu-west-2.amazonaws.com/local-kms/localstack/v3/local-kms.alpine.bin
2020-02-07T00:52:07.948654379Z - 2020-02-07T00:52:07:INFO:localstack.multiserver: Starting multi API server process on port 51492
2020-02-07T00:52:08.948329256Z - Starting mock CloudFormation (http port 4581)...
2020-02-07T00:52:08.948352366Z - Starting mock CloudWatch (http port 4582)...
2020-02-07T00:52:08.948357195Z - Starting mock DynamoDB (http port 4569)...
2020-02-07T00:52:08.94836196Z - Starting mock DynamoDB Streams service (http port 4570)...
2020-02-07T00:52:08.948376091Z - Starting mock EC2 (http port 4597)...
2020-02-07T00:52:08.948380994Z - Starting mock ES service (http port 4578)...
2020-02-07T00:52:08.9483945Z - Starting mock CloudWatch Events (http port 4587)...
2020-02-07T00:52:08.948487345Z - Starting mock Firehose service (http port 4573)...
2020-02-07T00:52:08.948494748Z - Starting mock IAM (http port 4593)...
2020-02-07T00:52:08.948500073Z - Starting mock Kinesis (http port 4568)...
2020-02-07T00:52:08.948503925Z - Starting mock KMS (http port 4599)...
2020-02-07T00:52:08.94850789Z - Starting mock Lambda service (http port 4574)...
2020-02-07T00:52:08.948511969Z - Starting mock CloudWatch Logs (http port 4586)...
2020-02-07T00:52:08.948527436Z - Starting mock Redshift (http port 4577)...
2020-02-07T00:52:08.948532085Z - Starting mock Route53 (http port 4580)...
2020-02-07T00:52:08.948592606Z - Starting mock S3 (http port 4572)...
2020-02-07T00:52:08.948606788Z - Starting mock Secrets Manager (http port 4584)...
2020-02-07T00:52:08.948612146Z - INFO[2020-02-07 00:52:08.763] No file found at path /init/seed.yaml; skipping seeding.
2020-02-07T00:52:08.94865793Z - INFO[2020-02-07 00:52:08.763] Data will be stored in /tmp/local-kms
2020-02-07T00:52:08.948664666Z - INFO[2020-02-07 00:52:08.763] Local KMS started on 0.0.0.0:4555
2020-02-07T00:52:08.948669307Z - Starting mock SES (http port 4579)...
2020-02-07T00:52:08.948698772Z - Starting mock SNS (http port 4575)...
2020-02-07T00:52:08.948704953Z - Listening at http://:::4565
2020-02-07T00:52:08.948709248Z - Starting mock SQS (http port 4576)...
2020-02-07T00:52:08.948737594Z - Starting mock SSM (http port 4583)...
2020-02-07T00:52:08.948743454Z - Initializing DynamoDB Local with the following configuration:
2020-02-07T00:52:08.948771052Z - Port: 4564
2020-02-07T00:52:08.948801202Z - InMemory: true
2020-02-07T00:52:08.948830198Z - DbPath: null
2020-02-07T00:52:08.948858487Z - SharedDb: true
2020-02-07T00:52:08.948910055Z - shouldDelayTransientStatuses: false
2020-02-07T00:52:08.948942896Z - CorsParams: *
2020-02-07T00:52:08.948949836Z - Starting mock STS (http port 4592)...
2020-02-07T00:52:08.948980115Z -
2020-02-07T00:52:08.948986123Z - Starting mock StepFunctions (http port 4585)...
2020-02-07T00:52:08.949014625Z - 2020-02-07 00:52:08,611:API: * Running on http://0.0.0.0:4566/ (Press CTRL+C to quit)
2020-02-07T00:52:08.94904447Z - 2020-02-07 00:52:08,611:API: * Running on http://0.0.0.0:4566/ (Press CTRL+C to quit)
2020-02-07T00:52:08.949050586Z - 2020-02-07 00:52:08,611:API: * Running on http://0.0.0.0:4566/ (Press CTRL+C to quit)
2020-02-07T00:52:08.949078611Z - 2020-02-07 00:52:08,619:API: * Running on http://0.0.0.0:4582/ (Press CTRL+C to quit)
2020-02-07T00:52:08.949084273Z - 2020-02-07 00:52:08,619:API: * Running on http://0.0.0.0:4582/ (Press CTRL+C to quit)
2020-02-07T00:52:08.949113384Z - 2020-02-07 00:52:08,619:API: * Running on http://0.0.0.0:4582/ (Press CTRL+C to quit)
2020-02-07T00:52:08.949119276Z - 2020-02-07 00:52:08,637:API: * Running on http://0.0.0.0:4559/ (Press CTRL+C to quit)
2020-02-07T00:52:08.949148412Z - 2020-02-07 00:52:08,637:API: * Running on http://0.0.0.0:4559/ (Press CTRL+C to quit)
2020-02-07T00:52:08.949154619Z - 2020-02-07 00:52:08,637:API: * Running on http://0.0.0.0:4559/ (Press CTRL+C to quit)
2020-02-07T00:52:09.949403542Z - Step Functions Local
2020-02-07T00:52:09.949427861Z - Version: 1.4.0
2020-02-07T00:52:09.949433394Z - Build: 2019-09-18
2020-02-07T00:52:09.949444Z - 2020-02-07 00:52:09.757: Configure [Account] to [000000000000]
2020-02-07T00:52:09.949449429Z - 2020-02-07 00:52:09.759: Configure [Region] to [us-east-1]
2020-02-07T00:52:09.949454249Z - 2020-02-07 00:52:09.765: Configure [Lambda Endpoint] to [http://localhost:4574]
2020-02-07T00:52:09.949516256Z - 2020-02-07 00:52:09.766: Configure [DynamoDB Endpoint] to [http://localhost:4569]
2020-02-07T00:52:09.94954785Z - 2020-02-07 00:52:09.767: Configure [SQS Endpoint] to [http://localhost:4576]
2020-02-07T00:52:09.949552939Z - 2020-02-07 00:52:09.767: Configure [SNS Endpoint] to [http://localhost:4575]
2020-02-07T00:52:09.949557552Z - 2020-02-07 00:52:09.768: Configure [Step Functions Endpoint] to [http://localhost:4585]
2020-02-07T00:52:09.949561317Z - 2020-02-07 00:52:09.797: Loaded credentials from environment
2020-02-07T00:52:09.949565808Z - 2020-02-07 00:52:09.799: Starting server on port 8083 with account 000000000000, region us-east-1
2020-02-07T00:52:10.949860515Z - 00:52:10.603 [main] INFO org.elasticmq.server.Main$ - Starting ElasticMQ server (0.15.2) ...
2020-02-07T00:52:10.97619659Z - Waiting for all LocalStack services to be ready
2020-02-07T00:52:11.949996403Z - Feb 07, 2020 12:52:11 AM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry
2020-02-07T00:52:11.950024308Z - WARNING: SSL Certificate checking for endpoints has been explicitly disabled.
2020-02-07T00:52:11.950029886Z - Feb 07, 2020 12:52:11 AM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry
2020-02-07T00:52:11.950034201Z - WARNING: SSL Certificate checking for endpoints has been explicitly disabled.
2020-02-07T00:52:11.950038104Z - Feb 07, 2020 12:52:11 AM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry
2020-02-07T00:52:11.950042824Z - WARNING: SSL Certificate checking for endpoints has been explicitly disabled.
2020-02-07T00:52:11.950047022Z - Feb 07, 2020 12:52:11 AM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry
2020-02-07T00:52:11.950051265Z - WARNING: SSL Certificate checking for endpoints has been explicitly disabled.
2020-02-07T00:52:11.950055235Z - Feb 07, 2020 12:52:11 AM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry
2020-02-07T00:52:11.95005945Z - WARNING: SSL Certificate checking for endpoints has been explicitly disabled.
2020-02-07T00:52:11.950119822Z - Feb 07, 2020 12:52:11 AM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry
2020-02-07T00:52:11.950129577Z - WARNING: SSL Certificate checking for endpoints has been explicitly disabled.
2020-02-07T00:52:11.950134144Z - Feb 07, 2020 12:52:11 AM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry
2020-02-07T00:52:11.950138553Z - WARNING: SSL Certificate checking for endpoints has been explicitly disabled.
2020-02-07T00:52:11.95014265Z - Feb 07, 2020 12:52:11 AM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry
2020-02-07T00:52:11.95014723Z - WARNING: SSL Certificate checking for endpoints has been explicitly disabled.
2020-02-07T00:52:11.950162016Z - 00:52:11.665 [elasticmq-akka.actor.default-dispatcher-2] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started
2020-02-07T00:52:11.950166803Z - Feb 07, 2020 12:52:11 AM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry
2020-02-07T00:52:11.950170959Z - WARNING: SSL Certificate checking for endpoints has been explicitly disabled.
2020-02-07T00:52:13.966897608Z - 00:52:13.018 [elasticmq-akka.actor.default-dispatcher-2] INFO o.e.rest.sqs.TheSQSRestServerBuilder - Started SQS rest server, bind address 0.0.0.0:4561, visible server address http://localhost:4576
2020-02-07T00:52:13.966983183Z - 00:52:13.019 [main] INFO org.elasticmq.server.Main$ - === ElasticMQ server (0.15.2) started in 3819 ms ===
2020-02-07T00:52:17.967530583Z - 2020-02-07 00:52:17,001:API: 127.0.0.1 - - [07/Feb/2020 00:52:17] "GET / HTTP/1.1" 200 -
2020-02-07T00:52:17.967555245Z - Ready.
2020-02-07T00:53:11.97360138Z - 2020-02-07 00:53:11,260:API: 127.0.0.1 - - [07/Feb/2020 00:53:11] "GET /smb-local-serverlessdeploymentbucket-qf5pr0z1zcej?location HTTP/1.1" 404 -
2020-02-07T00:53:11.97366737Z - 2020-02-07 00:53:11,271:API: 127.0.0.1 - - [07/Feb/2020 00:53:11] "HEAD /smb-local-serverlessdeploymentbucket-qf5pr0z1zcej HTTP/1.1" 404 -
2020-02-07T00:53:11.973685232Z - 2020-02-07 00:53:11,285:API: 127.0.0.1 - - [07/Feb/2020 00:53:11] "PUT /smb-local-serverlessdeploymentbucket-qf5pr0z1zcej HTTP/1.1" 200 -
2020-02-07T00:53:11.973698955Z - 2020-02-07T00:53:11:DEBUG:localstack.services.cloudformation.cloudformation_listener: Error response from CloudFormation (400) POST /: b'<ErrorResponse xmlns="http://cloudformation.amazonaws.com/doc/2010-05-15/">\n <Error>\n <Type>Sender</Type>\n <Code>ValidationError</Code>\n <Message>Stack with id smb-local does not exist</Message>\n </Error>\n <RequestId>cf4c737e-5ae2-11e4-a7c9-ad44eEXAMPLE</RequestId>\n</ErrorResponse>'
2020-02-07T00:53:11.973724471Z - 2020-02-07T00:53:11:DEBUG:localstack.services.cloudformation.cloudformation_starter: Currently updating stack resource smb-local/ServerlessDeploymentBucket: None
2020-02-07T00:53:11.973742997Z - 2020-02-07T00:53:11:DEBUG:localstack.services.cloudformation.cloudformation_starter: Deploying CloudFormation resource (update=False, exists=False, updateable=False): {'Type': 'AWS::S3::Bucket', 'Properties': {'BucketEncryption': {'ServerSideEncryptionConfiguration': [{'ServerSideEncryptionByDefault': {'SSEAlgorithm': 'AES256'}}]}, 'BucketName': 'smb-local-ServerlessDeploymentBucket-QF5PR0Z1ZCEJ'}}
2020-02-07T00:53:11.973762275Z - 2020-02-07T00:53:11:DEBUG:localstack.utils.cloudformation.template_deployer: Running action "create" for resource type "S3::Bucket" id "ServerlessDeploymentBucket"
2020-02-07T00:53:11.973775448Z - 2020-02-07T00:53:11:DEBUG:localstack.utils.cloudformation.template_deployer: Request for resource type "S3::Bucket" in region us-east-1: create_bucket {'Bucket': 'smb-local-ServerlessDeploymentBucket-QF5PR0Z1ZCEJ', 'ACL': 'public-read', 'CreateBucketConfiguration': {'LocationConstraint': 'us-east-1'}}
2020-02-07T00:53:11.973790416Z - 2020-02-07T00:53:11:DEBUG:localstack.services.cloudformation.cloudformation_starter: Currently updating stack resource smb-local/ServerlessDeploymentBucketPolicy: None
2020-02-07T00:53:11.973837737Z - 2020-02-07T00:53:11:WARNING:moto: No Moto CloudFormation support for AWS::S3::BucketPolicy
2020-02-07T00:53:16.975021481Z - 2020-02-07 00:53:16,480:API: 127.0.0.1 - - [07/Feb/2020 00:53:16] "GET /smb-local-serverlessdeploymentbucket-qf5pr0z1zcej?list-type=2&prefix=serverless%2Fsmb%2Flocal HTTP/1.1" 200 -
2020-02-07T00:53:16.975053725Z - 2020-02-07 00:53:16,546:API: 127.0.0.1 - - [07/Feb/2020 00:53:16] "PUT /smb-local-serverlessdeploymentbucket-qf5pr0z1zcej/serverless/smb/local/1581036790554-2020-02-07T00%3A53%3A10.554Z/compiled-cloudformation-template.json HTTP/1.1" 200 -
2020-02-07T00:53:16.975074457Z - 2020-02-07 00:53:16,719:API: 127.0.0.1 - - [07/Feb/2020 00:53:16] "POST /smb-local-serverlessdeploymentbucket-qf5pr0z1zcej/serverless/smb/local/1581036790554-2020-02-07T00%3A53%3A10.554Z/smb.zip?uploads HTTP/1.1" 200 -
2020-02-07T00:53:16.97508091Z - 2020-02-07 00:53:16,796:API: 127.0.0.1 - - [07/Feb/2020 00:53:16] "PUT /smb-local-serverlessdeploymentbucket-qf5pr0z1zcej/serverless/smb/local/1581036790554-2020-02-07T00%3A53%3A10.554Z/smb.zip?partNumber=1&uploadId=kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S%2F4IPA HTTP/1.1" 200 -
2020-02-07T00:53:16.975086633Z - 2020-02-07 00:53:16,808:API: 127.0.0.1 - - [07/Feb/2020 00:53:16] "PUT /smb-local-serverlessdeploymentbucket-qf5pr0z1zcej/serverless/smb/local/1581036790554-2020-02-07T00%3A53%3A10.554Z/smb.zip?partNumber=2&uploadId=kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S%2F4IPA HTTP/1.1" 200 -
2020-02-07T00:53:16.975092435Z - 2020-02-07 00:53:16,813:API: 127.0.0.1 - - [07/Feb/2020 00:53:16] "PUT /smb-local-serverlessdeploymentbucket-qf5pr0z1zcej/serverless/smb/local/1581036790554-2020-02-07T00%3A53%3A10.554Z/smb.zip?partNumber=3&uploadId=kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S%2F4IPA HTTP/1.1" 200 -
2020-02-07T00:53:16.975097418Z - 2020-02-07 00:53:16,922:API: 127.0.0.1 - - [07/Feb/2020 00:53:16] "PUT /smb-local-serverlessdeploymentbucket-qf5pr0z1zcej/serverless/smb/local/1581036790554-2020-02-07T00%3A53%3A10.554Z/smb.zip?partNumber=5&uploadId=kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S%2F4IPA HTTP/1.1" 200 -
2020-02-07T00:53:16.975103796Z - 2020-02-07 00:53:16,939:API: 127.0.0.1 - - [07/Feb/2020 00:53:16] "PUT /smb-local-serverlessdeploymentbucket-qf5pr0z1zcej/serverless/smb/local/1581036790554-2020-02-07T00%3A53%3A10.554Z/smb.zip?partNumber=6&uploadId=kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S%2F4IPA HTTP/1.1" 200 -
2020-02-07T00:53:16.975109233Z - 2020-02-07 00:53:16,948:API: 127.0.0.1 - - [07/Feb/2020 00:53:16] "PUT /smb-local-serverlessdeploymentbucket-qf5pr0z1zcej/serverless/smb/local/1581036790554-2020-02-07T00%3A53%3A10.554Z/smb.zip?partNumber=4&uploadId=kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S%2F4IPA HTTP/1.1" 200 -
2020-02-07T00:53:16.975114473Z - 2020-02-07 00:53:16,958:API: 127.0.0.1 - - [07/Feb/2020 00:53:16] "PUT /smb-local-serverlessdeploymentbucket-qf5pr0z1zcej/serverless/smb/local/1581036790554-2020-02-07T00%3A53%3A10.554Z/smb.zip?partNumber=7&uploadId=kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S%2F4IPA HTTP/1.1" 200 -
2020-02-07T00:53:16.975119231Z - 2020-02-07T00:53:16:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:SMBIngest
2020-02-07T00:53:16.975131981Z - 2020-02-07T00:53:16:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:SMBAPI
2020-02-07T00:53:17.975162862Z - 2020-02-07 00:53:17,000:API: 127.0.0.1 - - [07/Feb/2020 00:53:17] "PUT /smb-local-serverlessdeploymentbucket-qf5pr0z1zcej/serverless/smb/local/1581036790554-2020-02-07T00%3A53%3A10.554Z/smb.zip?partNumber=8&uploadId=kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S%2F4IPA HTTP/1.1" 200 -
2020-02-07T00:53:17.975241544Z - 2020-02-07 00:53:17,008:API: 127.0.0.1 - - [07/Feb/2020 00:53:17] "PUT /smb-local-serverlessdeploymentbucket-qf5pr0z1zcej/serverless/smb/local/1581036790554-2020-02-07T00%3A53%3A10.554Z/smb.zip?partNumber=9&uploadId=kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S%2F4IPA HTTP/1.1" 200 -
2020-02-07T00:53:17.975272233Z - 2020-02-07 00:53:17,115:API: 127.0.0.1 - - [07/Feb/2020 00:53:17] "POST /smb-local-serverlessdeploymentbucket-qf5pr0z1zcej/serverless/smb/local/1581036790554-2020-02-07T00%3A53%3A10.554Z/smb.zip?uploadId=kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S%2F4IPA HTTP/1.1" 200 -
2020-02-07T00:53:17.975295969Z - 2020-02-07 00:53:17,138:API: 127.0.0.1 - - [07/Feb/2020 00:53:17] "GET /smb-local-serverlessdeploymentbucket-qf5pr0z1zcej/serverless/smb/local/1581036790554-2020-02-07T00%3A53%3A10.554Z/compiled-cloudformation-template.json HTTP/1.1" 200 -
2020-02-07T00:53:17.975319053Z - 2020-02-07 00:53:17,225:API: 127.0.0.1 - - [07/Feb/2020 00:53:17] "GET /smb-local-serverlessdeploymentbucket-qf5pr0z1zcej/serverless/smb/local/1581036790554-2020-02-07T00%3A53%3A10.554Z/smb.zip HTTP/1.1" 200 -
2020-02-07T00:53:17.975340738Z - 2020-02-07T00:53:17:DEBUG:localstack.services.cloudformation.cloudformation_starter: Currently updating stack resource smb-local/SMBAPILambdaVersiongpdBKHiKY3R5H134yG1xesIyaczo4pBeK4qyOdk9nQ: None
2020-02-07T00:53:17.975360077Z - 2020-02-07T00:53:17:DEBUG:localstack.services.cloudformation.cloudformation_starter: Currently updating stack resource smb-local/SMBAPILambdaFunction: None
2020-02-07T00:53:17.975377194Z - 2020-02-07T00:53:17:DEBUG:localstack.services.cloudformation.cloudformation_starter: Currently updating stack resource smb-local/SMBAPIRole: None
2020-02-07T00:53:17.975395449Z - 2020-02-07T00:53:17:DEBUG:localstack.services.cloudformation.cloudformation_starter: Currently updating stack resource smb-local/SMBIngestInvokePolicy: None
2020-02-07T00:53:17.975417753Z - 2020-02-07T00:53:17:WARNING:moto: No Moto CloudFormation support for AWS::IAM::ManagedPolicy
2020-02-07T00:53:17.975436321Z - 2020-02-07T00:53:17:DEBUG:localstack.services.cloudformation.cloudformation_starter: Currently updating stack resource smb-local/SMBDLQPolicy: None
2020-02-07T00:53:17.975456416Z - 2020-02-07T00:53:17:WARNING:moto: No Moto CloudFormation support for AWS::IAM::ManagedPolicy
2020-02-07T00:53:17.975473963Z - 2020-02-07T00:53:17:DEBUG:localstack.services.cloudformation.cloudformation_starter: Currently updating stack resource smb-local/SMBVPCPolicy: None
2020-02-07T00:53:17.975493916Z - 2020-02-07T00:53:17:WARNING:moto: No Moto CloudFormation support for AWS::IAM::ManagedPolicy
2020-02-07T00:53:17.975515336Z - 2020-02-07T00:53:17:DEBUG:localstack.services.cloudformation.cloudformation_starter: Resource SMBAPIRole need not be deployed (is_updateable=False): {'Type': 'AWS::IAM::Role', 'Properties': {'Path': '/smb/', 'RoleName': 'SMBAPI', 'AssumeRolePolicyDocument': {'Version': '2012-10-17', 'Statement': [{'Effect': 'Allow', 'Principal': {'Service': ['lambda.amazonaws.com']}, 'Action': 'sts:AssumeRole'}]}, 'ManagedPolicyArns': ['arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole', None, None, None]}} True
2020-02-07T00:53:17.975587555Z - 2020-02-07T00:53:17:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:SMBAPI
2020-02-07T00:53:17.975611363Z - 2020-02-07T00:53:17:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "SMBAPILambdaFunction": An error occurred (InvalidParameterValueException) when calling the None operation: The role defined for the function cannot be assumed by Lambda. Traceback (most recent call last):
2020-02-07T00:53:17.975627178Z - File "/opt/code/localstack/.venv/lib/python3.7/site-packages/moto/awslambda/models.py", line 692, in put_function
2020-02-07T00:53:17.97564002Z - iam_backend.get_role_by_arn(fn.role)
2020-02-07T00:53:17.975655997Z - File "/opt/code/localstack/.venv/lib/python3.7/site-packages/moto/iam/models.py", line 1109, in get_role_by_arn
2020-02-07T00:53:17.97567526Z - raise IAMNotFoundException("Role {0} not found".format(arn))
2020-02-07T00:53:17.975693988Z - moto.iam.exceptions.IAMNotFoundException: 404 Not Found: <?xml version="1.0" encoding="UTF-8"?>
2020-02-07T00:53:17.975708116Z - <ErrorResponse>
2020-02-07T00:53:17.975719374Z - <Errors>
2020-02-07T00:53:17.97573051Z - <Error>
2020-02-07T00:53:17.975743752Z - <Code>NoSuchEntity</Code>
2020-02-07T00:53:17.975760541Z - <Message>Role arn:aws:iam::123456789012:role/smb-local-SMBAPIRole-QDF8A0SDADGF not found</Message>
2020-02-07T00:53:17.975781136Z -
2020-02-07T00:53:17.975792977Z - </Error>
2020-02-07T00:53:17.975803769Z - </Errors>
2020-02-07T00:53:17.975814638Z - <RequestID>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</RequestID>
2020-02-07T00:53:17.975826535Z - </ErrorResponse>
2020-02-07T00:53:17.975837812Z -
2020-02-07T00:53:17.975854547Z - During handling of the above exception, another exception occurred:
2020-02-07T00:53:17.975872538Z -
2020-02-07T00:53:17.975883791Z - Traceback (most recent call last):
2020-02-07T00:53:17.975894602Z - File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 181, in parse_and_create_resource
2020-02-07T00:53:17.975906607Z - return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
2020-02-07T00:53:17.975917752Z - File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 238, in _parse_and_create_resource
2020-02-07T00:53:17.975947432Z - resource_json_arns_fixed, resources_map, region_name)
2020-02-07T00:53:17.975965211Z - File "/opt/code/localstack/.venv/lib/python3.7/site-packages/moto/cloudformation/parsing.py", line 339, in parse_and_create_resource
2020-02-07T00:53:17.975979085Z - resource_name, resource_json, region_name
2020-02-07T00:53:17.975990062Z - File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 515, in Lambda_create_from_cloudformation_json
2020-02-07T00:53:17.97600202Z - return Lambda_create_from_cloudformation_json_orig(resource_name, cloudformation_json, region_name)
2020-02-07T00:53:17.976013232Z - File "/opt/code/localstack/.venv/lib/python3.7/site-packages/moto/awslambda/models.py", line 516, in create_from_cloudformation_json
2020-02-07T00:53:17.976029178Z - fn = backend.create_function(spec)
2020-02-07T00:53:17.976046132Z - File "/opt/code/localstack/.venv/lib/python3.7/site-packages/moto/awslambda/models.py", line 824, in create_function
2020-02-07T00:53:17.976061294Z - self._lambdas.put_function(fn)
2020-02-07T00:53:17.976072047Z - File "/opt/code/localstack/.venv/lib/python3.7/site-packages/moto/awslambda/models.py", line 695, in put_function
2020-02-07T00:53:17.976084112Z - "The role defined for the function cannot be assumed by Lambda."
2020-02-07T00:53:17.976095713Z - moto.awslambda.exceptions.InvalidParameterValueException: An error occurred (InvalidParameterValueException) when calling the None operation: The role defined for the function cannot be assumed by Lambda.
2020-02-07T00:53:17.976109555Z -
2020-02-07T00:53:17.976128952Z - 2020-02-07T00:53:17:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "SMBAPILambdaVersiongpdBKHiKY3R5H134yG1xesIyaczo4pBeK4qyOdk9nQ": An error occurred (InvalidParameterValueException) when calling the None operation: The role defined for the function cannot be assumed by Lambda. Traceback (most recent call last):
2020-02-07T00:53:17.976150878Z - File "/opt/code/localstack/.venv/lib/python3.7/site-packages/moto/awslambda/models.py", line 692, in put_function
2020-02-07T00:53:17.976163178Z - iam_backend.get_role_by_arn(fn.role)
2020-02-07T00:53:17.976174477Z - File "/opt/code/localstack/.venv/lib/python3.7/site-packages/moto/iam/models.py", line 1109, in get_role_by_arn
2020-02-07T00:53:17.976186249Z - raise IAMNotFoundException("Role {0} not found".format(arn))
2020-02-07T00:53:17.976197685Z - moto.iam.exceptions.IAMNotFoundException: 404 Not Found: <?xml version="1.0" encoding="UTF-8"?>
2020-02-07T00:53:17.976217238Z - <ErrorResponse>
2020-02-07T00:53:17.97623386Z - <Errors>
2020-02-07T00:53:17.97624577Z - <Error>
2020-02-07T00:53:17.976256553Z - <Code>NoSuchEntity</Code>
2020-02-07T00:53:17.976267744Z - <Message>Role arn:aws:iam::123456789012:role/smb-local-SMBAPIRole-QDF8A0SDADGF not found</Message>
2020-02-07T00:53:17.976279932Z -
2020-02-07T00:53:17.976304719Z - </Error>
2020-02-07T00:53:17.976323277Z - </Errors>
2020-02-07T00:53:17.976335338Z - <RequestID>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</RequestID>
2020-02-07T00:53:17.976347354Z - </ErrorResponse>
2020-02-07T00:53:17.97635797Z -
2020-02-07T00:53:17.976368107Z - During handling of the above exception, another exception occurred:
2020-02-07T00:53:17.976379713Z -
2020-02-07T00:53:17.976395827Z - Traceback (most recent call last):
2020-02-07T00:53:17.976413549Z - File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 181, in parse_and_create_resource
2020-02-07T00:53:17.976426402Z - return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
2020-02-07T00:53:17.976437577Z - File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 207, in _parse_and_create_resource
2020-02-07T00:53:17.976449279Z - resource_tuple = parsing.parse_resource(logical_id, resource_json, resources_map)
2020-02-07T00:53:17.976461695Z - File "/opt/code/localstack/.venv/lib/python3.7/site-packages/moto/cloudformation/parsing.py", line 307, in parse_resource
2020-02-07T00:53:17.976475752Z - resource_json = clean_json(resource_json, resources_map)
2020-02-07T00:53:17.976493216Z - File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 160, in clean_json
2020-02-07T00:53:17.976509686Z - result = clean_json_orig(resource_json, resources_map)
2020-02-07T00:53:17.976522157Z - File "/opt/code/localstack/.venv/lib/python3.7/site-packages/moto/cloudformation/parsing.py", line 252, in clean_json
2020-02-07T00:53:17.976534229Z - cleaned_val = clean_json(value, resources_map)
2020-02-07T00:53:17.976544924Z - File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 160, in clean_json
2020-02-07T00:53:17.97655641Z - result = clean_json_orig(resource_json, resources_map)
2020-02-07T00:53:17.976573324Z - File "/opt/code/localstack/.venv/lib/python3.7/site-packages/moto/cloudformation/parsing.py", line 252, in clean_json
2020-02-07T00:53:17.976591877Z - cleaned_val = clean_json(value, resources_map)
2020-02-07T00:53:17.976603596Z - File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 160, in clean_json
2020-02-07T00:53:17.976615052Z - result = clean_json_orig(resource_json, resources_map)
2020-02-07T00:53:17.976625593Z - File "/opt/code/localstack/.venv/lib/python3.7/site-packages/moto/cloudformation/parsing.py", line 148, in clean_json
2020-02-07T00:53:17.976637005Z - resource = resources_map[resource_json["Ref"]]
2020-02-07T00:53:17.976650029Z - File "/opt/code/localstack/.venv/lib/python3.7/site-packages/moto/cloudformation/parsing.py", line 465, in __getitem__
2020-02-07T00:53:17.976668744Z - resource_logical_id, resource_json, self, self._region_name
2020-02-07T00:53:17.976694437Z - File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 181, in parse_and_create_resource
2020-02-07T00:53:17.976707513Z - return _parse_and_create_resource(logical_id, resource_json, resources_map, region_name)
2020-02-07T00:53:17.976718728Z - File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 238, in _parse_and_create_resource
2020-02-07T00:53:17.976730446Z - resource_json_arns_fixed, resources_map, region_name)
2020-02-07T00:53:17.97674494Z - File "/opt/code/localstack/.venv/lib/python3.7/site-packages/moto/cloudformation/parsing.py", line 339, in parse_and_create_resource
2020-02-07T00:53:17.976764612Z - resource_name, resource_json, region_name
2020-02-07T00:53:17.976779119Z - File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_starter.py", line 515, in Lambda_create_from_cloudformation_json
2020-02-07T00:53:17.976791546Z - return Lambda_create_from_cloudformation_json_orig(resource_name, cloudformation_json, region_name)
2020-02-07T00:53:17.976802588Z - File "/opt/code/localstack/.venv/lib/python3.7/site-packages/moto/awslambda/models.py", line 516, in create_from_cloudformation_json
2020-02-07T00:53:17.976814099Z - fn = backend.create_function(spec)
2020-02-07T00:53:17.976827377Z - File "/opt/code/localstack/.venv/lib/python3.7/site-packages/moto/awslambda/models.py", line 824, in create_function
2020-02-07T00:53:17.976846541Z - self._lambdas.put_function(fn)
2020-02-07T00:53:17.976863224Z - File "/opt/code/localstack/.venv/lib/python3.7/site-packages/moto/awslambda/models.py", line 695, in put_function
2020-02-07T00:53:17.976875588Z - "The role defined for the function cannot be assumed by Lambda."
2020-02-07T00:53:17.976887261Z - moto.awslambda.exceptions.InvalidParameterValueException: An error occurred (InvalidParameterValueException) when calling the None operation: The role defined for the function cannot be assumed by Lambda.
2020-02-07T00:53:17.976899369Z -
2020-02-07T00:53:17.976909586Z - 2020-02-07T00:53:17:DEBUG:localstack.services.cloudformation.cloudformation_listener: Error response from CloudFormation (400) POST /: b'The role defined for the function cannot be assumed by Lambda.'
output from running SLS_DEBUG=true sls deploy --stage=local --region=us-east-1:
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 requirements
Serverless: Load command requirements:clean
Serverless: Load command requirements:install
Serverless: Load command requirements:cleanCache
Serverless: config.options_stage: local
Serverless: serverless.service.custom.stage: undefined
Serverless: serverless.service.provider.stage: dev
Serverless: config.stage: local
Serverless: Using serverless-localstack
Serverless: Reconfiguring service apigateway to use http://localhost:4567
Serverless: Reconfiguring service cloudformation to use http://localhost:4581
Serverless: Reconfiguring service cloudwatch to use http://localhost:4582
Serverless: Reconfiguring service lambda to use http://localhost:4574
Serverless: Reconfiguring service dynamodb to use http://localhost:4569
Serverless: Reconfiguring service kinesis to use http://localhost:4568
Serverless: Reconfiguring service route53 to use http://localhost:4580
Serverless: Reconfiguring service firehose to use http://localhost:4573
Serverless: Reconfiguring service stepfunctions to use http://localhost:4585
Serverless: Reconfiguring service es to use http://localhost:4578
Serverless: Reconfiguring service s3 to use http://localhost:4572
Serverless: Reconfiguring service ses to use http://localhost:4579
Serverless: Reconfiguring service sns to use http://localhost:4575
Serverless: Reconfiguring service sqs to use http://localhost:4576
Serverless: Reconfiguring service sts to use http://localhost:4592
Serverless: Reconfiguring service iam to use http://localhost:4593
Serverless: Reconfiguring service ssm to use http://localhost:4583
Serverless: Reconfiguring service rds to use http://localhost:4594
Serverless: Reconfiguring service ec2 to use http://localhost:4597
Serverless: Reconfiguring service elasticache to use http://localhost:4598
Serverless: Reconfiguring service kms to use http://localhost:4599
Serverless: Reconfiguring service secretsmanager to use http://localhost:4584
Serverless: Reconfiguring service logs to use http://localhost:4586
Serverless: Reconfiguring service cloudwatchlogs to use http://localhost:4586
Serverless: Reconfiguring service iot to use http://localhost:4589
Serverless: Reconfiguring service cognito-idp to use http://localhost:4590
Serverless: Reconfiguring service cognito-identity to use http://localhost:4591
Serverless: Reconfiguring service ecs to use http://localhost:4601
Serverless: Reconfiguring service eks to use http://localhost:4602
Serverless: Reconfiguring service xray to use http://localhost:4603
Serverless: Reconfiguring service appsync to use http://localhost:4605
Serverless: Reconfiguring service cloudfront to use http://localhost:4606
Serverless: Reconfiguring service athena to use http://localhost:4607
Serverless: Warning: Unable to find plugin named: TypeScriptPlugin
Serverless: Load command deploy
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: config.options_stage: local
Serverless: serverless.service.custom.stage: undefined
Serverless: serverless.service.provider.stage: dev
Serverless: config.stage: local
Serverless: config.options_stage: local
Serverless: serverless.service.custom.stage: undefined
Serverless: serverless.service.provider.stage: dev
Serverless: config.stage: local
Serverless: Starting LocalStack in Docker. This can take a while.
Serverless: Checking state of LocalStack container 27361dc0c7ee
Serverless: Checking state of LocalStack container 27361dc0c7ee
Serverless: Checking state of LocalStack container 27361dc0c7ee
Serverless: Checking state of LocalStack container 27361dc0c7ee
Serverless: Checking state of LocalStack container 27361dc0c7ee
Serverless: Invoke aws:common:cleanupTempDir
Serverless: Generated requirements from /home/andrew/src/smb/aws/requirements.txt in /home/andrew/src/smb/aws/.serverless/requirements.txt...
Serverless: Using static cache of requirements found at /home/andrew/.cache/serverless-python-requirements/e7ff25d7a35950675ca94b5a47621519e0f7630ca44fde28ffc75bbedceb460f_slspyc ...
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Injecting required Python packages to package...
Serverless: Invoke aws:package:finalize
AWS Pseudo Parameters
Skipping automatic replacement of regions with account region!
Serverless: Invoke aws:common:moveArtifactsToPackage
Serverless: Invoke aws:common:validate
Serverless: Invoke aws:deploy:deploy
Serverless: [AWS cloudformation 400 0.042s 0 retries] describeStacks({ StackName: 'smb-local' })
Serverless: Creating Stack...
Serverless: [AWS cloudformation 200 0.11s 0 retries] createStack({ StackName: 'smb-local',
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: 'local' }, [length]: 1 ] })
Serverless: Checking Stack create progress...
Serverless: [AWS cloudformation 200 0.086s 0 retries] describeStackEvents({ StackName:
'arn:aws:cloudformation:us-east-1:000000000000:stack/smb-local/949a606e-5d11-4205-87b2-34a0bc8e163d' })
.
Serverless: Stack create finished...
Serverless: [AWS cloudformation 200 0.019s 0 retries] describeStackResource({ StackName: 'smb-local',
LogicalResourceId: 'ServerlessDeploymentBucket' })
Serverless: [AWS s3 200 0.025s 0 retries] listObjectsV2({ Bucket: 'smb-local-ServerlessDeploymentBucket-QF5PR0Z1ZCEJ',
Prefix: 'serverless/smb/local' })
Serverless: [AWS lambda 404 0.012s 0 retries] getFunction({ FunctionName: 'SMBAPI' })
Serverless: [AWS lambda 404 0.018s 0 retries] getFunction({ FunctionName: 'SMBIngest' })
Serverless: [AWS sts 200 0.013s 0 retries] getCallerIdentity({})
Serverless: Uploading CloudFormation file to S3...
Serverless: [AWS s3 200 0.018s 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 ... >,
Bucket: 'smb-local-ServerlessDeploymentBucket-QF5PR0Z1ZCEJ',
Key:
'serverless/smb/local/1581036790554-2020-02-07T00:53:10.554Z/compiled-cloudformation-template.json',
ContentType: 'application/json',
Metadata:
{ filesha256: 'J2VaHZ/IGPr15nm3jiVqEQBledUbXHcqOUHf782TRbg=' } })
Serverless: Uploading artifacts...
Serverless: Uploading service smb.zip file to S3 (43.81 MB)...
Serverless: [AWS s3 200 0.063s 0 retries] createMultipartUpload({ Bucket: 'smb-local-ServerlessDeploymentBucket-QF5PR0Z1ZCEJ',
Key:
'serverless/smb/local/1581036790554-2020-02-07T00:53:10.554Z/smb.zip',
ContentType: 'application/zip',
Metadata:
{ filesha256: 'zqmbRnICyp4PnKNpJNZw+UuPxTaR8c6oF3/Ls45bzjs=' } })
Serverless: [AWS s3 200 0.082s 0 retries] uploadPart({ Body:
<Buffer 50 4b 03 04 0a 00 00 00 08 00 00 00 21 00 dd e3 32 c7 cf 02 00 00 1d 08 00 00 06 00 00 00 61 70 69 2e 70 79 ed 55 4d 4f 1b 31 10 bd e7 57 8c 90 90 77 ... >,
ContentLength: 5242880,
PartNumber: 1,
Bucket: 'smb-local-ServerlessDeploymentBucket-QF5PR0Z1ZCEJ',
Key:
'serverless/smb/local/1581036790554-2020-02-07T00:53:10.554Z/smb.zip',
UploadId: 'kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S/4IPA' })
Serverless: [AWS s3 200 0.104s 0 retries] uploadPart({ Body:
<Buffer a4 05 1f a9 4f 6f 6e 0a b5 c6 63 da fd 57 cc 39 d2 82 79 ad 72 ea 1b 5a 64 74 48 af 13 bf ae dc e5 c0 f8 e5 2b 07 7f 36 4d eb 06 8e 6c 41 8c df 4d 31 ... >,
ContentLength: 5242880,
PartNumber: 2,
Bucket: 'smb-local-ServerlessDeploymentBucket-QF5PR0Z1ZCEJ',
Key:
'serverless/smb/local/1581036790554-2020-02-07T00:53:10.554Z/smb.zip',
UploadId: 'kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S/4IPA' })
Serverless: [AWS s3 200 0.103s 0 retries] uploadPart({ Body:
<Buffer a3 c5 de 00 30 2f 9c c0 ef a5 31 18 f9 b0 8a 58 bd 78 e1 84 e3 e0 5c 62 cc f7 30 6f 5b 28 a2 68 92 f9 19 21 49 ef 72 ae 2e aa 8f 60 a3 ff f8 a9 15 26 ... >,
ContentLength: 5242880,
PartNumber: 3,
Bucket: 'smb-local-ServerlessDeploymentBucket-QF5PR0Z1ZCEJ',
Key:
'serverless/smb/local/1581036790554-2020-02-07T00:53:10.554Z/smb.zip',
UploadId: 'kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S/4IPA' })
Serverless: [AWS s3 200 0.107s 0 retries] uploadPart({ Body:
<Buffer fc d8 b9 80 01 f2 17 a2 53 82 4d ba 21 90 6e 08 7c 6e a0 66 7a 66 14 98 4a c8 e7 37 cf b8 00 e6 19 97 40 3b b7 4a fe 4d 0a ff 26 85 7f 93 c2 5f ae 47 ... >,
ContentLength: 5242880,
PartNumber: 5,
Bucket: 'smb-local-ServerlessDeploymentBucket-QF5PR0Z1ZCEJ',
Key:
'serverless/smb/local/1581036790554-2020-02-07T00:53:10.554Z/smb.zip',
UploadId: 'kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S/4IPA' })
Serverless: [AWS s3 200 0.114s 0 retries] uploadPart({ Body:
<Buffer 8f 65 3e f9 65 f5 7e cd 43 bd 6a e9 16 21 20 8f a0 78 36 83 7c 5d 5e a1 fd f3 f8 3b d9 3d 2e 4c 99 ad cf 0b 60 6c 67 94 18 ef af 74 77 a9 9f ec ee 1f ... >,
ContentLength: 5242880,
PartNumber: 6,
Bucket: 'smb-local-ServerlessDeploymentBucket-QF5PR0Z1ZCEJ',
Key:
'serverless/smb/local/1581036790554-2020-02-07T00:53:10.554Z/smb.zip',
UploadId: 'kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S/4IPA' })
Serverless: [AWS s3 200 0.163s 0 retries] uploadPart({ Body:
<Buffer e1 3b 48 27 43 bc 36 aa ac 9b 75 83 93 3f 61 07 49 0b 63 f2 eb 26 da 3c 63 ec 5e b9 7d b0 83 3c cc 10 af 0b 55 e2 95 07 8e 23 66 07 31 b2 cc 17 67 4b ... >,
ContentLength: 5242880,
PartNumber: 4,
Bucket: 'smb-local-ServerlessDeploymentBucket-QF5PR0Z1ZCEJ',
Key:
'serverless/smb/local/1581036790554-2020-02-07T00:53:10.554Z/smb.zip',
UploadId: 'kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S/4IPA' })
Serverless: [AWS s3 200 0.116s 0 retries] uploadPart({ Body:
<Buffer 10 5e f2 d3 e9 02 1e 68 4b 0c e6 c6 3f 55 7d 46 b2 97 ac cf d8 79 51 bd 7b 5d e8 25 f4 19 b1 97 55 7d c6 5a 1a c7 80 33 27 e8 b8 6c f7 31 c7 b1 db 7c ... >,
ContentLength: 5242880,
PartNumber: 7,
Bucket: 'smb-local-ServerlessDeploymentBucket-QF5PR0Z1ZCEJ',
Key:
'serverless/smb/local/1581036790554-2020-02-07T00:53:10.554Z/smb.zip',
UploadId: 'kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S/4IPA' })
Serverless: [AWS s3 200 0.073s 0 retries] uploadPart({ Body:
<Buffer b4 87 e7 d4 0b 15 e6 25 c3 ef 0b b1 a5 c2 e3 0f 09 f1 98 f2 c0 a2 b7 ea 2d 43 d4 78 ec 34 13 63 31 e0 04 80 b9 7b 5f a6 c1 43 72 90 34 7f 88 54 24 4d ... >,
ContentLength: 5242880,
PartNumber: 8,
Bucket: 'smb-local-ServerlessDeploymentBucket-QF5PR0Z1ZCEJ',
Key:
'serverless/smb/local/1581036790554-2020-02-07T00:53:10.554Z/smb.zip',
UploadId: 'kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S/4IPA' })
Serverless: [AWS s3 200 0.054s 0 retries] uploadPart({ Body:
<Buffer db 8f ef 3f 90 1c ec 3d 2d be 50 ae 1f 22 38 69 fa 03 a7 a4 5c 51 12 5e c7 49 5c de 91 32 23 9b 14 3c 3d b9 48 30 b2 de b0 92 5c d3 1a 8a 32 06 62 9d ... >,
ContentLength: 3993941,
PartNumber: 9,
Bucket: 'smb-local-ServerlessDeploymentBucket-QF5PR0Z1ZCEJ',
Key:
'serverless/smb/local/1581036790554-2020-02-07T00:53:10.554Z/smb.zip',
UploadId: 'kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S/4IPA' })
Serverless: [AWS s3 200 0.108s 0 retries] completeMultipartUpload({ MultipartUpload:
{ Parts:
[ { ETag: '"03cf443f8963f4478e83a0e6ee2cb9ba"', PartNumber: 1 },
{ ETag: '"caa47e6d7a5877490305188ff5776708"', PartNumber: 2 },
{ ETag: '"a650e102a1604628666cf0dd6f819c63"', PartNumber: 3 },
{ ETag: '"6b9863cc26e1b5a7254380540801f4ee"', PartNumber: 4 },
{ ETag: '"0e8efc81f3732e74d23e72f2be4591be"', PartNumber: 5 },
{ ETag: '"0aaca8b6a4898bc83eeebeae1ee588c7"', PartNumber: 6 },
{ ETag: '"7cc8bed8b86b63310d4867df8f3d0a34"', PartNumber: 7 },
{ ETag: '"9cf52134b4984274bdb14ea8f8ef647b"', PartNumber: 8 },
{ ETag: '"339ab4ad1863523012b0c660153cb1b4"', PartNumber: 9 },
[length]: 9 ] },
Bucket: 'smb-local-ServerlessDeploymentBucket-QF5PR0Z1ZCEJ',
Key:
'serverless/smb/local/1581036790554-2020-02-07T00:53:10.554Z/smb.zip',
UploadId: 'kQ5FosMNpslzZ4mlZk4qwkJjgy6pGSWUxNG3EWPXCKRsP648J60S/4IPA' })
Serverless: Validating template...
Serverless: Skipping template validation: Unsupported in Localstack
Serverless: Updating Stack...
Serverless: [AWS cloudformation 400 0.419s 0 retries] updateStack({ StackName: 'smb-local',
Capabilities: [ 'CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM', [length]: 2 ],
Parameters: [ [length]: 0 ],
TemplateURL:
'https://s3.amazonaws.com/smb-local-ServerlessDeploymentBucket-QF5PR0Z1ZCEJ/serverless/smb/local/1581036790554-2020-02-07T00:53:10.554Z/compiled-cloudformation-template.json',
Tags: [ { Key: 'STAGE', Value: 'local' }, [length]: 1 ] })
Serverless Error ---------------------------------------
ServerlessError: Bad Request
at promise.catch.err (/usr/local/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:329:27)
at process._tickCallback (internal/process/next_tick.js:68:7)
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: linux
Node Version: 10.16.3
Framework Version: 1.61.3
Plugin Version: 3.3.0
SDK Version: 2.3.0
Components Core Version: 1.1.2
Components CLI Version: 1.4.0
serverless-localstack@0.4.24
docker image digest: dbcb1092a639efaf0b5c236bf81e393008016ef9d86a97d1da765a13a2e20fad
Please let me know if there's any other info I can provide.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels