status
stringclasses
1 value
repo_name
stringclasses
13 values
repo_url
stringclasses
13 values
issue_id
int64
1
104k
updated_files
stringlengths
11
1.76k
title
stringlengths
4
369
body
stringlengths
0
254k
issue_url
stringlengths
38
55
pull_url
stringlengths
38
53
before_fix_sha
stringlengths
40
40
after_fix_sha
stringlengths
40
40
report_datetime
unknown
language
stringclasses
5 values
commit_datetime
unknown
closed
localstack/localstack
https://github.com/localstack/localstack
2,111
["localstack/utils/cloudformation/template_deployer.py", "tests/integration/test_cloudformation.py"]
Cloudformation Nested Stacks should allow parameters from parent
I spent a couple of hours yesterday trying to deploy a parent stack with two nested dynamodb table stacks. Both stacks were to be built from the same template and so provided a TableName parameter for the general purpose child stack to use along with its standard settings. This is one of the primary use cases for child stacks. It didn’t work, and looking at #1921 it appears that the code treats the child stack as though it should just run independently. I suspect that #2079 needs the obverse of this, which is the collection of outputs from a child to use with a peer.
https://github.com/localstack/localstack/issues/2111
https://github.com/localstack/localstack/pull/2153
0797409e4f4d13ce3ab62f0362cf284bd5b1f9b5
a5ec7f8563a51f096926a5a62ccd20cb0743e128
"2020-02-29T21:14:06Z"
python
"2020-03-13T08:44:31Z"
closed
localstack/localstack
https://github.com/localstack/localstack
2,099
["localstack/services/cloudformation/cloudformation_listener.py", "localstack/services/dynamodb/dynamodb_listener.py"]
CreationTime for cloudformation stacks is always a fixed value
## Issue description When creating a CloudFormation stack, the `CreationDate` is always `2011-05-23T15:47:44Z` ## Steps to reproduce 1. Prepare a CloudFormation file, for example ```yml AWSTemplateFormatVersion: 2010-09-09 Description: My Stack Resources: LambdaCodeBucket: Type: AWS::S3::Bucket Properties: BucketName: my-bucket ``` 2. Create a new stack based on this file, I used the command: ```bash awslocal cloudformation create-stack --stack-name gch --template-body file://stack.yml ``` 3. List all the created stacks and confirm the `CreationDate` is not a present date ``` awslocal cloudformation list-stacks ``` ``` { "StackSummaries": [ { "StackId": "arn:aws:cloudformation:us-east-1:000000000000:stack/stack/27187f13-a645-40a0-8788-62d502358216", "StackName": "stack", "TemplateDescription": "My Stack", "CreationTime": "2011-05-23T15:47:44Z", "StackStatus": "CREATE_COMPLETE" } ] } ```
https://github.com/localstack/localstack/issues/2099
https://github.com/localstack/localstack/pull/2103
6c7f6a6b76ee4e1c03eeae7b4dfa7047a2b93cb3
58bf72accab5af7d5148c9c606d05ed71045e503
"2020-02-27T07:37:30Z"
python
"2020-02-27T21:45:09Z"
closed
localstack/localstack
https://github.com/localstack/localstack
2,093
[".travis.yml", "Dockerfile", "bin/Dockerfile.base", "doc/developer_guides/README.md", "tests/integration/lambdas/java/lambda-function-with-lib-0.0.1.jar", "tests/integration/lambdas/java/pom.xml", "tests/integration/test_lambda.py"]
Support Java 11 in Local Lambda Executor
Invoking a lambda that has been compiled by JDK 9+ with the following options causes `UnsupportedClassVersionError`. I think it's because of the fat jar compiled by JDK 8. ``` - LAMBDA_EXECUTOR=local - LAMBDA_REMOTE_DOCKER=false ``` ` Exception in thread "main" java.lang.UnsupportedClassVersionError: ImageTransformer has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 ` The full log: ``` localstack_1 | 2020-02-26T09:29:49:WARNING:localstack.services.awslambda.lambda_executors: java -cp /opt/code/localstack/localstack/infra/localstack-utils-fat.jar:/tmp/localstack/zipfile.ebe369ca/original_lambda_archive.zip:.:<classpath> cloud.localstack.LambdaExecutor ImageTransformer /tmp/localstack/lambda.event.b904f671.json localstack_1 | 2020-02-26T09:29:50:WARNING:localstack.services.awslambda.lambda_api: Error executing Lambda function arn:aws:lambda:eu-west-1:000000000000:function:image-manager-lambda-local: Lambda process returned error status code: 1. Result: . Output: localstack_1 | Exception in thread "main" java.lang.UnsupportedClassVersionError: ImageTransformer has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 localstack_1 | at java.lang.ClassLoader.defineClass1(Native Method) localstack_1 | at java.lang.ClassLoader.defineClass(ClassLoader.java:757) localstack_1 | at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) localstack_1 | at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) localstack_1 | at java.net.URLClassLoader.access$100(URLClassLoader.java:74) localstack_1 | at java.net.URLClassLoader$1.run(URLClassLoader.java:369) localstack_1 | at java.net.URLClassLoader$1.run(URLClassLoader.java:363) localstack_1 | at java.security.AccessController.doPrivileged(Native Method) localstack_1 | at java.net.URLClassLoader.findClass(URLClassLoader.java:362) localstack_1 | at java.lang.ClassLoader.loadClass(ClassLoader.java:419) localstack_1 | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) localstack_1 | at java.lang.ClassLoader.loadClass(ClassLoader.java:352) localstack_1 | at java.lang.Class.forName0(Native Method) localstack_1 | at java.lang.Class.forName(Class.java:264) localstack_1 | at cloud.localstack.LambdaExecutor.getHandler(LambdaExecutor.java:150) localstack_1 | at cloud.localstack.LambdaExecutor.main(LambdaExecutor.java:64) Traceback (most recent call last): localstack_1 | File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 379, in run_lambda localstack_1 | result, log_output = LAMBDA_EXECUTOR.execute(func_arn, func_details, localstack_1 | File "/opt/code/localstack/localstack/services/awslambda/lambda_executors.py", line 116, in execute localstack_1 | return do_execute() localstack_1 | File "/opt/code/localstack/localstack/services/awslambda/lambda_executors.py", line 101, in do_execute localstack_1 | raise e localstack_1 | File "/opt/code/localstack/localstack/services/awslambda/lambda_executors.py", line 90, in do_execute localstack_1 | result, log_output = self._execute(func_arn, func_details, event, context, version) localstack_1 | File "/opt/code/localstack/localstack/services/awslambda/lambda_executors.py", line 657, in _execute localstack_1 | process.run() localstack_1 | File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run localstack_1 | self._target(*self._args, **self._kwargs) localstack_1 | File "/opt/code/localstack/localstack/services/awslambda/lambda_executors.py", line 652, in do_execute localstack_1 | result = lambda_function(event, context) localstack_1 | File "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 494, in execute localstack_1 | result, log_output = lambda_executors.EXECUTOR_LOCAL.execute_java_lambda( localstack_1 | File "/opt/code/localstack/localstack/services/awslambda/lambda_executors.py", line 675, in execute_java_lambda localstack_1 | result, log_output = self.run_lambda_executor(cmd) localstack_1 | File "/opt/code/localstack/localstack/services/awslambda/lambda_executors.py", line 153, in run_lambda_executor localstack_1 | raise Exception('Lambda process returned error status code: %s. Result: %s. Output:\n%s' % localstack_1 | Exception: Lambda process returned error status code: 1. Result: . Output: localstack_1 | Exception in thread "main" java.lang.UnsupportedClassVersionError: ImageTransformer has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 localstack_1 | at java.lang.ClassLoader.defineClass1(Native Method) localstack_1 | at java.lang.ClassLoader.defineClass(ClassLoader.java:757) localstack_1 | at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) localstack_1 | at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) localstack_1 | at java.net.URLClassLoader.access$100(URLClassLoader.java:74) localstack_1 | at java.net.URLClassLoader$1.run(URLClassLoader.java:369) localstack_1 | at java.net.URLClassLoader$1.run(URLClassLoader.java:363) localstack_1 | at java.security.AccessController.doPrivileged(Native Method) localstack_1 | at java.net.URLClassLoader.findClass(URLClassLoader.java:362) localstack_1 | at java.lang.ClassLoader.loadClass(ClassLoader.java:419) localstack_1 | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) localstack_1 | at java.lang.ClassLoader.loadClass(ClassLoader.java:352) localstack_1 | at java.lang.Class.forName0(Native Method) localstack_1 | at java.lang.Class.forName(Class.java:264) localstack_1 | at cloud.localstack.LambdaExecutor.getHandler(LambdaExecutor.java:150) localstack_1 | at cloud.localstack.LambdaExecutor.main(LambdaExecutor.java:64) localstack_1 | ```
https://github.com/localstack/localstack/issues/2093
https://github.com/localstack/localstack/pull/3166
819d90f6e7376d3cd3dcf59128854281ce2d70c1
d0fbb06386ea59f0abc3f74102a1a7f53eeea1e4
"2020-02-26T09:53:20Z"
python
"2020-10-26T23:45:33Z"
closed
localstack/localstack
https://github.com/localstack/localstack
2,066
["Dockerfile", "Makefile", "localstack/ext/java/src/main/java/cloud/localstack/Localstack.java"]
docker-compose fails to run the custom initialisation script due to awslocal cli (ModuleNotFoundError: No module named 'localstack_client')
I'm getting this error running the docker-compose with the latest image: ``` localstack_1 | /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initaws.d/init-stack.sh localstack_1 | Traceback (most recent call last): localstack_1 | File "/usr/bin/awslocal", line 28, in <module> localstack_1 | from localstack_client import config localstack_1 | ModuleNotFoundError: No module named 'localstack_client' ``` In the init-stack.sh I create some resources by cloudformation. Wanted to point out that yesterday was working fine so maybe this is due to some recent change. Meanwhile I got an workaround by adding to the beginning of the script: `pip install awscli-local ` Is it planned to have release soon? It would be nice to lock the version to avoid some breaking changes. Can't use other versions right now because the latest version is the only one who have Java11 support. Thanks for this awesome project and support!
https://github.com/localstack/localstack/issues/2066
https://github.com/localstack/localstack/pull/2070
8fcbb9547336392a01a95f169a88da7fe1b4495f
ee2ea222af0b979eb8cfdb2ddf53d6ba7014304d
"2020-02-19T11:56:07Z"
python
"2020-02-20T17:44:21Z"
closed
localstack/localstack
https://github.com/localstack/localstack
2,049
["localstack/services/dynamodb/provider.py", "tests/integration/test_dynamodb.py"]
DynamoDB doesn't respect ReturnValues parameter on PutItem request
Despite `ReturnValues` being set to `ALL_OLD`, the written attributes are returned. Expected behavior is `null` returned when the item didn't previously exist. Logs from Java client below. Actual data being written/returned has been edited. ``` 01:08:34.907 [DataService-akka.actor.default-dispatcher-74] DEBUG com.amazonaws.request - Sending Request: POST http://localstack:4569 / Headers: (User-Agent: a Linux/4.14.131-linuxkit OpenJDK_64-Bit_Server_VM/25.212-b03 java/1.8.0_212 scala/2.12.10 dynamodb-table-api/1.11.483, amz-sdk-invocation-id: f278edab-6204-75f0 Content-Length: 1096, X-Amz-Target: DynamoDB_20120810.PutItem, Content-Type: application/x-amz-json-1.0, ) 01:08:34.908 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 >> "POST / HTTP/1.1[\r][\n]" 01:08:34.909 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 >> "Host: localstack:4569[\r][\n]" 01:08:34.909 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 >> "Authorization: AWS4-HMAC-SHA256 Credential=localst 0212/us-west-2/dynamodb/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-retry;content-length;content-type;host;user-agent;x-amz-date;x-amz-target, Sig 03fcb5552c91ae79c3d2939f3c1634bcfa7666b97bafd200f3d[\r][\n]" 01:08:34.909 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 >> "X-Amz-Date: 20200212T010834Z[\r][\n]" 01:08:34.909 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 >> "User-Agent: aws-sdk-java/1.11.483 Linux/4.14.131-l it_Server_VM/25.212-b03 java/1.8.0_212 scala/2.12.10 dynamodb-table-api/1.11.483[\r][\n]" 01:08:34.909 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 >> "amz-sdk-invocation-id: f278edab-6204-75f0-5fc4-a8c 01:08:34.909 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 >> "amz-sdk-retry: 0/0/500[\r][\n]" 01:08:34.909 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 >> "X-Amz-Target: DynamoDB_20120810.PutItem[\r][\n]" 01:08:34.910 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 >> "Content-Type: application/x-amz-json-1.0[\r][\n]" 01:08:34.910 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 >> "Content-Length: 1096[\r][\n]" 01:08:34.910 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 >> "Connection: Keep-Alive[\r][\n]" 01:08:34.911 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 >> "[\r][\n]" 01:08:34.911 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 >> "{"TableName":"my-table","Item":{"hashKey":{"S":"hk"},"rangeKey":{"S":"rk"}},"ReturnValues":"ALL_OLD","ConditionExpression":"attribute_not_exists(rangeKey)"}" 01:08:34.994 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 << "HTTP/1.1 200 OK[\r][\n]" 01:08:34.994 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 << "Server: BaseHTTP/0.6 Python/3.7.5[\r][\n]" 01:08:34.994 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 << "Date: Wed, 12 Feb 2020 01:08:34 GMT[\r][\n]" 01:08:34.994 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 << "Content-Type: application/x-amz-json-1.0[\r][\n]" 01:08:34.994 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 << "x-amz-crc32: 1911172288[\r][\n]" 01:08:34.994 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 << "x-amzn-RequestId: 32a8e610-50be-40d8-9e81-107c10fb18f6[\r][\n]" 01:08:34.994 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 << "content-length: 868[\r][\n]" 01:08:34.994 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 << "Access-Control-Allow-Origin: *[\r][\n]" 01:08:34.994 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 << "Access-Control-Allow-Methods: HEAD,GET,PUT,POST,DELETE,OPTIONS,PATCH[\r][\n]" 01:08:34.994 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 << "Access-Control-Allow-Headers: authorization,content-type,content-md5,cache-control,x-amz-content-sha256,x-amz-date,x-amz-security-token,x-amz-user-agent,x-amz-target,x-amz-acl,x-amz-version-id,x-localstack-target,x-amz-tagging[\r][\n]" 01:08:34.994 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 << "Access-Control-Expose-Headers: x-amz-version-id[\r][\n]" 01:08:34.994 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 << "[\r][\n]" 01:08:35.035 [DataService-akka.actor.default-dispatcher-74] DEBUG org.apache.http.wire - http-outgoing-17 << "{"Attributes": {"hashKey": {"S": "hk"}, "rangeKey": {"S": "rk"}}}" 01:08:35.035 [DataService-akka.actor.default-dispatcher-74] DEBUG com.amazonaws.request - Received successful response: 200, AWS Request ID: 32a8e610-50be-40d8-9e81-107c10fb18f6 01:08:35.035 [DataService-akka.actor.default-dispatcher-74] DEBUG com.amazonaws.requestId - x-amzn-RequestId: 32a8e610-50be-40d8-9e81-107c10fb18f6 ``` Observed with `localstack/localstack:0.10.7`. Appears to be regression from `0.9.5`.
https://github.com/localstack/localstack/issues/2049
https://github.com/localstack/localstack/pull/6439
868d1e87f26c0c34e280e4c234743c1690c6a09b
a09af417cf620683a12a33c70b9809a5f43eaa59
"2020-02-12T03:41:30Z"
python
"2022-07-15T13:55:49Z"
closed
localstack/localstack
https://github.com/localstack/localstack
2,044
[".github/workflows/asf-updates.yml"]
Java arguments are not applied.
In case of lambda execution with the following properties: LAMBDA_EXECUTOR=local LAMBDA_JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 The arguments are not supplied to the runner.
https://github.com/localstack/localstack/issues/2044
https://github.com/localstack/localstack/pull/10178
75042c5c7feb0a3eafa2beea6cc30471e2b527a0
75db5a92d9f0264ace027bef216b3d0aeaeaf285
"2020-02-11T16:31:01Z"
python
"2024-02-06T07:43:16Z"
closed
localstack/localstack
https://github.com/localstack/localstack
2,041
["localstack/services/cloudformation/cloudformation_starter.py"]
Outputted Resources Not Available For Import
We are in the process of reorganizing our Lambda functions into a monorepo and utilizing shared resources (ApiGateway, IAM, S3) and want to us localstack to help with local development of our platform. Unfortunately, we have seemed to run into a pretty big roadblock. We are trying to share a single ApiGateway among multiple services. We have a root service that defines and outputs the resource: ```yaml resources: Resources: SharedGateway: Type: AWS::ApiGateway::RestApi Properties: Name: SharedGateway Outputs: apiGatewayRestApiId: Value: Ref: SharedGateway Export: Name: ${self:custom.stage}-SharedGateway-restApiId apiGatewayRestApiRootResourceId: Value: Fn::GetAtt: - SharedGateway - RootResourceId Export: Name: ${self:custom.stage}-SharedGateway-rootResourceId ``` When we deploy this function, the gateway is created as expected: ```json ❯ awslocal cloudformation describe-stacks { "Stacks": [ { "StackId": "arn:aws:cloudformation:us-east-1:000000000000:stack/root-service-local/380b2980-3d1f-49a7-8a8e-f455574dd463", "Parameters": [], "Tags": [ { "Value": "local", "Key": "STAGE" } ], "Outputs": [ { "OutputKey": "ServerlessDeploymentBucketName", "OutputValue": "root-service-local-ServerlessDeploymentBucket-V42VYOBG30M1" }, { "ExportName": "local-SharedGateway-restApiId", "OutputKey": "apiGatewayRestApiId", "OutputValue": "6lmwod0qxv" }, { "ExportName": "local-SharedGateway-rootResourceId", "OutputKey": "apiGatewayRestApiRootResourceId", "OutputValue": "1cgu6jfibl" } ], "CreationTime": "2010-07-27T22:28:28Z", "StackName": "root-service-local", "NotificationARNs": [], "StackStatus": "UPDATE_COMPLETE", "DisableRollback": false } ] } ``` We are then importing the values into another service: ```yaml provider: name: aws runtime: nodejs12.x region: ${opt:region, 'us-east-1'} apiGateway: restApiId: 'Fn::ImportValue': ${self:custom.stage}-SharedGateway-restApiId restApiRootResourceId: 'Fn::ImportValue': ${self:custom.stage}-SharedGateway-rootResourceId ``` The issue arises when we attempt to deploy this service locally: `ServerlessError: No export named local-SharedGateway-rootResourceId found.` Sure enough, the shared gateway is not listed in the cloudformation exports: ```json ❯ awslocal cloudformation list-exports { "Exports": [] } ``` Is this supported by Localstack? Has anyone successfully shared resources between Lambda functions? I feel that I am missing something simple...
https://github.com/localstack/localstack/issues/2041
https://github.com/localstack/localstack/pull/2097
f25da7f462968e5262398431262b741a17206901
a9d5258cdb6651772ae489e71d43a6e5800c527e
"2020-02-10T21:36:50Z"
python
"2020-02-26T21:41:20Z"
closed
localstack/localstack
https://github.com/localstack/localstack
2,039
["localstack/services/awslambda/lambda_api.py", "localstack/services/awslambda/lambda_executors.py", "localstack/services/s3/s3_listener.py", "localstack/services/sqs/sqs_listener.py", "localstack/utils/aws/aws_stack.py", "localstack/utils/aws/dead_letter_queue.py", "tests/integration/test_api_gateway.py", "tests/integration/test_sqs.py"]
SQS ChangeMessageVisibility from within Lambda function
sqs.changeMessageVisibility according to [this](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ChangeMessageVisibility.html#API_ChangeMessageVisibility_Examples) makes a request directly to the Queue's URL rather than via the SQS Endpoint. (I'm already setting SQS endpoint to LOCALSTACK_HOSTNAME - makes no difference for this call).. In localstack the queue URL host returned is by default set to the value of HOSTNAME_EXTERNAL, which I'm setting to localstack, but calling this method within a lambda, does not work and I get the error: ``` UnknownEndpoint: Inaccessible host: `localstack'. This service may not be available in the `us-east-1' region. ``` So, how can I make the queue URL accessible from within a lambda using localstack? Effectively I need to make **http://localstack** accessible from within lambda. I'm using the following cmd to start localstack: ``` LAMBDA_EXECUTOR=docker-reuse DEBUG=1 LAMBDA_REMOTE_DOCKER=0 DATA_DIR=/tmp/localstack/data HOSTNAME_EXTERNAL=localstack localstack start ```
https://github.com/localstack/localstack/issues/2039
https://github.com/localstack/localstack/pull/2145
b90c4448e8c39fb2411084174bec122d8b775fff
b31f6e5cc4e8da8d46510ccb1b8b3130fd7fd7cf
"2020-02-10T18:21:59Z"
python
"2020-03-11T01:32:18Z"
closed
localstack/localstack
https://github.com/localstack/localstack
2,029
["localstack/services/sns/sns_listener.py"]
SNS logs location
Hi, I want to see, what's coming from outside to my SNS service in localstack like payload. Where can I see it? I have set `DEBUG=1` but I still not see anything.
https://github.com/localstack/localstack/issues/2029
https://github.com/localstack/localstack/pull/2222
ae1986daeee9dc698b10ed587ce5c4e93310cdb8
243ff623a23dfc235d0bd3833a85cbb4979cb31e
"2020-02-07T11:38:25Z"
python
"2020-03-31T19:16:30Z"
closed
localstack/localstack
https://github.com/localstack/localstack
2,001
["tests/integration/awslambda/functions/java/lambda_echo/pom.xml"]
SNS subscription signature verification failing no Signature, SignatureVersion, SigningCertURL
On SubscriptionConfirmation message I am expecting request similar to ``` POST / HTTP/1.1 x-amz-sns-message-type: SubscriptionConfirmation x-amz-sns-message-id: 165545c9-2a5c-472c-8df2-7ff2be2b3b1b x-amz-sns-topic-arn: arn:aws:sns:us-west-2:123456789012:MyTopic Content-Length: 1336 Content-Type: text/plain; charset=UTF-8 Host: example.com Connection: Keep-Alive User-Agent: Amazon Simple Notification Service Agent { "Type" : "SubscriptionConfirmation", "MessageId" : "165545c9-2a5c-472c-8df2-7ff2be2b3b1b", "Token" : "2336412f37f...", "TopicArn" : "arn:aws:sns:us-west-2:123456789012:MyTopic", "Message" : "You have chosen to subscribe to the topic arn:aws:sns:us-west-2:123456789012:MyTopic.\nTo confirm the subscription, visit the SubscribeURL included in this message.", "SubscribeURL" : "https://sns.us-west-2.amazonaws.com/?Action=ConfirmSubscription&TopicArn=arn:aws:sns:us-west-2:123456789012:MyTopic&Token=2336412f37...", "Timestamp" : "2012-04-26T20:45:04.751Z", "SignatureVersion" : "1", "Signature" : "EXAMPLEpH+...", "SigningCertURL" : "https://sns.us-west-2.amazonaws.com/SimpleNotificationService-f3ecfb7224c7233fe7bb5f59f96de52f.pem" } ``` But from localstack currently I am not getting SignatureVersion, Signature, SigningCertURL using version localstack:0.10.6 docker is there any other configurations needed ? or not supported ?
https://github.com/localstack/localstack/issues/2001
https://github.com/localstack/localstack/pull/6112
a8e14aeedd4ba95ae3384343ebe1a1c855d37441
308ee11005d0b3d9ad90e1d3a3cf14e532391098
"2020-01-30T12:01:49Z"
python
"2022-05-21T16:16:11Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,990
["tests/integration/awslambda/functions/java/lambda_echo/pom.xml"]
Can multiple instances for any service invoked
I need multiple instances of lambda services running using localstack, with each lambda having its own handler function. Same with SQS, I need it to scale it to 4 instances all consuming different message streams. Is it possible to scale instances in localstack ??
https://github.com/localstack/localstack/issues/1990
https://github.com/localstack/localstack/pull/6112
a8e14aeedd4ba95ae3384343ebe1a1c855d37441
308ee11005d0b3d9ad90e1d3a3cf14e532391098
"2020-01-28T05:25:38Z"
python
"2022-05-21T16:16:11Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,984
["localstack/services/apigateway/apigateway_starter.py"]
API Gateway Terraform not idempotent
<!-- Love localstack? Please consider supporting our collective: :point_right: https://opencollective.com/localstack/donate --> When creating an API Gateway with Lambda integration using Terraform, I am expecting the configuration to be idempotent but running `plan` immediately after `apply`ing my configuration results in the following changes: ``` An execution plan has been generated and is shown below. Resource actions are indicated with the following symbols: ~ update in-place -/+ destroy and then create replacement Terraform will perform the following actions: # aws_api_gateway_integration.integration will be updated in-place ~ resource "aws_api_gateway_integration" "integration" { cache_key_parameters = [] connection_type = "INTERNET" http_method = "GET" id = "agi-h7of9y60on-2q0jndr0cq-GET" integration_http_method = "GET" request_parameters = {} request_templates = {} resource_id = "2q0jndr0cq" rest_api_id = "h7of9y60on" ~ timeout_milliseconds = 0 -> 29000 type = "AWS_PROXY" uri = "arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:000000000000:function:first_lambda_function/invocations" } # aws_api_gateway_rest_api.api will be updated in-place ~ resource "aws_api_gateway_rest_api" "api" { + api_key_source = "HEADER" arn = "arn:aws:apigateway:eu-west-1::/restapis/h7of9y60on" binary_media_types = [] created_date = "2020-01-26T09:26:18Z" execution_arn = "arn:aws:execute-api:eu-west-1::h7of9y60on" id = "h7of9y60on" minimum_compression_size = -1 name = "test_api" root_resource_id = "tss4whwqxe" tags = {} } # aws_lambda_permission.lambda must be replaced -/+ resource "aws_lambda_permission" "lambda" { action = "lambda:InvokeFunction" function_name = "first_lambda_function" ~ id = "AllowExecutionFromAPIGateway" -> (known after apply) ~ principal = "000000000000" -> "apigateway.amazonaws.com" # forces replacement source_arn = "arn:aws:execute-api:eu-west-1:123456789012:h7of9y60on/*/GET/hello" statement_id = "AllowExecutionFromAPIGateway" } Plan: 1 to add, 2 to change, 1 to destroy. ``` If I apply the changes, Terraform times out modifying the `aws_api_gateway_rest_api.api` resource. Below is the `docker-compose.yml` and Terraform configuration to reproduce: docker-compose.yml: ``` version: '2.1' services: localstack: container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}" image: localstack/localstack ports: - "4567-4597:4567-4597" - "${PORT_WEB_UI-8080}:${PORT_WEB_UI-8080}" environment: - SERVICES=${SERVICES- } - DEBUG=${DEBUG- } - DATA_DIR=${DATA_DIR- } - PORT_WEB_UI=${PORT_WEB_UI- } - LAMBDA_EXECUTOR=${LAMBDA_EXECUTOR-local } - KINESIS_ERROR_PROBABILITY=${KINESIS_ERROR_PROBABILITY- } - DOCKER_HOST=unix:///var/run/docker.sock - DEFAULT_REGION=eu-west-1 volumes: - "${TMPDIR:-/tmp/localstack}:/tmp/localstack" - "/var/run/docker.sock:/var/run/docker.sock" ``` main.tf ``` provider "aws" { access_key = "mock_access_key" region = "eu-west-1" s3_force_path_style = true secret_key = "mock_secret_key" skip_credentials_validation = true skip_metadata_api_check = true skip_requesting_account_id = true endpoints { apigateway = "http://localhost:4567" cloudformation = "http://localhost:4581" cloudwatch = "http://localhost:4582" dynamodb = "http://localhost:4569" es = "http://localhost:4578" firehose = "http://localhost:4573" iam = "http://localhost:4593" kinesis = "http://localhost:4568" lambda = "http://localhost:4574" route53 = "http://localhost:4580" redshift = "http://localhost:4577" s3 = "http://localhost:4572" secretsmanager = "http://localhost:4584" ses = "http://localhost:4579" sns = "http://localhost:4575" sqs = "http://localhost:4576" ssm = "http://localhost:4583" stepfunctions = "http://localhost:4585" sts = "http://localhost:4592" } } data "aws_caller_identity" "current" {} data "aws_region" "current" {} data "archive_file" "dummy" { type = "zip" output_path = ".terraform/artifact.zip" source { filename = "dummy.py" content = <<EOF import json def main(event, context): return { 'statusCode': 200, 'headers': {'Content-Type': 'application/json'}, 'body': json.dumps('Hello, World!') } EOF } } locals { lambda_function_name = "first_lambda_function" account_id = data.aws_caller_identity.current.account_id region = data.aws_region.current.name } resource "aws_s3_bucket" "artifacts_bucket" { bucket = "artifacts-bucket" } resource "aws_lambda_function" "first_lambda" { filename = data.archive_file.dummy.output_path function_name = local.lambda_function_name handler = "dummy.main" role = aws_iam_role.iam_for_lambda.arn runtime = "python3.7" depends_on = [aws_iam_role.iam_for_lambda, aws_iam_role_policy_attachment.lambda_logs] } resource "aws_iam_role" "iam_for_lambda" { name = "iam_for_lambda" assume_role_policy = <<EOF { "Version": "2012-10-17", "Statement": [ { "Action": "sts:AssumeRole", "Principal": { "Service": "lambda.amazonaws.com" }, "Effect": "Allow", "Sid": "" } ] } EOF } resource "aws_iam_policy" "lambda_logging" { name = "lambda_logging" path = "/" description = "IAM policy for logging from a lambda" policy = <<EOF { "Version": "2012-10-17", "Statement": [ { "Action": [ "logs:CreateLogGroup", "logs:CreateLogStream", "logs:PutLogEvents" ], "Resource": "arn:aws:logs:*:*:*", "Effect": "Allow" } ] } EOF } resource "aws_iam_role_policy_attachment" "lambda_logs" { role = aws_iam_role.iam_for_lambda.name policy_arn = aws_iam_policy.lambda_logging.arn } resource "aws_api_gateway_rest_api" "api" { name = "test_api" } resource "aws_api_gateway_resource" "resource" { path_part = "hello" parent_id = aws_api_gateway_rest_api.api.root_resource_id rest_api_id = aws_api_gateway_rest_api.api.id } resource "aws_api_gateway_method" "method" { rest_api_id = aws_api_gateway_rest_api.api.id resource_id = aws_api_gateway_resource.resource.id http_method = "GET" authorization = "NONE" } resource "aws_api_gateway_integration" "integration" { rest_api_id = aws_api_gateway_rest_api.api.id resource_id = aws_api_gateway_resource.resource.id http_method = aws_api_gateway_method.method.http_method integration_http_method = "GET" type = "AWS_PROXY" uri = aws_lambda_function.first_lambda.invoke_arn timeout_milliseconds = 29000 } # Lambda resource "aws_lambda_permission" "lambda" { statement_id = "AllowExecutionFromAPIGateway" action = "lambda:InvokeFunction" function_name = aws_lambda_function.first_lambda.function_name principal = "apigateway.amazonaws.com" # More: http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-control-access-using-iam-policies-to-invoke-api.html source_arn = "arn:aws:execute-api:${local.region}:${local.account_id}:${aws_api_gateway_rest_api.api.id}/*/${aws_api_gateway_method.method.http_method}${aws_api_gateway_resource.resource.path}" } resource "aws_api_gateway_deployment" "test_stage_deplyment" { depends_on = [aws_api_gateway_integration.integration] rest_api_id = aws_api_gateway_rest_api.api.id stage_name = "testing" } output "url" { value = aws_api_gateway_deployment.test_stage_deplyment.invoke_url } output "localstack_url" { value = "http://localhost:4567/restapis/${aws_api_gateway_rest_api.api.id}/${aws_api_gateway_deployment.test_stage_deplyment.stage_name}/_user_request_/${aws_api_gateway_resource.resource.path_part}" } ``` I'm not sure if this is related to #1822. ┆Issue is synchronized with this [Jira Bug](https://localstack.atlassian.net/browse/LOC-148) by [Unito](https://www.unito.io/learn-more)
https://github.com/localstack/localstack/issues/1984
https://github.com/localstack/localstack/pull/3240
c8c2377b1e514f28e4324e31628edd259bf92f1c
305855444bce0f5835ce7f498d146ac146490944
"2020-01-26T09:39:07Z"
python
"2020-11-13T16:17:37Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,980
["localstack/services/generic_proxy.py", "localstack/services/infra.py"]
Getting "http: server closed idle connection" errors trying to PutObject() (S3)
I have code which wants to opens 28 connections "simultaneously" (very quickly, for sure) and I get the following error every time: > Post http://192.168.2.95:4572/bucket-name/test-12.mp3?uploadId=%2FNb2OX2QSBfweIaAvP1UDYoFaviO1YGCpqNVV8DmF34TNXai9f2fD%2FpqA: http: server closed idle connection I understand that Go doesn't want to try the connection again if it fails because this is a `POST` (see [here](https://github.com/golang/go/issues/19943#issuecomment-355607646)) since this is to do a PUT object. However, I think this happens because localstack only accepts a few connections to arrive at once (i.e. the default is probably 5). I tried to time my connections, though, and that doesn't help. I still get the same error. I even tried to make the connections one after the other and upload the 28 objects serially, one after the other as fast as possible, and even that fails once in a while (it works most of time, though—a good solution for now). I'm wondering whether there is a parameter in localstack that I can easily tweak to increase the number of connections that can happen quickly. With our bigger servers (96 processors) it's much more advantageous to write all 28 objects in parallel and it would be best if we could use localstack to test our code. Here is a sample code one can use to reproduce the problem mentioned here: ``` package main import ( "fmt" "io" "os" "time" "github.com/minio/minio-go" ) func main() { var mc *minio.Client var err error var size int64 var count int = 28 var outputRC []io.ReadCloser var inputPipe []*os.File mc, err = minio.New("192.168.2.95:4572", "localstack", "localstack", false) if err != nil { fmt.Printf("error: minio.New(): %v\n", err) os.Exit(1) } outputRC = make([]io.ReadCloser, count) inputPipe = make([]*os.File, count) // create pipes which are used to send data to the S3 objects for i := 0; i < count; i++ { // reader, writer, err = os.Pipe() outputRC[i], inputPipe[i], err = os.Pipe() if err != nil { fmt.Printf("error: os.Pipe() #%d: %v\n", i, err) os.Exit(1) } } // now setup the readers (read pipe output and save in S3 objects) for i := 0; i < count; i++ { //time.Sleep(100 * time.Millisecond) // this helps to some extend, but we still get many errors, even with a very long sleep (i.e. 1 full second!) idx := i go func() { filename := fmt.Sprintf("whatever-%d.mp3", idx) size, err = mc.PutObject("bucket-name", filename, outputRC[idx], -1, minio.PutObjectOptions{ContentType:"audio/mpeg"}) if err != nil { fmt.Printf("error: mc.PutObject() #%d: %v\n", idx, err) //os.Exit(1) } }() } //time.Sleep(5 * time.Second) for i := 0; i < count; i++ { fmt.Fprintf(inputPipe[i], "FILE #%d\n", i) } //time.Sleep(10 * time.Second) for i := 0; i < count; i++ { inputPipe[i].Close() } time.Sleep(60 * time.Second) } ```
https://github.com/localstack/localstack/issues/1980
https://github.com/localstack/localstack/pull/1986
8163592b4de16508769030017d1022dbc1d89327
859cbc5ad1c23fefcec10a7a25570fe7581cbbb5
"2020-01-24T18:51:18Z"
python
"2020-01-26T18:14:30Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,978
["localstack/ext/java/src/test/java/cloud/localstack/S3FeaturesTest.java", "localstack/services/s3/s3_listener.py", "localstack/utils/cloudformation/template_deployer.py"]
Regression since 0.10.7: Unable to unmarshall response (Data read has a different checksum than expected.)
I have just pulled the `latest` Docker image and I'm getting ``` Unable to unmarshall response (Data read has a different checksum than expected.) ``` errors when using `S3Client#putObject` from the AWS SDK. This is almost identical to #1611 from October. Fixing to version 0.10.7 fixes the issue. Looking at the commits since this version was released (09-Jan-2020) the following PRs are the only ones that mention S3: - https://github.com/localstack/localstack/pull/1965 - https://github.com/localstack/localstack/pull/1976
https://github.com/localstack/localstack/issues/1978
https://github.com/localstack/localstack/pull/1993
58f67a8650888e7a065ac6d7aeddba02db2d6afa
c2c276b1d04a6f61db74200d53d61c8e9575cd26
"2020-01-24T15:30:29Z"
python
"2020-01-28T23:18:56Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,959
["tests/integration/awslambda/functions/java/lambda_echo/pom.xml"]
Provisioning Elasticache with terraform hangs
Provisioning Redis Elasticache instances with the following Terraform hangs forever ```terraform resource "aws_elasticache_cluster" "my-redis" { cluster_id = "my-redis-cluster" engine = "redis" node_type = "cache.m4.large" num_cache_nodes = 1 parameter_group_name = "default.redis3.2" engine_version = "3.2.10" port = 6379 } ``` When looking in the localstack logs, I can actually see that redis was started with no error. ``` localstack_1 | 110:C 17 Jan 2020 10:25:54.195 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo localstack_1 | 110:C 17 Jan 2020 10:25:54.195 # Redis version=5.0.5, bits=64, commit=47edd290, modified=0, pid=110, just started localstack_1 | 110:C 17 Jan 2020 10:25:54.195 # Configuration loaded localstack_1 | 110:M 17 Jan 2020 10:25:54.196 * Running mode=standalone, port=4510. localstack_1 | 110:M 17 Jan 2020 10:25:54.196 # Server initialized ``` I think that the hang is caused by terraform calling `DescribeCacheClusters` to confirm creation ``` WARNING:localstack_ext.services.elasticache.elasticache_api: Unknown ElastiCache API action: DescribeCacheClusters ``` I suspect that minimally supporting this API call would fix the issue
https://github.com/localstack/localstack/issues/1959
https://github.com/localstack/localstack/pull/6112
a8e14aeedd4ba95ae3384343ebe1a1c855d37441
308ee11005d0b3d9ad90e1d3a3cf14e532391098
"2020-01-17T10:34:06Z"
python
"2022-05-21T16:16:11Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,952
["localstack/services/s3/s3_listener.py", "localstack/services/s3/s3_starter.py", "tests/integration/test_s3.py"]
S3 requests with Range header broken when using SSL
Including the `Range` header on S3 requests triggers a `502 Bad Gateway` when localstack is run with SSL. Sample test that demonstrates the issue: ```python import logging import io import os import boto3 logging.basicConfig(level=logging.INFO) def test_range_s3(): s3 = boto3.client('s3', endpoint_url='https://localhost:4572', use_ssl=True, verify=False) bucket = 'localstack-s3-range' obj_name = 'sample.bin' s3.create_bucket(Bucket=bucket) chunk_size = 1024 with io.BytesIO() as data: data.write(os.urandom(chunk_size * 2)) logging.info('Uploading object (size=%d)', data.getbuffer().nbytes) data.seek(0) s3.upload_fileobj(data, bucket, obj_name) range_header = f'bytes=0-{chunk_size - 1}' logging.info('Downloading using Range header: %s', range_header) # this will raise an exception # botocore.exceptions.ClientError: An error occurred (502) when calling the GetObject operation (reached max retries: 4): Bad Gateway resp = s3.get_object(Bucket=bucket, Key=obj_name, Range=range_header) content = resp['Body'].read() assert len(content) == chunk_size ``` This is a fairly recent regression: Running against `localstack/localstack:latest` will fail using SSL but pass without SSL. Running against `localstack/localstack:0.10.6` will pass using SSL as well as without SSL. I am guessing changes from either #1887 or #1906 broke this since those were related to `Range` functionality, but have not bisected to be sure.
https://github.com/localstack/localstack/issues/1952
https://github.com/localstack/localstack/pull/1981
132dd1ab98724499576836238233cf9de75c2a30
3181726cd5347d8be97fb65e11e490ae3d2dcc85
"2020-01-14T23:52:50Z"
python
"2020-01-24T22:12:26Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,936
["localstack/services/generic_proxy.py"]
Regression: S3 502 error from headBucket request
When executing: ``` s3AsyncClient.headBucket(HeadBucketRequest.builder() .bucket("local-stack-test-bucket") .build()).join(); ``` We get this exception thrown (Java): java.util.concurrent.CompletionException: software.amazon.awssdk.services.s3.model.S3Exception: null (Service: S3, Status Code: 502, Request ID: null) I narrowed this down to db4cddea4e4844c1241cca5ac22ecbde08e52064 and found the problem. PR incoming shortly.
https://github.com/localstack/localstack/issues/1936
https://github.com/localstack/localstack/pull/1937
db4cddea4e4844c1241cca5ac22ecbde08e52064
a4913cc813dd6b9739807adf7f8621c8d0b8deed
"2020-01-10T19:46:30Z"
python
"2020-01-11T14:28:41Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,932
["README.md", "localstack/services/awslambda/lambda_api.py", "localstack/services/awslambda/lambda_executors.py"]
Standardize usage with terraform
As a user of localstack I would like a documented standardized way to run terraform scripts against a running localstack to create AWS infrastructure so that I don't have to duplicate work that involves programatically creating the resources when I use terraform to create resources in my cloud environment.
https://github.com/localstack/localstack/issues/1932
https://github.com/localstack/localstack/pull/1963
3f334986fa89df78ddff3950e3ef727c9e8d0a22
03c6f4bf250edd18eb818ed65090f508636b0bff
"2020-01-07T20:22:48Z"
python
"2020-01-18T15:30:15Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,929
["localstack/services/es/es_api.py", "tests/integration/test_elasticsearch.py"]
Docker and es::CreateElasticsearchDomain / elasticsearch endpoint
Hey all! I'm using localstack for a project where I consume data from kinesis, process it and put it in elasticsearch. In the later versions of localstack 'elasticsearch' was removed and is now lazily loaded after call to es::CreateElasticsearchDomain (at least that's how I understand it from #1881, #1865, #1870). I'm running localstack in a docker using testcontainers (which gives me dynamic port mappings etc). My processing code is running on localhost. The problem I'm facing now is that the response from es::CreateElasticsearchDomain returns an elasticsearch endpoint like: http://[docker container id]:port. With my set up, this gives me two issues: 1. [docker container id] host is not (I believe) reachable from localhost unless I add it to /etc/hosts or something like that. I can surely "hack" my way around this by just replacing [docker container id] with localhost. 2. It says here: https://github.com/localstack/localstack/issues/1881#issuecomment-567495056 that we should not assume that elasticsearch will run on a static port in the future. When running localstack in a docker, how would I know which port to expose then in order to reach elasticsearch from localhost? I currently have my tests running using 1.10.7 but there I just make a dummy call to es::CreateElasticsearchDomain and hardcode elasticsearch endpoint to http://localhost:4571. (It seems like it always chooses 4571 as of now?) Thanks Stefan
https://github.com/localstack/localstack/issues/1929
https://github.com/localstack/localstack/pull/2313
9f84b04f293b13d5388b13a33bf63ab28e525904
c06c9eb97cee5b94b7879662855b2a3ec1b0e557
"2020-01-07T08:37:04Z"
python
"2020-04-18T16:59:28Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,928
["README.md", "localstack/ext/java/src/main/java/cloud/localstack/deprecated/LocalstackExtension.java", "localstack/ext/java/src/main/java/cloud/localstack/deprecated/TestUtils.java"]
JUnit 5 failing in the spining up of localstack infrastructure
I am trying a sample application, I first added the to connect to SQS, SNS and ElasticSearch ```java @ExtendWith(LocalstackExtension.class) @LocalstackDockerProperties(services = {"sqs", "sns", "elasticsearch"}, randomizePorts = true) class MyAppApplicationTests { @Test void contextLoads() { AmazonSQS sqs = TestUtils.getClientSQS(); AmazonSNS sns = TestUtils.getClientSNS(); } } ``` ``` 2020-01-06 17:49:21.899 INFO 20484 --- [ main] cloud.localstack.deprecated.Localstack : /tmp/localstack_install_dir 2020-01-06 17:49:21.899 INFO 20484 --- [ main] cloud.localstack.deprecated.Localstack : Waiting for infrastructure to be spun up java.lang.RuntimeException: Unable to start local infrastructure. Debug output: make: Entering directory '/tmp/localstack_install_dir' (. .venv/bin/activate; exec bin/localstack start --host) Starting local dev environment. CTRL-C to quit. ERROR: 'cd /tmp/localstack_install_dir/localstack; npm install https://github.com/whummer/serverless-iot-offline': exit code 127; output: /bin/sh: 1: npm: not found ERROR: 'cd "/tmp/localstack_install_dir/localstack" && npm install': exit code 127; output: /bin/sh: 1: npm: not found Error starting infrastructure: Command 'cd "/tmp/localstack_install_dir/localstack" && npm install' returned non-zero exit status 127. Traceback (most recent call last): File "/tmp/localstack_install_dir/localstack/services/infra.py", line 432, in start_infra install.install_components(apis) File "/tmp/localstack_install_dir/localstack/services/install.py", line 210, in install_components parallelize(install_component, names) File "/tmp/localstack_install_dir/localstack/utils/common.py", line 1090, in parallelize result = pool.map(func, list) File "/usr/lib/python2.7/multiprocessing/pool.py", line 253, in map return self.map_async(func, iterable, chunksize).get() File "/usr/lib/python2.7/multiprocessing/pool.py", line 572, in get raise self._value CalledProcessError: Command 'cd "/tmp/localstack_install_dir/localstack" && npm install' returned non-zero exit status 127. ERROR: Command 'cd "/tmp/localstack_install_dir/localstack" && npm install' returned non-zero exit status 127. Makefile:47: recipe for target 'infra' failed make: Leaving directory '/tmp/localstack_install_dir' ``` I tried removing the `/tmp/localstack_install_dir` and it errors like this ``` Jan 06, 2020 5:55:17 PM cloud.localstack.deprecated.Localstack ensureInstallation INFO: Installing LocalStack to temporary directory (this may take a while): /tmp/localstack_install_dir java.lang.RuntimeException: java.lang.IllegalStateException: Failed to run command 'bash -c cd "/tmp/localstack_install_dir"; make install', return code 2. STDOUT: make setup-venv && \ (test ! -e requirements.txt || (. .venv/bin/activate; pip -q install -r requirements.txt && \ PYTHONPATH=. exec python localstack/services/install.py testlibs)) || exit 1 make[1]: Entering directory '/tmp/localstack_install_dir' (test `which virtualenv` || pip install --user virtualenv) && \ (test -e .venv || virtualenv .venv) Makefile:14: recipe for target 'setup-venv' failed make[1]: Leaving directory '/tmp/localstack_install_dir' Makefile:18: recipe for target 'install' failed STDERR: /bin/sh: 2: virtualenv: not found make[1]: *** [setup-venv] Error 127 make: *** [install] Error 1 ``` I have localstack installed in /tmp/localstack, it works fine on the command line, should I try to use it as the root dir? Help me localstack gods. <!-- Love localstack? Please consider supporting our collective: 👉 https://opencollective.com/localstack/donate -->
https://github.com/localstack/localstack/issues/1928
https://github.com/localstack/localstack/pull/2047
5b6eee89f41af000b2da5ff43e3292529ff4c56f
3b1589f77de2e0f6e83de7cacb23a93c38a7fb7d
"2020-01-06T19:58:05Z"
python
"2020-02-11T23:51:54Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,915
[".github/workflows/asf-updates.yml"]
Lambda Layer still 404 on Localstack Pro
<!-- Love localstack? Please consider supporting our collective: 👉 https://opencollective.com/localstack/donate --> I needed to use layer with localstack lambda, so I am trying out the PRO version. I added the LOCALSTACK_API_KEY into the environment variable on docker compose, but it is still not letting me publish-layer-version using aws cli. It still gives me error when I attempt to create layer on localstack, same as before upgrading to PRO. ``` aws lambda publish-layer-version --endpoint-url http://container-localstack:4574 --layer-name test --zip-file fileb:///tmp/lambda-layer.zip botocore.exceptions.ClientError: An error occurred (404) when calling the PublishLayerVersion operation: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <title>404 Not Found</title> <h1>Not Found</h1> <p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p> ```
https://github.com/localstack/localstack/issues/1915
https://github.com/localstack/localstack/pull/10178
75042c5c7feb0a3eafa2beea6cc30471e2b527a0
75db5a92d9f0264ace027bef216b3d0aeaeaf285
"2020-01-03T04:56:46Z"
python
"2024-02-06T07:43:16Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,910
["bin/Dockerfile.base", "localstack/config.py", "localstack/services/s3/s3_starter.py", "localstack/utils/analytics/event_publisher.py", "localstack/utils/cloudformation/template_deployer.py", "tests/integration/templates/template1.yaml", "tests/integration/test_cloudformation.py"]
Cloudformation create-stack 502 BadGateway error
I am using the **latest** localstack docker image to test aws s3, lambda and cloudformation locally. s3 and lambda seems to be working fine but when I call cloudformation **create-stack** api it gives me a 502 BadGateway error. This is the command I am using `aws cloudformation create-stack \ --template-body template.yaml \ --stack-name cfn-test \ --parameters ParameterKey=BucketPrefix,ParameterValue=demo-bucket \ --endpoint-url=http://localhost:4581` This is the error I get: `An error occurred (502) when calling the CreateStack operation (reached max retries: 4): Bad Gateway` From docker logs I got the following error `2019-12-31T22:12:09:ERROR:localstack.services.generic_proxy: Error forwarding request: 'str' object has no attribute 'get' Traceback (most recent call last): File "/opt/code/localstack/localstack/services/generic_proxy.py", line 242, in forward path=path, data=data, headers=forward_headers) File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 164, in forward_request modified_request = transform_template(req_data) File "/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py", line 83, in transform_template if parsed.get('Transform') == 'AWS::Serverless-2016-10-31': AttributeError: 'str' object has no attribute 'get'` Although, when I try the **list-stacks** api it seems to be working fine `aws --endpoint-url=http://localhost:4581 cloudformation list-stacks` `{ "StackSummaries": [] }` `2019-12-31 22:10:51,865:API: 127.0.0.1 - - [31/Dec/2019 22:10:51] "GET / HTTP/1.1" 200 -` I could not find a solution in any of the past issues or anywhere on the internet. Please assist
https://github.com/localstack/localstack/issues/1910
https://github.com/localstack/localstack/pull/2138
dda2cca6a11a237699da024169322b818635bed9
150d298dfae17a1027d70fb6dbc68adc7c7efd80
"2019-12-31T22:33:47Z"
python
"2020-03-08T23:32:59Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,899
["localstack/ext/java/src/test/java/cloud/localstack/S3FeaturesTest.java", "localstack/services/s3/s3_listener.py", "localstack/utils/common.py", "requirements.txt", "tests/integration/test_s3.py"]
S3 ListAllMyBucketsResult response CreationDate Invalid format
can someone please advise here- I am using the S3 service on the latest localstack version,and using the Amazon's S3 Java SDK to perform all the operations with Java 8 (Additional configuration info : aws-sdk-java/1.11.542 Windows_10/10.0 Java_HotSpot(TM)_64-Bit_Server_VM/25.60-b23 java/1.8.0_60 scala/2.10.5 groovy/2.4.10 vendor/Oracle_Corporation) Although creating a new bucket seems to working as expected, retrieving the buckets via list buckets operation throws the following exception through the SDK: ``` java.lang.IllegalArgumentException: Invalid format: "2019-12-23 05:12:26.039447" is malformed at " 05:12:26.039447"). Response Code: 200, Response Text: OK response- <ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01"><Owner><ID>bcaf1ffd86f41161ca5fb16fd081034f</ID><DisplayName>webfile</DisplayName></Owner><Buckets><Bucket><Name>tst-adapter-us-west-2</Name><CreationDate>2019-12-23 02:17:43.014814</CreationDate></Bucket></Buckets></ListAllMyBucketsResult> trace- Caused by: java.lang.IllegalArgumentException: Invalid format: "2019-12-23 05:12:26.039447" is malformed at " 05:12:26.039447" at org.joda.time.format.DateTimeParserBucket.doParseMillis(DateTimeParserBucket.java:187) at org.joda.time.format.DateTimeFormatter.parseMillis(DateTimeFormatter.java:826) at com.amazonaws.util.DateUtils.doParseISO8601Date(DateUtils.java:98) at com.amazonaws.util.DateUtils.parseISO8601Date(DateUtils.java:77) at com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser$ListAllMyBucketsHandler.doEndElement(XmlResponsesSaxParser.java:996) at com.amazonaws.services.s3.model.transform.AbstractHandler.endElement(AbstractHandler.java:52) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2973) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser.parseXmlInputStream(XmlResponsesSaxParser.java:152) ... 31 more ```
https://github.com/localstack/localstack/issues/1899
https://github.com/localstack/localstack/pull/1983
3181726cd5347d8be97fb65e11e490ae3d2dcc85
8163592b4de16508769030017d1022dbc1d89327
"2019-12-23T06:21:40Z"
python
"2020-01-25T11:45:34Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,893
["localstack/ext/java/src/test/java/cloud/localstack/S3FeaturesTest.java", "localstack/services/s3/s3_listener.py", "requirements.txt", "tests/integration/test_s3.py"]
s3api delete-objects on a non-existent key throws errors
Deleting a non-existent key through s3api's delete-objects should return a valid response.. ``` aws s3api delete-objects --bucket my-bucket --delete '{\"Objects\":[{\"Key\":\"my-key\"}]}' ``` Gives... ``` { "Deleted": [ { "Key": "my-key" } ] } ``` Deleting a non-existent key through s3api's delete-objects on LocalStack returns an error response without any additional information beyond the key. ``` aws s3api delete-objects --bucket my-bucket --delete '{"Objects":[{"Key":"my-key"}]}' --endpoint-url http://localhost:4572 ``` Gives... ``` { "ResponseMetadata": { "HTTPStatusCode": 200, "HTTPHeaders": { "server": "BaseHTTP/0.6 Python/3.7.5", "date": "Fri, 20 Dec 2019 16:02:39 GMT", "content-type": "application/xml; charset=utf-8", "content-length": "180", "access-control-allow-origin": "*", "last-modified": "Fri, 20 Dec 2019 16:02:39 GMT", "access-control-allow-methods": "HEAD,GET,PUT,POST,DELETE,OPTIONS,PATCH", "access-control-allow-headers": "authorization,content-type,content-md5,cache-control,x-amz-content-sha256,x-amz-date,x-amz-security-token,x-amz-user-agent,x-amz-target,x-amz-acl,x-amz-version-id,x-localstack-target,x-amz-tagging", "access-control-expose-headers": "x-amz-version-id" }, "RetryAttempts": 0 }, "Errors": [ { "Key": "my-key" } ] } ``` Deleting an existent key seems to work fine.
https://github.com/localstack/localstack/issues/1893
https://github.com/localstack/localstack/pull/1895
db088d532780ea4aaf0df7802e332ab7f74b852c
917d8f0ddc797e938aeaac11d196aeb12f378232
"2019-12-20T16:27:40Z"
python
"2019-12-21T12:40:17Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,891
["localstack/services/sqs/sqs_listener.py", "localstack/utils/bootstrap.py"]
Failed to start on Windows - ERROR: environment can only contain strings
**F:\\*\*\*>pip install localstack** ``` DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found a t https://pip.pypa.io/en/latest/development/release-process/#python-2-support Collecting localstack Downloading https://files.pythonhosted.org/packages/b8/79/adf5f3b968646cded524491e97028602be0c23f0c1736bb6e3614de9911b/localstack-0.10.6.tar.gz (270kB) |????????????????????????????????| 276kB 264kB/s Collecting boto3>=1.9.71 (from localstack) Downloading https://files.pythonhosted.org/packages/30/87/7e8f268e7b3a5dfe67dc52790cc6f4c04a6670a02b31716961eb9ac8278c/boto3-1.10.43-py2.py3-none-any.whl (128kB) |????????????????????????????????| 133kB 2.0MB/s Collecting dnspython==1.16.0 (from localstack) Downloading https://files.pythonhosted.org/packages/ec/d3/3aa0e7213ef72b8585747aa0e271a9523e713813b9a20177ebe1e939deb0/dnspython-1.16.0-py2.py3-none-any.whl (188kB) |????????????????????????????????| 194kB 2.0MB/s Collecting docopt>=0.6.2 (from localstack) Downloading https://files.pythonhosted.org/packages/a2/55/8f8cab2afd404cf578136ef2cc5dfb50baa1761b68c9da1fb1e4eed343c9/docopt-0.6.2.tar.gz Collecting localstack-ext>=0.10.51 (from localstack) Downloading https://files.pythonhosted.org/packages/85/37/bb2a17c099a1a8d6420b11e49a6906db41a6ebb2115f9eadebb99bd5ad68/localstack-ext-0.10.87.tar.gz (214kB) |????????????????????????????????| 215kB 2.0MB/s Collecting localstack-client>=0.14 (from localstack) Downloading https://files.pythonhosted.org/packages/32/fe/0bb7781b5c6f50b8d92dbeba97e7ee66d15ef638a5c6b5c1c017f3829266/localstack-client-0.15.tar.gz Collecting requests>=2.20.0 (from localstack) Downloading https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl (57kB) |????????????????????????????????| 61kB 1.4MB/s Collecting six>=1.12.0 (from localstack) Downloading https://files.pythonhosted.org/packages/65/26/32b8464df2a97e6dd1b656ed26b2c194606c16fe163c695a992b36c11cdf/six-1.13.0-py2.py3-none-any.whl Collecting subprocess32==3.5.4 (from localstack) Downloading https://files.pythonhosted.org/packages/32/c8/564be4d12629b912ea431f1a50eb8b3b9d00f1a0b1ceff17f266be190007/subprocess32-3.5.4.tar.gz (97kB) |????????????????????????????????| 102kB 1.9MB/s Collecting botocore<1.14.0,>=1.13.43 (from boto3>=1.9.71->localstack) Downloading https://files.pythonhosted.org/packages/e0/d3/9617609b8e1db654ec34753c43a0538d56c1740a5b4d78690ceb93beca15/botocore-1.13.43-py2.py3-none-any.whl (5.8MB) |????????????????????????????????| 5.8MB 2.6MB/s Collecting s3transfer<0.3.0,>=0.2.0 (from boto3>=1.9.71->localstack) Downloading https://files.pythonhosted.org/packages/16/8a/1fc3dba0c4923c2a76e1ff0d52b305c44606da63f718d14d3231e21c51b0/s3transfer-0.2.1-py2.py3-none-any.whl (70kB) |????????????????????????????????| 71kB 1.5MB/s Collecting jmespath<1.0.0,>=0.7.1 (from boto3>=1.9.71->localstack) Downloading https://files.pythonhosted.org/packages/83/94/7179c3832a6d45b266ddb2aac329e101367fbdb11f425f13771d27f225bb/jmespath-0.9.4-py2.py3-none-any.whl Collecting dnslib==0.9.10 (from localstack-ext>=0.10.51->localstack) Downloading https://files.pythonhosted.org/packages/bc/cc/959fea82cc712168f834648f783aa5be2a89e1fed5a4da2a2306bb855a47/dnslib-0.9.10.tar.gz (69kB) |????????????????????????????????| 71kB 1.6MB/s Collecting pyaes==1.6.0 (from localstack-ext>=0.10.51->localstack) Downloading https://files.pythonhosted.org/packages/63/31/6768a72cdca5dbd299ae798b690801e6c9c2f018332eec3c5fca79370dba/pyaes-1.6.0.tar.gz Collecting idna<2.9,>=2.5 (from requests>=2.20.0->localstack) Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB) |????????????????????????????????| 61kB 1.9MB/s Collecting chardet<3.1.0,>=3.0.2 (from requests>=2.20.0->localstack) Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB) |????????????????????????????????| 143kB 2.3MB/s Collecting certifi>=2017.4.17 (from requests>=2.20.0->localstack) Downloading https://files.pythonhosted.org/packages/b9/63/df50cac98ea0d5b006c55a399c3bf1db9da7b5a24de7890bc9cfd5dd9e99/certifi-2019.11.28-py2.py3-none-any.whl (156kB) |????????????????????????????????| 163kB 2.1MB/s Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests>=2.20.0->localstack) Downloading https://files.pythonhosted.org/packages/b4/40/a9837291310ee1ccc242ceb6ebfd9eb21539649f193a7c8c86ba15b98539/urllib3-1.25.7-py2.py3-none-any.whl (125kB) |????????????????????????????????| 133kB 2.2MB/s Collecting docutils<0.16,>=0.10 (from botocore<1.14.0,>=1.13.43->boto3>=1.9.71->localstack) Downloading https://files.pythonhosted.org/packages/3a/dc/bf2b15d1fa15a6f7a9e77a61b74ecbbae7258558fcda8ffc9a6638a6b327/docutils-0.15.2-py2-none-any.whl (548kB) |????????????????????????????????| 552kB 1.8MB/s Collecting python-dateutil<2.8.1,>=2.1; python_version >= "2.7" (from botocore<1.14.0,>=1.13.43->boto3>=1.9.71->localstack) Downloading https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl (226kB) |????????????????????????????????| 235kB 1.8MB/s Collecting futures<4.0.0,>=2.2.0; python_version == "2.6" or python_version == "2.7" (from s3transfer<0.3.0,>=0.2.0->boto3>=1.9.71->localstack) Downloading https://files.pythonhosted.org/packages/d8/a6/f46ae3f1da0cd4361c344888f59ec2f5785e69c872e175a748ef6071cdb5/futures-3.3.0-py2-none-any.whl Installing collected packages: docutils, urllib3, six, python-dateutil, jmespath, botocore, futures, s3transfer, boto3, dnspython, docopt, dnslib, pyaes, idna, chardet, certifi, requests, localstack-ext, localstack-client, subprocess32, localstack Running setup.py install for docopt ... done Running setup.py install for dnslib ... done Running setup.py install for pyaes ... done Running setup.py install for localstack-ext ... done Running setup.py install for localstack-client ... done Running setup.py install for subprocess32 ... done Running setup.py install for localstack ... done Successfully installed boto3-1.10.43 botocore-1.13.43 certifi-2019.11.28 chardet-3.0.4 dnslib-0.9.10 dnspython-1.16.0 docopt-0.6.2 docutils-0.15.2 futures-3.3.0 idna-2.8 jmespath-0.9.4 localstack-0.10.6 localstack-client-0.15 localstack-ext-0.10.87 pyaes-1.6.0 python-dat eutil-2.8.0 requests-2.22.0 s3transfer-0.2.1 six-1.13.0 subprocess32-3.5.4 urllib3-1.25.7 WARNING: You are using pip version 19.2.3, however version 19.3.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. ``` **F:\\*\*\*>localstack start** ``` F:\***>python C:\Python27\Scripts\\localstack start Starting local dev environment. CTRL-C to quit. ERROR: environment can only contain strings ``` **F:\\*\*\*>python --version** ``` Python 2.7.17 ``` **F:\\*\*\*>localstack --version** ``` F:\***>python C:\Python27\Scripts\\localstack --version 0.10.6 ``` **F:\\*\*\*>docker --version** ``` Docker version 19.03.5, build 633a0ea ``` Windows 10 Pro Version 1903 OS build 18362.535
https://github.com/localstack/localstack/issues/1891
https://github.com/localstack/localstack/pull/2052
e9fa1eec0b3407fdaca1dd4b068ca929c6dd1911
5375dc93a2365074d0e66719349e1c2df9e0a89f
"2019-12-20T09:47:59Z"
python
"2020-02-14T00:40:32Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,886
["localstack/services/awslambda/lambda_api.py", "localstack/services/awslambda/lambda_executors.py", "localstack/services/sqs/sqs_listener.py", "localstack/utils/aws/aws_models.py", "localstack/utils/aws/dead_letter_queue.py", "localstack/utils/testutil.py", "tests/integration/lambdas/lambda_integration.py", "tests/integration/test_api_gateway.py", "tests/integration/test_lambda.py", "tests/integration/test_sqs.py"]
Exception in lambda not being put on dead letter queue
May be a duplicate of https://github.com/localstack/localstack/issues/988 but due to the age I will re raise. I'm having issues when I throw an exception in a lambda - it isn't appearing on my dead letter queue. Is there something I am missing, I would like an sqs event exception to appear on the poison queue when an exception happens. Below is the basic config: ```` sqsclient.create_queue(QueueName = 'test-queue') sqsclient.create_queue(QueueName = 'test-queue-poison') lambda_client.create_function( FunctionName='MyFunction', Runtime='dotnetcore2.1', Role='role', Handler='Handler', Code=code, DeadLetterConfig={'TargetArn': 'test-queue-poison-arn'}) lambda_client.create_event_source_mapping( EventSourceArn='test-queue-arn', FunctionName='MyFunction', Enabled=True, BatchSize=100, StartingPosition='LATEST') ```` So when I raise a new (.net)exception within the lambda function no message is going to the dead letter queue. I can confirm that all is attached together OK as all other scenarios work, and the above code is pseudo-ish.
https://github.com/localstack/localstack/issues/1886
https://github.com/localstack/localstack/pull/1898
8a31ddcbfa753f396012cc8890977502789e6bae
77d4061526741d9063d388de0a183347b5d9c428
"2019-12-19T19:27:59Z"
python
"2019-12-23T11:11:24Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,877
["localstack/services/awslambda/lambda_executors.py", "localstack/utils/cloudformation/template_deployer.py"]
Cannot get S3 BucketPolicy created via CloudFormation
I created a CloudFormation stack using the template below via Boto3 Python method `cf_client.create_stack(StackName="test")`; however, when I attempt to call `s3_client.get_bucket_policy(Bucket="my-bucket")` I receive a `NoSuchBucketPolicy ... The bucket policy does not exist` error. ```yaml --- AWSTemplateFormatVersion: "2010-09-09" Description: A sample template Resources: TestBucket: Type: AWS::S3::Bucket Properties: BucketName: my-bucket AccessControl: PublicRead BucketEncryption: ServerSideEncryptionConfiguration: - ServerSideEncryptionByDefault: SSEAlgorithm: AES256 TestBucketPolicy: Type: AWS::S3::BucketPolicy Properties: Bucket: Ref: TestBucket PolicyDocument: Id: TestBucketPolicy Statement: - Action: - "s3:GetObject" Effect: "Allow" Resource: Fn::Join: - "" - - "arn:aws:s3:::" - Ref: TestBucket - "/*" Principal: "*" Condition: StringLike: aws:Referer: - "http://www.example.com/*" - "http://example.com/*" ``` Is this something that's supported? Thanks in advance.
https://github.com/localstack/localstack/issues/1877
https://github.com/localstack/localstack/pull/2104
58bf72accab5af7d5148c9c606d05ed71045e503
98da886e33299b14e986806319d70da71f586009
"2019-12-18T15:28:11Z"
python
"2020-02-28T08:30:42Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,859
["localstack/services/s3/s3_listener.py", "tests/integration/test_s3.py"]
Localstack doesn't return some metadata for S3 Range requests
Using s3 range request with localstack causes incorrect content type to be returned & some metadata to be missing: To reproduce, put object: `aws s3api put-object --endpoint http://localhost:3006 --bucket some-bucket --key some-dir/some-key --body text.txt --content-type text/plain --content-language en-US --cache-control no-cache` And compare regular request vs range one: `aws s3api get-object --endpoint http://localhost:3006 --bucket some-bucket --key some-dir/some-key output.txt --range bytes=0-3` `aws s3api get-object --endpoint http://localhost:3006 --bucket some-bucket --key some-dir/some-key output.txt` This works correctly (returns the same metadata regardless of using `--range bytes=0-3`) on aws s3. Also: Getting object with/without `range bytes=0-3` should return header "AcceptRanges: bytes" but it doesn't.
https://github.com/localstack/localstack/issues/1859
https://github.com/localstack/localstack/pull/2339
df8a1c0fc8cb4beecf824ff59274bb06540278a1
c0cfa18c0571184f97bfca18b245b0e35886519f
"2019-12-12T11:04:47Z"
python
"2020-04-22T21:22:01Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,851
["README.md", "localstack/config.py", "localstack/services/awslambda/lambda_api.py", "localstack/services/awslambda/lambda_executors.py", "localstack/services/s3/s3_listener.py", "tests/integration/lambdas/lambda_environment.py", "tests/integration/test_stepfunction.py"]
Add flag to enable/disable removal of Docker containers after Lambda execution
<!-- Love localstack? Please consider supporting our collective: 👉 https://opencollective.com/localstack/donate --> Having upgraded to the latest LocalStack version, I've noticed that Docker containers from Lambda executions are immediately removed when they terminate. This was added in https://github.com/localstack/localstack/pull/1584 I can appreciate the need to clean up containers, however this feature of having them stay up is actually very useful for debugging things when they go wrong! Would it be possible to have a flag so that when running LocalStack we can specify whether to remove containers on completion? Something like: ``` services: localstack: image: localstack/localstack:latest ports: - "4567-4593:4567-4593" environment: - SERVICES=serverless,ssm,stepfunctions - DOCKER_HOST=unix:///var/run/docker.sock - LAMBDA_EXECUTOR=docker - REMOVE_CONTAINERS_ON_LAMBDA_TERMINATE=true #(or false) volumes: - "${TMPDIR:-/tmp/localstack}:/tmp/localstack" - "/var/run/docker.sock:/var/run/docker.sock" ``` Thanks for the great work folks!
https://github.com/localstack/localstack/issues/1851
https://github.com/localstack/localstack/pull/1856
de6d408b12586aa09d2e51e558a07a4ef5df9ea3
4712963ea335451606afa2c04a699790244bbe35
"2019-12-10T13:40:19Z"
python
"2019-12-12T01:57:07Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,846
["localstack/plugins.py", "localstack/services/ec2/__init__.py", "localstack/services/ec2/ec2_starter.py", "localstack/services/events/events_listener.py", "localstack/services/infra.py"]
Creating VPC, describe_vpc_classic_link action missing?
I'm running the latest version of localstack using a docker-compose file. I'm trying to deploy a VPC, subnet and security group for a fleet of lambda functions using the following ``` resource "aws_vpc" "pos_vpc" { provider = aws.local cidr_block = "10.0.0.0/16" tags = { project = var.prefix } } resource "aws_subnet" "pos_aws_subnet1" { provider = aws.local availability_zone = data.aws_availability_zones.available.names[0] cidr_block = "10.0.1.0/24" vpc_id = aws_vpc.pos_vpc.id tags = { project = var.prefix } } resource "aws_subnet" "pos_aws_subnet2" { provider = aws.local availability_zone = data.aws_availability_zones.available.names[1] cidr_block = "10.0.2.0/24" vpc_id = aws_vpc.pos_vpc.id tags = { project = var.prefix } } resource "aws_db_subnet_group" "pos_subnet_group" { provider = aws.local name = "${var.prefix}-${var.env_name}-subnet-group" subnet_ids = [aws_subnet.pos_aws_subnet1.id, aws_subnet.pos_aws_subnet2.id] tags = { project = var.prefix } } resource "aws_security_group" "pos_security_group" { provider = aws.local name = "${var.prefix}-${var.env_name}-security-group" vpc_id = aws_vpc.pos_vpc.id ingress { cidr_blocks = [aws_vpc.pos_vpc.cidr_block] from_port = 5432 to_port = 5432 protocol = "tcp" } egress { cidr_blocks = [aws_vpc.pos_vpc.cidr_block] from_port = 0 to_port = 0 protocol = "-1" } tags = { project = var.prefix } } ``` But I get the following error: ``` "The {0} action has not been implemented in class {1}".format(action, self.__class__)) localstack | NotImplementedError: The describe_vpc_classic_link action has not been implemented in class <class 'moto.ec2.responses.EC2Response'> ``` Does this mean that localstack doesn't currently support VPCs?
https://github.com/localstack/localstack/issues/1846
https://github.com/localstack/localstack/pull/2112
0a6e57ac423df7112997b24f7d7049ca48d154d5
a9b593c1699aeef9efbfcfc45ff13155fe8662e8
"2019-12-09T05:20:07Z"
python
"2020-02-29T22:53:54Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,841
["localstack/config.py", "localstack/services/cloudformation/cloudformation_starter.py", "localstack/services/sqs/sqs_listener.py", "requirements.txt", "tests/integration/test_api_gateway.py", "tests/unit/test_sns.py", "tests/unit/test_sqs.py"]
MD5 returned by SQS does not match the calculation on the original request
It looks like a duplicate of old issue https://github.com/localstack/localstack/issues/78 But now it's reproducible for me with the latest version of LocalStack.
https://github.com/localstack/localstack/issues/1841
https://github.com/localstack/localstack/pull/1850
dd0a9742da83dd05e110d35f5159fa656c4871c4
0d67b3da8fefa05a077968be41220cf46764722a
"2019-12-08T09:34:17Z"
python
"2019-12-10T22:28:53Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,829
["localstack/utils/cloudformation/template_deployer.py", "tests/integration/templates/template1.yaml", "tests/integration/test_cloudformation.py"]
aws cloudformation sns subscription FilterPolicy not created
When a subscription is created using cloudformation: ``` "ProfileChangedSubscription": { "Type": "AWS::SNS::Subscription", "Properties": { "Endpoint": { "Fn::GetAtt": [ "ProfileChangedQueue", "Arn" ] }, "Protocol": "sqs", "FilterPolicy": { "eventType": [ "created" ] }, "TopicArn": { "Fn::ImportValue": { "Fn::Sub": "${ProfilesProfilePublishStack}-ProfileChangedTopic" } } } } ``` The specified subscription filter policy is not created. When I run `get-subscription-attributes`, I get information about non-existing filter policy: ``` { "Attributes": { "TopicArn": "arn:aws:sns:us-east-1:000000000000:profile-changed-topic", "Endpoint": "arn:aws:sqs:us-east-1:000000000000:profile-changed-queue", "Protocol": "sqs", "SubscriptionArn": "arn:aws:sns:us-east-1:000000000000:profile-changed-topic:936a58be-525b-4228-bfdb-c4b2f6048e8c", "FilterPolicy": "None" } } ```
https://github.com/localstack/localstack/issues/1829
https://github.com/localstack/localstack/pull/1964
03c6f4bf250edd18eb818ed65090f508636b0bff
e753853752b9511eae57b8c6f9d115e1c9990d78
"2019-12-05T09:28:56Z"
python
"2020-01-18T19:29:07Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,824
["localstack/services/es/es_api.py", "localstack/services/s3/s3_listener.py"]
S3 Terraform issue
<!-- Love localstack? Please consider supporting our collective: 👉 https://opencollective.com/localstack/donate --> Hi there. I'm having an issue when using terraform to deploy resources into a running instance of localtack. This happens when I start localstack from a `docker-compose` file using the `localstack/localstack:latest` image and also running `localstack start`. I'm using Terraform 0.12 and the following `.tf` file: ``` variable "prefix" {} variable "region" {} terraform { required_version = ">= 0.12" backend "local" { } } provider "aws" { region = var.region skip_credentials_validation = true skip_metadata_api_check = true skip_region_validation = true s3_force_path_style = true endpoints { s3 = "http://localhost:4572" } } resource "aws_s3_bucket" "test-bucket" { acl = "public-read" bucket = "${var.prefix}-${terraform.workspace}-sample-bucket" force_destroy = true } ``` Executing `tf init`, `tf plan` and `tf apply` passing the necessary variables creates the bucket with no problem. The second time I run `tf apply` with no changes to our `.tf` file, terraform tells me that it needs to refresh state to the following: ``` Terraform will perform the following actions: # aws_s3_bucket.test-bucket will be updated in-place ~ resource "aws_s3_bucket" "test-bucket" { acl = "public-read" arn = "arn:aws:s3:::anz-pos-default-sample-bucket" bucket = "anz-pos-default-sample-bucket" bucket_domain_name = "anz-pos-default-sample-bucket.s3.amazonaws.com" bucket_regional_domain_name = "anz-pos-default-sample-bucket.s3.ap-southeast-2.amazonaws.com" force_destroy = true hosted_zone_id = "Z1WCIGYICN2BYD" id = "anz-pos-default-sample-bucket" region = "ap-southeast-2" tags = {} - object_lock_configuration { } - replication_configuration { } - server_side_encryption_configuration { } versioning { enabled = false mfa_delete = false } } Plan: 0 to add, 1 to change, 0 to destroy. ``` Why do `object_lock_configuration`, `replication_configuration` and `server_side_encryption_configuration` need to be removed? I'm posting this issue here, since I can't replicate the error when using an actual AWS account as a remote AWS provider, so I'm assuming this may be something I'm doing wrong with Localstack.
https://github.com/localstack/localstack/issues/1824
https://github.com/localstack/localstack/pull/1845
9c53c081382267c67c6fb336779dd0a3856a74fa
fccc6ab3a21f69b2eb4cb3e69effb3068dd9e690
"2019-12-03T04:44:48Z"
python
"2019-12-08T22:00:06Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,822
["localstack/services/awslambda/lambda_api.py", "tests/unit/test_lambda.py"]
ApiGateway, terraform issue
Hi, I'm trying to set up the ApiGateway Lambda Authorizer but it looks like it doesn't work yet Terraform code: ``` resource "aws_api_gateway_authorizer" "demo" { name = "demo" rest_api_id = "${aws_api_gateway_rest_api.demo.id}" authorizer_uri = "${aws_lambda_function.authorizer.invoke_arn}" authorizer_credentials = "${aws_iam_role.invocation_role.arn}" type = "TOKEN" } resource "aws_api_gateway_rest_api" "demo" { name = "auth-demo" } resource "aws_iam_role" "invocation_role" { name = "api_gateway_auth_invocation" path = "/" assume_role_policy = <<EOF ... EOF } resource "aws_iam_role_policy" "invocation_policy" { name = "default" role = "${aws_iam_role.invocation_role.id}" policy = <<EOF ... EOF } resource "aws_iam_role" "lambda" { name = "demo-lambda" assume_role_policy = <<EOF { "Version": "2012-10-17", "Statement": [ ... } resource "aws_lambda_function" "authorizer" { filename = "${var.lambda_auth}" function_name = "api_gateway_authorizer" role = "${aws_iam_role.lambda.arn}" handler = "src/script.lambda_handler" runtime = "python3.7" source_code_hash = "${filebase64sha256("${var.lambda_auth}")}" } ``` I'm getting this on the debug logs: ``` Traceback (most recent call last): File "/opt/code/localstack/.venv/lib/python3.7/site-packages/werkzeug/serving.py", line 304, in run_wsgi execute(self.server.app) File "/opt/code/localstack/.venv/lib/python3.7/site-packages/werkzeug/serving.py", line 292, in execute application_iter = app(environ, start_response) File "/opt/code/localstack/.venv/lib/python3.7/site-packages/moto/server.py", line 132, in __call__ return backend_app(environ, start_response) File "/opt/code/localstack/.venv/lib/python3.7/site-packages/flask/app.py", line 2309, in __call__ return self.wsgi_app(environ, start_response) File "/opt/code/localstack/.venv/lib/python3.7/site-packages/flask/app.py", line 2295, in wsgi_app response = self.handle_exception(e) File "/opt/code/localstack/.venv/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function return cors_after_request(app.make_response(f(*args, **kwargs))) File "/opt/code/localstack/.venv/lib/python3.7/site-packages/flask/app.py", line 1741, in handle_exception reraise(exc_type, exc_value, tb) File "/opt/code/localstack/.venv/lib/python3.7/site-packages/flask/_compat.py", line 35, in reraise raise value File "/opt/code/localstack/.venv/lib/python3.7/site-packages/flask/app.py", line 2292, in wsgi_app response = self.full_dispatch_request() File "/opt/code/localstack/.venv/lib/python3.7/site-packages/flask/app.py", line 1815, in full_dispatch_request rv = self.handle_user_exception(e) File "/opt/code/localstack/.venv/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function return cors_after_request(app.make_response(f(*args, **kwargs))) File "/opt/code/localstack/.venv/lib/python3.7/site-packages/flask/app.py", line 1718, in handle_user_exception reraise(exc_type, exc_value, tb) File "/opt/code/localstack/.venv/lib/python3.7/site-packages/flask/_compat.py", line 35, in reraise raise value File "/opt/code/localstack/.venv/lib/python3.7/site-packages/flask/app.py", line 1813, in full_dispatch_request rv = self.dispatch_request() File "/opt/code/localstack/.venv/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/opt/code/localstack/.venv/lib/python3.7/site-packages/moto/core/utils.py", line 142, in __call__ if len(result) == 3: TypeError: object of type 'NoneType' has no len() ``` And sometimes this in terraform `Error: error waiting for Lambda Function (api_gateway_authorizer) creation: unexpected state '', wanted target 'Active'. last error: %!s(<nil>)` Is this feature available yet ? Thank you
https://github.com/localstack/localstack/issues/1822
https://github.com/localstack/localstack/pull/1838
2293b9aa365cb36fa9e62e5d321ee81688a82950
c4fb0eccc2bb99a768c55a385697788b2a5f9ed7
"2019-12-02T15:34:08Z"
python
"2019-12-07T14:23:42Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,811
["localstack/utils/common.py", "tests/unit/utils/__init__.py", "tests/unit/utils/test_common.py"]
Potential race condition in `GenericProxy.create_ssl_cert`.
There appears to be a race condition when multiple threads invoke `GenericProxy.create_ssl_cert` when using `USE_SSL=1`. It causes a cascading failure of the service as shown by the following logs. ``` [36mlocalstack_1 | 2019-11-27T18:59:49:ERROR:localstack.services.generic_proxy: Exception running proxy on port 4576: [SSL] PEM lib (_ssl.c:3503) Traceback (most recent call last): localstack_1 | File "/opt/code/localstack/localstack/services/generic_proxy.py", line 386, in run_cmd localstack_1 | server_side=True, certfile=combined_file) localstack_1 | File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket localstack_1 | ciphers=ciphers) localstack_1 | File "/usr/lib/python3.6/ssl.py", line 750, in __init__ localstack_1 | self._context.load_cert_chain(certfile, keyfile) localstack_1 | ssl.SSLError: [SSL] PEM lib (_ssl.c:3503) localstack_1 | localstack_1 | 2019-11-27T18:59:49:ERROR:localstack.services.generic_proxy: Exception running proxy on port 4569: [SSL] PEM lib (_ssl.c:3503) Traceback (most recent call last): localstack_1 | File "/opt/code/localstack/localstack/services/generic_proxy.py", line 386, in run_cmd localstack_1 | server_side=True, certfile=combined_file) localstack_1 | File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket localstack_1 | ciphers=ciphers) localstack_1 | File "/usr/lib/python3.6/ssl.py", line 750, in __init__ localstack_1 | self._context.load_cert_chain(certfile, keyfile) localstack_1 | ssl.SSLError: [SSL] PEM lib (_ssl.c:3503) localstack_1 | localstack_1 | 2019-11-27T18:59:49:INFO:localstack.multiserver: Starting multi API server process on port 51492 localstack_1 | 2019-11-27T18:59:49:ERROR:localstack.services.generic_proxy: Exception running proxy on port 4568: [SSL] PEM lib (_ssl.c:3503) Traceback (most recent call last): localstack_1 | File "/opt/code/localstack/localstack/services/generic_proxy.py", line 386, in run_cmd localstack_1 | server_side=True, certfile=combined_file) localstack_1 | File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket localstack_1 | ciphers=ciphers) localstack_1 | File "/usr/lib/python3.6/ssl.py", line 750, in __init__ localstack_1 | self._context.load_cert_chain(certfile, keyfile) localstack_1 | ssl.SSLError: [SSL] PEM lib (_ssl.c:3503) localstack_1 | localstack_1 | 2019-11-27T18:59:49:ERROR:localstack.services.generic_proxy: Exception running proxy on port 4586: [SSL] PEM lib (_ssl.c:3503) Traceback (most recent call last): localstack_1 | File "/opt/code/localstack/localstack/services/generic_proxy.py", line 386, in run_cmd localstack_1 | server_side=True, certfile=combined_file) localstack_1 | File "/usr/lib/python3.6/ssl.py", line 1158, in wrap_socket localstack_1 | ciphers=ciphers) localstack_1 | File "/usr/lib/python3.6/ssl.py", line 750, in __init__ localstack_1 | self._context.load_cert_chain(certfile, keyfile) localstack_1 | ssl.SSLError: [SSL] PEM lib (_ssl.c:3503) localstack_1 | ``` `common.generate_ssl_cert` has some `os.path.exists` checks while later multiple independent `save_file` calls. These look like they might race and cause the 3 ssl files to become invalid.
https://github.com/localstack/localstack/issues/1811
https://github.com/localstack/localstack/pull/1821
41b37c24db442065566d706851772304105bfacf
caad6160880599b125befd59a2d12fc80ceaa170
"2019-11-27T19:39:23Z"
python
"2019-12-02T09:59:21Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,802
["README.md", "localstack/services/awslambda/lambda_api.py", "localstack/services/awslambda/lambda_executors.py"]
class not found error from localstack server less
Hi, I deployed my maven function and then invoked as below. But when I try to run docker image I get ClassNot Found error. ``` C02TX00EHV2H:hellome xx$ serverless invoke local -f hellome --log Serverless: Packaging service... Serverless: Building Docker image... START RequestId: fc013012-d402-1cf2-ca95-2ec1ab9f45ab Version: $LATEST 2019-11-25 02:30:59 fc013012-d402-1cf2-ca95-2ec1ab9f45ab INFO Handler:18 - received: null END RequestId: fc013012-d402-1cf2-ca95-2ec1ab9f45ab REPORT RequestId: fc013012-d402-1cf2-ca95-2ec1ab9f45ab Init Duration: 5309.67 ms Duration: 3192.98 ms Billed Duration: 3200 ms Memory Size: 1536 MB Max Memory Used: 86 MB {"statusCode":200,"body":"{\"message\":\"Go Serverless v1.x! Your function executed successfully!\",\"input\":null}","headers":{"X-Powered-By":"AWS Lambda \u0026 serverless"},"isBase64Encoded":false} C02TX00EHV2H:hellome xx$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE lambci/lambda java11 b4f3365c08ef 28 hours ago 395MB C02TX00EHV2H:hellome xx$ docker run -v "$PWD":/var/task lambci/lambda:java11 com.serverless.Handler'{"resource": "testme", "httpMethod": "GET"}' START RequestId: 86d2fab4-3805-1d43-d11a-6ec85b3c4347 Version: $LATEST Class not found: com.serverless.Handler{"resource": "testme", "httpMethod": "GET"}: java.lang.ClassNotFoundException java.lang.ClassNotFoundException: com.serverless.Handler{"resource": "testme", "httpMethod": "GET"} at java.base/java.net.URLClassLoader.findClass(Unknown Source) at java.base/java.lang.ClassLoader.loadClass(Unknown Source) at java.base/java.lang.ClassLoader.loadClass(Unknown Source) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Unknown Source) ``` Below is my Handler class : (I used Maven, Java 11 runtime) ``` package com.serverless; import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws.services.lambda.runtime.RequestHandler; import java.util.Collections; import java.util.Map; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; public class Handler implements RequestHandler<Map<String, Object>, ApiGatewayResponse> { private static final Logger LOG = LogManager.getLogger(Handler.class); public Handler() { } public ApiGatewayResponse handleRequest(Map<String, Object> input, Context context) { LOG.info("received: {}", input); Response responseBody = new Response("Go Serverless v1.x! Your function executed successfully!", input); return ApiGatewayResponse.builder().setStatusCode(200).setObjectBody(responseBody).setHeaders(Collections.singletonMap("X-Powered-By", "AWS Lambda & serverless")).build(); } } ```
https://github.com/localstack/localstack/issues/1802
https://github.com/localstack/localstack/pull/1963
3f334986fa89df78ddff3950e3ef727c9e8d0a22
03c6f4bf250edd18eb818ed65090f508636b0bff
"2019-11-25T02:54:46Z"
python
"2020-01-18T15:30:15Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,790
["localstack/services/s3/s3_listener.py", "tests/integration/test_s3.py"]
S3 object metadata behavior is inconsistent with AWS behavior
When PUTting an S3 object to Localstack with attached Metadata, if a key contains an underscore it is replaced with a dash. However, when the same request is performed against the real S3, the key is not modified. Example Input: key_with_underscores => test Localstack Result: key-with-underscores => test S3 Result: key_with_underscores => test Localstack Version: 0.10.5 Tested using AWS v2 S3 client
https://github.com/localstack/localstack/issues/1790
https://github.com/localstack/localstack/pull/1965
e753853752b9511eae57b8c6f9d115e1c9990d78
00d1878904dc8479e1d7afa50899c02fbf201f05
"2019-11-22T18:53:06Z"
python
"2020-01-19T10:32:11Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,761
["localstack/services/awslambda/lambda_executors.py", "localstack/services/dynamodb/dynamodb_listener.py", "localstack/utils/common.py", "requirements.txt"]
Installation question -- Localstack start error: cannot import name requests
trying to install localstack with pip(pip2) and python 2.7 * OS: ubuntu 18.04 LTS * verify python: python --version ====> Output: Python 2.7.15+ * verify python location: whereis python ===> python: /usr/bin/python2.7-config /usr/bin/python /usr/bin/python3.6m /usr/bin/python3.6 /usr/bin/python2.7 /usr/lib/python3.7 /usr/lib/python3.6 /usr/lib/python2.7 /etc/python /etc/python3.6 /etc/python2.7 /usr/local/lib/python3.6 /usr/local/lib/python2.7 /usr/include/python3.6m /usr/include/python2.7 /usr/share/python /usr/share/man/man1/python.1.gz * ls -l /usr/bin/python ====> lrwxrwxrwx 1 root root 9 Apr 16 2018 /usr/bin/python -> python2.7 * check PATH: echo $PATH ====> OTHERPATH:/usr/bin:OTHERPATH * check pip: pip --version ====> pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7) * check pip bin PATH: whereis pip ====> pip: /usr/bin/pip * pip3 is not installed. [install.log](https://github.com/localstack/localstack/files/3843879/install.log) * check localstack install status: pip list ====> localstack (0.10.5) localstack-client (0.15) localstack-ext (0.10.59) * check docker version: docker --version Docker version 19.03.1, build 74b1e89 * start localstack: localstack start ====> /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! /usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.7) or chardet (3.0.4) doesn't match a supported version! Traceback (most recent call last): File "/home/jguo/.local/bin/localstack", line 35, in <module> from localstack.utils import cli, bootstrap File "/home/jguo/.local/lib/python2.7/site-packages/localstack/utils/cli.py", line 3, in <module> from localstack.utils.bootstrap import ( File "/home/jguo/.local/lib/python2.7/site-packages/localstack/utils/bootstrap.py", line 11, in <module> import pip as pip_mod File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 31, in <module> from pip.vcs import git, mercurial, subversion, bazaar # noqa File "/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9, in <module> from pip.download import path_to_url File "/usr/lib/python2.7/dist-packages/pip/download.py", line 40, in <module> from pip._vendor import requests, six ImportError: cannot import name requests <!-- Love localstack? Please consider supporting our collective: 👉 https://opencollective.com/localstack/donate -->
https://github.com/localstack/localstack/issues/1761
https://github.com/localstack/localstack/pull/1771
4d020b0cedc6cd4c8b6a815b38759a23456f93da
bf76bdf1a7310e3f3450f26bd5a07fa8321a6b98
"2019-11-13T23:28:41Z"
python
"2019-11-19T12:00:48Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,751
["Dockerfile"]
Running awslocal in the latest image fails
Running the `awslocal` command in the `localstack/localstack:latest` image (digest `e022a3263089`) fails with ``` bash-5.0# awslocal Traceback (most recent call last): File "/usr/bin/awslocal", line 29, in <module> from localstack_client import config ModuleNotFoundError: No module named 'localstack_client' ``` Using the `localstack/localstack:0.10.5` image (digest `cbcdc058f1d2`) works: ``` bash-4.4# awslocal usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters] To see help text, you can run: aws help aws <command> help aws <command> <subcommand> help aws: error: too few arguments ```
https://github.com/localstack/localstack/issues/1751
https://github.com/localstack/localstack/pull/1756
5fbe387ccd4da7b01c9f36a85544ce052e923d61
5d492fcab14e57b70a12195fce5edae49562531b
"2019-11-12T11:17:10Z"
python
"2019-11-13T13:45:53Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,733
["localstack/services/dynamodb/dynamodb_listener.py", "localstack/services/s3/s3_starter.py", "localstack/utils/aws/aws_stack.py"]
S3 objects larger than 6MB cannot be accessed via the S3 URL (403 forbidden)
Normally S3 objects in localstack can be accessed via `http://localhost:4572/bucket/key`. However, if the object is 7 MBs or larger, attempting to access it via this URL will result in a 403 error. Objects any smaller are retrieved as expected. (Possibly related: Lambda response size is limited to 6MB. Perhaps that is being used by accident?)
https://github.com/localstack/localstack/issues/1733
https://github.com/localstack/localstack/pull/1755
4525e6b858b8dda2cec5ad76a757059e65bb915c
5fbe387ccd4da7b01c9f36a85544ce052e923d61
"2019-11-07T11:32:33Z"
python
"2019-11-13T02:29:39Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,728
["README.md", "localstack/config.py", "localstack/constants.py", "localstack/services/apigateway/apigateway_listener.py", "localstack/utils/cloudformation/template_deployer.py"]
Setting TEST_AWS_ACCOUNT_ID does not change the account ID in ARNs
It is my understanding that setting an environment varialbe `TEST_AWS_ACCOUNT_ID` for localstack sets that as the AWS account for the user in localstack. However, setting it does not actually change any ARNs. For example: 1. Start localstack using `TEST_AWS_ACCOUNT_ID="111111111111" DEBUG=1 localstack start` 2. Deploy anything with an ARN (in this example I deployed a lambda) 3. Check the ARN. Example output for lambda: ```json $ awslocal lambda list-functions { "Functions": [ { "FunctionName": "localtest-local-hello", "FunctionArn": "arn:aws:lambda:us-east-1:000000000000:function:localtest-local-hello", "Runtime": "nodejs10.x", "Role": "test_role", "Handler": "handler.hello", "CodeSize": 3077, "Description": "", "Timeout": 6, "MemorySize": 1024, "LastModified": "2019-11-06T06:43:53.451+0000", "CodeSha256": "V77gR13o90ET7+XquXBBc3Rxr1qDu1bE7S+A0Wbx5ys=", "Version": "$LATEST", "TracingConfig": { "Mode": "PassThrough" }, "RevisionId": "3d4ed679-c1a9-4b7e-ad9e-f27e8543c5e9" } ] } ``` ARN is still 000000000000
https://github.com/localstack/localstack/issues/1728
https://github.com/localstack/localstack/pull/1731
d7a9cf15347a63b94e25546508891f9808e8c606
58f31c5bcc1b7501cb4046f32e6cb9c11eeb9e90
"2019-11-06T06:50:06Z"
python
"2019-11-07T00:00:47Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,727
["README.md", "localstack/config.py", "localstack/constants.py", "localstack/services/apigateway/apigateway_listener.py", "localstack/utils/cloudformation/template_deployer.py"]
API Gateway unable to find any integrations
With today's update, API Gateway consistently fails to find any of its' defined paths. For example, the following `serverless.yml` : ```yaml service: "localtest" provider: name: "aws" runtime: "nodejs10.x" functions: hello: handler: "handler.hello" events: - http: path: "/" method: "get" integration: "lambda-proxy" - http: path: "/test" method: "get" integration: "lambda-proxy" plugins: - "serverless-localstack" custom: localstack: stages: - "local" ``` If deployed, will result in the following: ``` ~$ sls deploy --stage local Serverless: Using serverless-localstack Serverless: Packaging service... Serverless: Excluding development dependencies... Serverless: Creating Stack... Serverless: Checking Stack create progress... . Serverless: Stack create finished... Serverless: Uploading CloudFormation file to S3... Serverless: Uploading artifacts... Serverless: Uploading service localtest.zip file to S3 (3.02 KB)... Serverless: Validating template... Serverless: Skipping template validation: Unsupported in Localstack Serverless: Updating Stack... Serverless: Checking Stack update progress... . Serverless: Stack update finished... Service Information service: localtest stage: local region: us-east-1 stack: localtest-local resources: 11 api keys: None endpoints: GET - http://localhost:4567/restapis/sz3ijrff91/local/_user_request_/ GET - http://localhost:4567/restapis/sz3ijrff91/local/_user_request_/test functions: hello: localtest-local-hello layers: None Serverless: Run the "serverless" command to setup monitoring, troubleshooting and testing. ~$ curl http://localhost:4567/restapis/sz3ijrff91/local/_user_request_/ {"message": "Unable to find integration for path /restapis/sz3ijrff91/local/_user_request_/"} ~$ curl http://localhost:4567/restapis/sz3ijrff91/local/_user_request_/test {"message": "Unable to find integration for path /restapis/sz3ijrff91/local/_user_request_/test"} ```
https://github.com/localstack/localstack/issues/1727
https://github.com/localstack/localstack/pull/1731
d7a9cf15347a63b94e25546508891f9808e8c606
58f31c5bcc1b7501cb4046f32e6cb9c11eeb9e90
"2019-11-06T06:39:46Z"
python
"2019-11-07T00:00:47Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,717
["localstack/services/awslambda/lambda_api.py", "tests/integration/test_lambda.py"]
SerializationError: failed decoding JSON RPC response caused by: unsupported JSON value
I'm using Terraform to create an API Gateway and required Lambda Functions. I do realize this might not be supported, and I can work around any limitations that Localstack might have, **But**, I have no idea how to debug the response I get from Terraform, and/or then dig into Localstack to see what is getting sent or returned. If anyone has any guidance, suggestions, or examples they would greatly be appreciated. -Patrick@Okta `Error: Error applying plan: 1 error(s) occurred: * aws_lambda_permission.apigw_lambda: 1 error(s) occurred: * aws_lambda_permission.apigw_lambda: SerializationError: failed decoding JSON RPC response caused by: unsupported JSON value (map[Id:LambdaFuncAccess-4bbef270 PolicyArn:arn:aws:iam::000000000000:policy/lambda_policy_terraformLambdaWebsite Statement:[map[Action:lambda:InvokeFunction Effect:Allow Resource:arn:aws:lambda:us-east-1:000000000000:function:terraformLambdaWebsite Sid:4bbef270]] Version:2012-10-17])`
https://github.com/localstack/localstack/issues/1717
https://github.com/localstack/localstack/pull/1739
1a7744509a9548e785f6bdf47743d8f51abd17ab
23cd5fba5b3a2012f280a10b0d7266514fc46eb5
"2019-11-04T05:59:50Z"
python
"2019-11-08T16:44:22Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,707
["localstack/plugins.py", "localstack/services/awslambda/lambda_api.py", "localstack/services/iam/iam_starter.py", "localstack/services/infra.py", "tests/integration/test_lambda.py"]
Lambda RemovePermission throwing serialization error
- When attempting to remove a created lambda permission with the new fix from https://github.com/localstack/localstack/issues/1260, throws up `SerializationError` Code being called: ``` func deleteLambdaPermission(ctx context.Context, destinationLambdaARN, permissionStatementID string) (err error) { lambdaClient := services.LambdaClient() lambdaRemovePermissionInput := &lambda.RemovePermissionInput{ FunctionName: aws.String(destinationLambdaARN), StatementId: aws.String(permissionStatementID), } _, err = lambdaClient.RemovePermissionWithContext(ctx, lambdaRemovePermissionInput) return } ``` Checking for error in tests shows the following ``` Expected <*awserr.requestError | 0xc0004a2180>: { awsError: { code: "SerializationError", message: "failed to unmarshal response error", errs: [ { awsError: { code: "UnmarshalError", message: "failed decoding error message", errs: [ { msg: "invalid character '<' looking for beginning of value", Offset: 1, }, ], }, bytes: [60, 33, 68, 79, 67, 84, 89, 80, 69, 32, 72, 84, 77, 76, 32, 80, 85, 66, 76, 73, 67, 32, 34, 45, 47, 47, 87, 51, 67, 47, 47, 68, 84, 68, 32, 72, 84, 77, 76, 32, 51, 46, 50, 32, 70, 105, 110, 97, 108, 47, 47, 69, 78, 34, 62, 10, 60, 116, 105, 116, 108, 101, 62, 52, 48, 52, 32, 78, 111, 116, 32, 70, 111, 117, 110, 100, 60, 47, 116, 105, 116, 108, 101, 62, 10, 60, 104, 49, 62, 78, 111, 116, 32, 70, 111, 117, 110, 100, 60, 47, 104, 49, 62, 10, 60, 112, 62, 84, 104, 101, 32, 114, 101, 113, 117, 101, 115, 116, 101, 100, 32, 85, 82, 76, 32, 119, 97, 115, 32, 110, 111, 116, 32, 102, 111, 117, 110, 100, 32, 111, 110, 32, 116, 104, 101, 32, 115, 101, 114, 118, 101, 114, 46, 32, 73, 102, 32, 121, 111, 117, 32, 101, 110, 116, 101, 114, 101, 100, 32, 116, 104, 101, 32, 85, 82, 76, 32, 109, 97, 110, 117, 97, 108, 108, 121, 32, 112, 108, 101, 97, 115, 101, 32, 99, 104, 101, 99, 107, 32, 121, 111, 117, 114, 32, 115, 112, 101, 108, 108, 105, 110, 103, 32, 97, 110, 100, 32, 116, 114, 121, 32, 97, 103, 97, 105, 110, 46, 60, 47, 112, 62, 10], }, ], }, statusCode: 404, requestID: "", bytes: nil, } to be nil ```
https://github.com/localstack/localstack/issues/1707
https://github.com/localstack/localstack/pull/1709
e3e4354bf4ce6d4afe45a6dd46afa1e3e534d3e8
9cba1010dfcbf2b7672df4d7da46b7e8ab287f64
"2019-10-31T06:15:43Z"
python
"2019-10-31T19:39:54Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,700
["localstack/services/cloudformation/cloudformation_starter.py", "tests/integration/test_cloudformation.py"]
CloudFormation change-set fails if elements are unchanged
I can reproduce this with DynamoDB and S3. For example, this file as `template.json`: ```json { "AWSTemplateFormatVersion": "2010-09-09", "Transform": "AWS::Serverless-2016-10-31", "Resources": { "S3Setup": { "Type": "AWS::S3::Bucket", "Properties": { "BucketName": "testbucket" } } } } ``` Apply using `awslocal cloudformation create-stack --stack-name local --template-body file://template.json` -> 200 OK Immediately followed by `awslocal cloudformation create-change-set --stack-name local --change-set-name nochanges --template-body file://template.json` -> Error Errors happen if stack has multiple objects and any one has no changes, which makes it impossible to update the stack via cloudformation. Here's a DynamoDB example for which it happens as well: ```json { "AWSTemplateFormatVersion": "2010-09-09", "Transform": "AWS::Serverless-2016-10-31", "Resources": { "DynamoSample": { "Type": "AWS::DynamoDB::Table", "Properties": { "TableName": "ExampleTable", "AttributeDefinitions": [ { "AttributeName": "name", "AttributeType": "S" } ], "KeySchema": [ { "AttributeName": "name", "KeyType": "HASH" } ], "ProvisionedThroughput": { "ReadCapacityUnits": 1, "WriteCapacityUnits": 1 } } } } } ```
https://github.com/localstack/localstack/issues/1700
https://github.com/localstack/localstack/pull/1704
950699c7b1256afc61d15dbff2a519e2db10635e
e3e4354bf4ce6d4afe45a6dd46afa1e3e534d3e8
"2019-10-30T03:48:16Z"
python
"2019-10-30T20:22:16Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,698
["tests/integration/test_logs.py"]
Tag retrieval broken in Cloudwatch Logs & Cloudwatch Events.
<!-- Love localstack? Please consider supporting our collective: 👉 https://opencollective.com/localstack/donate --> Using terraform to deploy the following two. TF likes scraping the API's to see whats changes before it deploys `Error: error setting tags: Error retreiving tags for arn:aws:events:us-west-2:111111111111:rule/terraform-20191029212821251900000001: SerializationError: failed to unmarshal error message` Account number incorrect, region incorrect, might be causing the issue? `Error: error listing CloudWatch Logs Group "/aws/lambda/local-engine-agentEventPublish" tags: SerializationError: failed to unmarshal error message status code: 500, request id:` localstack_1 | NotImplementedError: The list_tags_log_group action has not been implemented in class <class 'moto.logs.responses.LogsResponse'>
https://github.com/localstack/localstack/issues/1698
https://github.com/localstack/localstack/pull/2257
bf9c4da504ab81f61c3fb647c22c5986c74c2718
81ff441be3fc046aaaaff7f8dd31813fd008a4b9
"2019-10-29T21:43:22Z"
python
"2020-04-06T20:04:16Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,689
["localstack/package.json"]
localstack 0.10.2 to latest (0.10.4+) not starting on reboot (Ubuntu 18.04)
<!-- Love localstack? Please consider supporting our collective: 👉 https://opencollective.com/localstack/donate --> (See my [answer](https://github.com/localstack/localstack/issues/1689#issuecomment-581583813) below for the solution) I installed a brand new VPS with Virtualbox. Installed Docker. Got Localstack and run `docker run localstack/localstack`. The Localstack starts and works great. After a reboot, when I check for the `localstack` environment with `docker ps -a`, it says it exited: ``` $ sudo docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES d3e1caafe3a5 localstack/localstack "docker-entrypoint.sh" 24 hours ago Exited (137) About a minute ago my_localstack ``` I can just restart it and it works fine: sudo docker start my_localstack And in this case it works every single time. When I look at the log (see attached) I can see that some things time out and as a result docker decides to kill the whole thing. My thinking would be that the order in which the containers are started is _random_ and that means certain docks start too soon, before others that are necessary. I have had the problem on two different computers. One native and this one VPS. Both computers are Xeon 4 CPUs minimum, way more RAM than docker uses... I'm not too sure why that would fail except because of the order in which things start. That being said, you may see something in the logs that tells you what the problem really is. [localstack-json.log](https://github.com/localstack/localstack/files/3775371/localstack-json.log) Relevant error? > {"log":"2019-10-26T23:37:18:ERROR:localstack.services.generic_proxy: Error forwarding request: HTTPConnectionPool(host='127.0.0.1', port=4565): Max retries exceeded with url: / (Caused by NewConnectionError('\u003curllib3.connection.HTTPConnection object at 0x7fee0980c0b8\u003e: Failed to establish a new connection: [Errno 111] Connection refused',)) Traceback (most recent call last):\n","stream":"stdout","time":"2019-10-26T23:37:19.128835424Z"} > {"log":" File \"/opt/code/localstack/.venv/lib/python3.6/site-packages/urllib3/connection.py\", line 157, in _new_conn\n","stream":"stdout","time":"2019-10-26T23:37:19.128859965Z"} > {"log":" (self._dns_host, self.port), self.timeout, **extra_kw\n","stream":"stdout","time":"2019-10-26T23:37:19.128872345Z"} > {"log":" File \"/opt/code/localstack/.venv/lib/python3.6/site-packages/urllib3/util/connection.py\", line 84, in create_connection\n","stream":"stdout","time":"2019-10-26T23:37:19.128883243Z"} > {"log":" raise err\n","stream":"stdout","time":"2019-10-26T23:37:19.12889483Z"} > {"log":" File \"/opt/code/localstack/.venv/lib/python3.6/site-packages/urllib3/util/connection.py\", line 74, in create_connection\n","stream":"stdout","time":"2019-10-26T23:37:19.128905738Z"} > {"log":" sock.connect(sa)\n","stream":"stdout","time":"2019-10-26T23:37:19.128917082Z"} > {"log":"ConnectionRefusedError: [Errno 111] Connection refused\n","stream":"stdout","time":"2019-10-26T23:37:19.128927641Z"}
https://github.com/localstack/localstack/issues/1689
https://github.com/localstack/localstack/pull/1711
9cba1010dfcbf2b7672df4d7da46b7e8ab287f64
2af21304eecda89405e042b322c1e9e2810e4583
"2019-10-26T23:57:45Z"
python
"2019-11-01T00:22:24Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,682
["localstack/utils/cloudformation/template_deployer.py", "requirements.txt", "tests/integration/test_lambda.py"]
Unable to create http integrations for lambdas
With today's update this `serverless.yml` no longer deploys: ```yaml service: "localtest" provider: name: "aws" runtime: "nodejs10.x" functions: hello: handler: "handler.hello" events: - http: path: "/" method: "get" integration: "lambda-proxy" plugins: - "serverless-localstack" custom: localstack: stages: - "local" ``` The error on the localstack end seems to be that it cannot create `ApiGateway::RestApi` type resources: ``` 2019-10-24T09:10:41:DEBUG:localstack.utils.cloudformation.template_deployer: Deploying resource type "ApiGateway::RestApi" id "ApiGatewayRestApi" 2019-10-24T09:10:41:DEBUG:localstack.utils.cloudformation.template_deployer: Request for creating resource type "ApiGateway::RestApi": create_rest_api {'name': 'local-localtest'} 2019-10-24T09:10:41:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "ApiGatewayRestApi": argument of type 'NoneType' is not iterable ``` This is followed by repeated `TypeError` and then `KeyError`.
https://github.com/localstack/localstack/issues/1682
https://github.com/localstack/localstack/pull/1684
ac9ab0632446fea4cd6b7ece749ceba561625c3c
5642ad8b81470af7d5308d920dc42fdb3e59f142
"2019-10-24T09:23:20Z"
python
"2019-10-24T22:46:56Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,677
["localstack/services/cloudformation/cloudformation_starter.py"]
When deploying a service with errors using a custom deployment bucket, lambdas appear to already exist
When trying to deploy a serverless service that does not currently deploy correctly onto localstack using a custom deployment bucket, the lambdas seems to be created regardless (???) but not as part of the stack, with localstack outputting `botocore.errorfactory.ResourceConflictException: An error occurred (ResourceConflictException) when calling the CreateFunction operation: Function already exist` . For example, the `serverless.yml` below would currently fail to deploy due to #1676 , but because a `deploymentBucket` was added, it will instead fail due to `Function already exist`. Subsequently removing `deploymentBucket` or even `events` from the the file will not allow it to deploy - it will fail until localstack is restarted ( or until the lambda is manually deleted?). I've also reproduced this with services suffering from #1675. ```yaml service: "localtest" provider: name: "aws" runtime: "nodejs10.x" deploymentBucket: name: "testbucket" functions: hello: handler: "handler.hello" events: - schedule: "cron(0 * * * ? *)" plugins: - "serverless-localstack" custom: localstack: stages: - "local" ```
https://github.com/localstack/localstack/issues/1677
https://github.com/localstack/localstack/pull/1722
902e52f04e22a95f9bf3b37ba9a850e46a4b891c
5a08e49a478d23591c0018d2a8a811f2fbb0e54d
"2019-10-23T13:08:17Z"
python
"2019-11-05T16:00:43Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,675
["localstack/services/apigateway/apigateway_listener.py", "localstack/services/awslambda/lambda_executors.py", "localstack/services/cloudformation/cloudformation_starter.py", "localstack/services/cloudformation/service_models.py", "localstack/services/generic_proxy.py", "localstack/utils/cloudformation/template_deployer.py", "tests/integration/templates/template1.yaml", "tests/integration/test_cloudformation.py"]
Unable to deploy custom Gateway Responses via Cloudfront
The following example `serverless.yml` fails to deploy on localstack: ```yaml service: "localtest" provider: name: "aws" runtime: "nodejs10.x" functions: hello: handler: "handler.hello" resources: Resources: ApiGatewayRestApi: Type: "AWS::ApiGateway::RestApi" Properties: Name: "${self:provider.stage}-${self:service}" GatewayResponseDefault400: Type: "AWS::ApiGateway::GatewayResponse" Properties: RestApiId: Ref: "ApiGatewayRestApi" ResponseType: "DEFAULT_4XX" ResponseTemplates: application/json: '{"errors":[{"message":"Custom text."}]}' GatewayResponseUnauthorized: Type: "AWS::ApiGateway::GatewayResponse" Properties: RestApiId: Ref: "ApiGatewayRestApi" ResponseType: "UNAUTHORIZED" ResponseTemplates: application/json: '{"errors":[{"message":"Custom text!", "extra":"Some extra info"}]}' GatewayResponseDefault500: Type: "AWS::ApiGateway::GatewayResponse" Properties: RestApiId: Ref: "ApiGatewayRestApi" ResponseType: "DEFAULT_5XX" ResponseTemplates: application/json: '{"errors":[{"message":$context.error.messageString}]}' GatewayResponseIntegrationTimeout: Type: "AWS::ApiGateway::GatewayResponse" Properties: RestApiId: Ref: "ApiGatewayRestApi" ResponseType: "INTEGRATION_TIMEOUT" ResponseTemplates: application/json: '{"errors":[{"message":$context.error.messageString}]}' plugins: - "serverless-localstack" custom: localstack: stages: - "local" ``` The error on the localstack end is `Exception: CloudFormation deployment for resource type ApiGateway::GatewayResponse not yet implemented`.
https://github.com/localstack/localstack/issues/1675
https://github.com/localstack/localstack/pull/1690
3ef26112fb6771cc140818f3a6aeb2b447e2d5e5
e1989aa841c1fae3551423c3fb01174492418afe
"2019-10-23T12:33:09Z"
python
"2019-10-27T18:43:44Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,673
["localstack/services/iam/iam_listener.py", "localstack/services/iam/iam_starter.py", "tests/integration/test_iam.py"]
IAM CreateUser tags are not stored
Tags attached to an IAM user are not saved. Create a user with attached tags. The response from the create user doesn't include the tags and when you run a GetUser the tags are not included. ``` aws-sdk-swift % aws --endpoint-url http://localhost:4593 iam create-user --user-name test-user --tags Key=test,Value=hello ``` produces output ``` { "User": { "Path": "/", "UserName": "test-user", "UserId": "peldynzrvm2tofi6nmmr", "Arn": "arn:aws:iam::000000000000:user/test-user", "CreateDate": "2019-10-23T08:46:31.305Z" } } ``` The GetUser call produces exactly the same output ``` aws --endpoint-url http://localhost:4593 iam get-user --user-name test-user ``` I am running localstack as follows ``` docker run -d -p 4593:4593 -e SERVICES='iam' localstack/localstack ```
https://github.com/localstack/localstack/issues/1673
https://github.com/localstack/localstack/pull/2256
06a5dfc56a3d2545eb27bd266d59d0c49a9cae52
bf9c4da504ab81f61c3fb647c22c5986c74c2718
"2019-10-23T08:54:35Z"
python
"2020-04-06T19:54:02Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,668
["localstack/services/s3/s3_listener.py", "localstack/utils/bootstrap.py"]
S3 Presigned URL not Triggering Lambda Function
Hello all, I have noticed that when I generate a presigned url for a file that will be uploaded to S3 that the Lambda function does not get triggered. It seems to only be happening for presigned url. I was able to successful have it trigger when I use the command line and upload a file through `aws s3 cp`. To recreate: 1: have any lambda function be added to an s3 bucket. My lambda configurations look as followed: ``` aws s3api --endpoint-url=http://localstack:4572 create-bucket --bucket mybucket; aws s3api --endpoint-url=http://localstack:4572 create-bucket --bucket code; aws s3 cp --endpoint-url=http://localstack:4572 --acl public-read /resources/example.zip s3://code/; aws lambda create-function --endpoint-url=http://localstack:4574 --function-name MyLambdaFunction--runtime 'nodejs8.10' --handler 'index.handler' --role 'anyRole' --code S3Bucket=code,S3Key=example.zip,S3ObjectVersion=1.0.0; ``` Then add this lambda configuration to the bucket ``` { "LambdaFunctionConfigurations": [ { "LambdaFunctionArn": "arn:aws:lambda:us-east-1:000000000000:function:MyLambdaFunction", "Events": [ "s3:ObjectCreated:*" ] } ] } ``` by running ``` aws s3api --endpoint-url=http://localstack:4572 put-bucket-notification-configuration --bucket 'mybucket' --notification-configuration file:///resources/notification.json; ``` 2: Generate a presigned url for the bucket you added the lambda too ``` aws s3 presign --endpoint-url=http://localstack:4572 s3://mybucket/test.txt --expires-in 300 ``` 3: ``` curl --upload-file test.txt -v http://localstack:4572/mybucket/test.txt?AWSAccess KeyId=dummyaccess&Expires=1571680684&Signature=TbCFh1rzkNYwNEooaQKcJPF4%2Fss%3D ``` Lambda does not seem to get triggered. Any help or fixes? Thank you so much for your time and help. Localstack has been a great tool!
https://github.com/localstack/localstack/issues/1668
https://github.com/localstack/localstack/pull/1736
58f31c5bcc1b7501cb4046f32e6cb9c11eeb9e90
1a7744509a9548e785f6bdf47743d8f51abd17ab
"2019-10-21T18:40:34Z"
python
"2019-11-07T21:27:34Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,658
["localstack/services/sqs/sqs_listener.py", "localstack/utils/aws/aws_responses.py", "tests/integration/test_sqs.py"]
SQS Send Message Batch should not allow empty batches
Real SQS throws `There should be at least one SendMessageBatchRequestEntry in the request. (Service: AmazonSQS; Status Code: 400; Error Code: AWS.SimpleQueueService.EmptyBatchRequest;` when there is a send batch of zero size. This would be useful to mimic inside localstack in order to find these bugs earlier.
https://github.com/localstack/localstack/issues/1658
https://github.com/localstack/localstack/pull/2412
d17eb50b25c95864eb9d8b1820e2afced5e03a9a
078138a41d8b0a88ee21e1932ada05c4f1b08191
"2019-10-17T09:07:59Z"
python
"2020-05-25T22:12:28Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,630
["localstack/services/awslambda/lambda_api.py", "localstack/services/awslambda/lambda_executors.py", "localstack/services/dynamodb/dynamodb_listener.py", "localstack/services/dynamodbstreams/dynamodbstreams_api.py", "tests/integration/test_lambda.py", "tests/performance/test_dynamodb_performance.py"]
Localstack Lambda won't return Tail log on invoke
MacOS 10.14.6 Mojave. Node v10.15.3 LocalStack - docker image 0.10.4 When invoking a Lambda from Node.js code. const lambda = new Aws.Lambda(creds); const payload = {}; const clientContext = { invokedFunctionArn: this._workerArn }; const params = { FunctionName: this._workerArn, InvocationType: "RequestResponse", // "DryRun", LogType: 'Tail', // "None", "Tail" ClientContext: JSON.stringify(clientContext), Payload: JSON.stringify(payload) }; console.log(`DEBUG: Executing lambda ${JSON.stringify(params)}`); lambda.invoke(params, function (err, data) { console.log(`DEBUG: Printing lambda return arguments`); console.log(JSON.stringify(arguments)); console.log(data.LogResult); });``` DEBUG: Printing lambda return arguments {"0":null,"1":{"StatusCode":200,"Payload":"null"}} undefined ``` Expecting to see the Lambda execution log in `data.LogResult`, but no such object returned, yet Localstack Cloudwatch logs recorded the execution logs correctly. ``` EVENTS 75 1570381308926.664 +51733/05/27/[$LATEST]629146bb START RequestId: dbd86068-78c8-1a62-29ca-9c0a4a8580c3 Version: $LATEST 1570381306039 EVENTS 76 1570381308926.664 +51733/05/27/[$LATEST]629146bb 2019-10-06T17:01:47.924Z dbd86068-78c8-1a62-29ca-9c0a4a8580c3 INFO DEBUG: LOCALSTACK_HOSTNAME=172.17.0.1 1570381306520 ... EVENTS 79 1570381308926.664 +51733/05/27/[$LATEST]629146bb END RequestId: dbd86068-78c8-1a62-29ca-9c0a4a8580c3 1570381307961 EVENTS 80 1570381308926.664 +51733/05/27/[$LATEST]629146bb REPORT RequestId: dbd86068-78c8-1a62-29ca-9c0a4a8580c3 Duration: 16.05 ms Billed Duration: 100 ms Memory Size: 1536 MB Max Memory Used: 57 MB 1570381308442 ``` What I'm missing? Why it doesn't return logs on invoke? Thanks ┆Issue is synchronized with this [Jira Bug](https://localstack.atlassian.net/browse/LOC-125) by [Unito](https://www.unito.io/learn-more)
https://github.com/localstack/localstack/issues/1630
https://github.com/localstack/localstack/pull/3425
8b74853dc2e0c35a3601881de58518d4d7265cb5
cebd43f26fdd847a939bf82add79b1454d6eb4db
"2019-10-06T17:19:34Z"
python
"2021-01-04T23:32:17Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,622
["localstack/services/cloudformation/cloudformation_starter.py", "localstack/utils/cloudformation/template_deployer.py", "localstack/utils/common.py"]
S3 buckets created through cloudformation are not created in the template's region in Pro
Any bucket created through cloudformation will have `"LocationConstraint": null`, implying us-east-1, although in AWS CloudFormation the bucket's region will always match the template's region.
https://github.com/localstack/localstack/issues/1622
https://github.com/localstack/localstack/pull/1628
1fec084a6114bcc4d3e6208b3ccf907a02ebd426
6da8c6d96ef0939933f67546e06501a858ba9b95
"2019-10-04T12:37:04Z"
python
"2019-10-06T15:23:50Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,620
["localstack/services/cloudformation/cloudformation_starter.py", "localstack/utils/cloudformation/template_deployer.py", "localstack/utils/common.py"]
Unable to deploy Lambdas with a DynamoDB stream as the event source
With the following serverless.yml file: ```yml service: localtest provider: name: aws runtime: nodejs10.x functions: hello: handler: handler.hello events: - stream: type: dynamodb arn: Fn::GetAtt: [fooTable, StreamArn] resources: Resources: fooTable: Type: AWS::DynamoDB::Table Properties: TableName: fooTable AttributeDefinitions: - AttributeName: foo AttributeType: S KeySchema: - AttributeName: foo KeyType: HASH ProvisionedThroughput: ReadCapacityUnits: 1 WriteCapacityUnits: 1 StreamSpecification: StreamViewType: NEW_AND_OLD_IMAGES plugins: - "serverless-localstack" custom: localstack: stages: - "local" ``` It fails with a generic error (500) on the deployment end and with `:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "HelloEventSourceMappingDynamodbFooTable": 'NoneType' object has no attribute 'function_arn'` on the localstack end. It deploys fine to AWS.
https://github.com/localstack/localstack/issues/1620
https://github.com/localstack/localstack/pull/1628
1fec084a6114bcc4d3e6208b3ccf907a02ebd426
6da8c6d96ef0939933f67546e06501a858ba9b95
"2019-10-04T12:11:10Z"
python
"2019-10-06T15:23:50Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,619
["localstack/constants.py", "localstack/ext/java/src/test/java/cloud/localstack/SQSMessagingTest.java"]
SQS returns incorrect MD5OfMessageAttributes when multibyte string used in MessageAttribute's value
If I don't use multibyte strings, the same MD5OfMessageAttibutes are returned from SQS on localstack and AWS. ``` aws --endpoint-url http://localhost:4576 sqs send-message --queue-url http://localhost:4576/queue/dummy --message-body 'foo' --message-attributes '{ "XXX": {"DataType": "String", "StringValue": "xxx"}}' { "MD5OfMessageBody": "acbd18db4cc2f85cedef654fccc4a4d8", "MD5OfMessageAttributes": "37819bc3d58fcdbf7bc9aa49ff38a4e6", "MessageId": "867a01da-61f4-4841-862f-10e04b4741cf" } aws sqs send-message --queue-url https://sqs.ap-northeast-1.amazonaws.com/this_is/dummy --message-body 'foo' --message-attributes '{ "XXX": {"DataType": "String", "StringValue": "xxx"}}' { "MD5OfMessageBody": "acbd18db4cc2f85cedef654fccc4a4d8", "MD5OfMessageAttributes": "37819bc3d58fcdbf7bc9aa49ff38a4e6", "MessageId": "49b05443-d174-4766-93b4-dd6c08daa29c" } ``` But, using multibyte strings, such as emoji, Japanese , causes different MD5OfMessageAttributes. ``` # If emoji 😇 used aws --endpoint-url http://localhost:4576 sqs send-message --queue-url http://localhost:4576/queue/dummy --message-body 'foo' --message-attributes '{ "XXX": {"DataType": "String", "StringValue": "😇"}}' { "MD5OfMessageBody": "acbd18db4cc2f85cedef654fccc4a4d8", "MD5OfMessageAttributes": "068b4cc7d27c322bde50451db1f3b838", "MessageId": "3b6ec9b7-96df-44f8-987e-acf001d551e4" } aws sqs send-message --queue-url https://sqs.ap-northeast-1.amazonaws.com/this_is/dummy --message-body 'foo' --message-attributes '{ "XXX": {"DataType": "String", "StringValue": "😇"}}' { "MD5OfMessageBody": "acbd18db4cc2f85cedef654fccc4a4d8", "MD5OfMessageAttributes": "23bf3e5b587065b0cfbe95761641595a", "MessageId": "0868914f-ac9c-41c6-a278-c7330acfa7dc" } # If Japanese あああ used aws --endpoint-url http://localhost:4576 sqs send-message --queue-url http://localhost:4576/queue/dummy --message-body 'foo' --message-attributes '{ "XXX": {"DataType": "String", "StringValue": "あああ"}}' { "MD5OfMessageBody": "acbd18db4cc2f85cedef654fccc4a4d8", "MD5OfMessageAttributes": "be67b7518e7e38cd41a336656a177fc7", "MessageId": "0b40c867-55d2-4b9c-a37f-89da8c10e2a4" } aws sqs send-message --queue-url https://sqs.ap-northeast-1.amazonaws.com/this_is/dummy --message-body 'foo' --message-attributes '{ "XXX": {"DataType": "String", "StringValue": "あああ"}}' { "MD5OfMessageBody": "acbd18db4cc2f85cedef654fccc4a4d8", "MD5OfMessageAttributes": "244afccd2af83b4f0829298cda77cf3d", "MessageId": "f00d98e9-392f-43e3-bf0a-e3e78c758421" } ``` Versions localstack commit hash: 866b871f151298d45061cdf525669159725f43e6 aws cli: aws-cli/1.16.230 Python/3.7.4 Darwin/18.7.0 botocore/1.12.220
https://github.com/localstack/localstack/issues/1619
https://github.com/localstack/localstack/pull/1652
8039e4cb873c4a6b1a9ba3693f886206d0fce2f9
33af44e4d32948d9fcba3ed4cbdd86328ee22d61
"2019-10-04T07:37:02Z"
python
"2019-10-17T22:06:22Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,612
["localstack/services/generic_proxy.py", "localstack/utils/common.py"]
CORS S3 responds twice with Access-Control-Allow-Origin headers, breaking Browser based calls
Scenario: - Given I have a S3 bucket, with or without any explicit CORS configuration - Given I do a browser request against any s3 object (it includes an origin header) - I receive a response with two `Access-Control-Allow-Origin` headers. - `Access-Control-Allow-Origin: *` and `Access-Control-Allow-Origin: https://example.com` *Expected result:* A response with just one `Access-Control-Allow-Origin` header. *Impact:* all browser based request fail due to a CORS violation. Sending two `Access-Control-Allow-Origin` requests is not allowed. My setup: - Mac OS X - Docker-based setup - puma-dev to create a local domain ## Example request: ``` $ curl 'https://librario-dev-assets2.library-aws-s3.test/uploads/account/1/asset/file/616af873-b2bb-4c2b-8c5d-77c9ca8026c1/file' -v \ -H 'Origin: https://example.com' * Trying 127.0.0.1... * TCP_NODELAY set * Connected to librario-dev-assets2.library-aws-s3.test (127.0.0.1) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH * successfully set certificate verify locations: * CAfile: /etc/ssl/cert.pem CApath: none * TLSv1.2 (OUT), TLS handshake, Client hello (1): * TLSv1.2 (IN), TLS handshake, Server hello (2): * TLSv1.2 (IN), TLS handshake, Certificate (11): * TLSv1.2 (IN), TLS handshake, Server key exchange (12): * TLSv1.2 (IN), TLS handshake, Server finished (14): * TLSv1.2 (OUT), TLS handshake, Client key exchange (16): * TLSv1.2 (OUT), TLS change cipher, Client hello (1): * TLSv1.2 (OUT), TLS handshake, Finished (20): * TLSv1.2 (IN), TLS change cipher, Client hello (1): * TLSv1.2 (IN), TLS handshake, Finished (20): * SSL connection using TLSv1.2 / ECDHE-ECDSA-AES256-GCM-SHA384 * ALPN, server did not agree to a protocol * Server certificate: * subject: O=Puma-dev Signed; CN=librario-dev-assets2.library-aws-s3.test * start date: Oct 1 18:45:24 2019 GMT * expire date: Sep 30 18:45:24 2020 GMT * subjectAltName: host "librario-dev-assets2.library-aws-s3.test" matched cert's "librario-dev-assets2.library-aws-s3.test" * issuer: O=Developer Certificate; CN=Puma-dev CA * SSL certificate verify ok. > GET /uploads/account/1/asset/file/616af873-b2bb-4c2b-8c5d-77c9ca8026c1/file HTTP/1.1 > Host: librario-dev-assets2.library-aws-s3.test > User-Agent: curl/7.54.0 > Accept: */* > Origin: https://example.com > < HTTP/1.1 404 Not Found < Access-Control-Allow-Headers: ,authorization,content-type,content-md5,cache-control,x-amz-content-sha256,x-amz-date,x-amz-security-token,x-amz-user-agent,x-amz-target,x-amz-acl,x-amz-version-id,x-localstack-target < Access-Control-Allow-Methods: HEAD,GET,PUT,POST,DELETE,OPTIONS,PATCH < Access-Control-Allow-Origin: https://example.com < Access-Control-Allow-Origin: * < Access-Control-Expose-Headers: x-amz-version-id < Content-Length: 244 < Content-Type: text/html; charset=utf-8 < Date: Tue, 01 Oct 2019 18:48:59 GMT < Server: BaseHTTP/0.6 Python/3.6.8 < Vary: Origin < <?xml version="1.0" encoding="UTF-8"?> <Error> <Code>NoSuchBucket</Code> <Message>The specified bucket does not exist</Message> <BucketName>uploads</BucketName> <RequestID>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</RequestID> * Connection #0 to host librario-dev-assets2.library-aws-s3.test left intact </Error>% ```
https://github.com/localstack/localstack/issues/1612
https://github.com/localstack/localstack/pull/1687
5642ad8b81470af7d5308d920dc42fdb3e59f142
1a3833f5cc9defe74d27dbf12f3d8bb0703f5c92
"2019-10-01T18:59:54Z"
python
"2019-10-26T08:48:30Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,605
["localstack/services/dynamodbstreams/dynamodbstreams_api.py"]
development environment python version should match the docker image
while developing on localstack found out that the python version used is 2.7, while the docker-image uses version 3.6.8 as in the readme file I brought up my environment using: ``` make install make infra ``` this will cause issues when touching parts different in these 2 major versions. workaround: ``` make reinstall-p3 ``` this changed the python version to 3.7.3 on debian 10, which is again above docker-image version...
https://github.com/localstack/localstack/issues/1605
https://github.com/localstack/localstack/pull/1606
6d603f297e332fc275c72882224ffc707d33bade
1426ff73434568489da26e8faed1b42351bf003e
"2019-09-29T12:38:39Z"
python
"2019-10-01T19:57:23Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,599
["localstack/ext/java/src/main/java/cloud/localstack/docker/Container.java", "localstack/ext/java/src/main/java/cloud/localstack/docker/command/ListImagesCommand.java", "localstack/ext/java/src/main/java/cloud/localstack/docker/command/PullCommand.java"]
Docker hub pull image issue
<!-- Love localstack? Please consider supporting our collective: 👉 https://opencollective.com/localstack/donate --> If localstack/localstack image is not available in local, localstack is not waiting for container to be available till docker pulls image from Docker Hub. Localstack stops the container before download and throws "Unable to pull image locally" error. This happens if pullImageNew is not set to true. Is that a mandatory property here? Even if its false, docker tries to download from Docker hub and localstack doesnt wait for the container to be set and throws error. But in the second run localstack picks the image from local downloaded from the previous run and works fine. <img width="850" alt="Screen Shot 2019-09-26 at 12 08 02 PM" src="https://user-images.githubusercontent.com/15143298/65705398-5a66b300-e056-11e9-9bad-ad1a742733bb.png">
https://github.com/localstack/localstack/issues/1599
https://github.com/localstack/localstack/pull/1943
e0e96ace84d4e49614e874dcf2b9af0bedddca13
0d9f6f339c012c3dac43dd74e371c4e15f9af923
"2019-09-26T15:56:13Z"
python
"2020-01-12T19:52:34Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,583
["localstack/services/awslambda/lambda_executors.py"]
Lambda containers not cleaned up with LAMBDA_EXECUTOR=docker and LAMBDA_REMOTE_DOCKER='true'
# Steps to reproduce * Run `localstack` with `LAMBDA_EXECUTOR=docker` and `LAMBDA_REMOTE_DOCKER=true`. * Create and execute multiple lambda functions. * Run `docker ps -a` and observe multiple `lambci` containers This does not happen with `LAMBDA_EXECUTOR=docker-reuse` or with `LAMBDA_REMOTE_DOCKER=true`
https://github.com/localstack/localstack/issues/1583
https://github.com/localstack/localstack/pull/1584
42e9992e3644ce6bea4f7d635e64419c5e3126d7
76bee8007afeed5f4c8d687bc36bc2a239dd686b
"2019-09-20T14:33:56Z"
python
"2019-09-20T15:21:04Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,581
["localstack/services/awslambda/lambda_api.py"]
Lambda not found check broken if qualifier is provided
# Steps to reproduce * Start `localstack` (version 0.10.3). * Don't create any lambda functions. * Run: ```sh AWS_ACCESS_KEY_ID='a' AWS_SECRET_ACCESS_KEY='b' \ aws lambda invoke \ --function-name 'my-func' \ --qualifier='qual' \ --endpoint http://localhost:4574 test.out ``` * Expected behaviour — a `ResourceNotFoundException` from `aws-cli`. * Actual behaviour — `An error occurred (500) when calling the Invoke operation` message and a 500 response. This bug only appears if a `qualifier` is included in the request.
https://github.com/localstack/localstack/issues/1581
https://github.com/localstack/localstack/pull/1582
76bee8007afeed5f4c8d687bc36bc2a239dd686b
c879e9412c94089d668657ea149860725735ab1f
"2019-09-20T13:14:21Z"
python
"2019-09-20T15:30:40Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,571
["localstack/config.py", "localstack/constants.py", "localstack/services/dynamodb/dynamodb_listener.py", "localstack/services/dynamodbstreams/dynamodbstreams_api.py", "localstack/services/s3/s3_listener.py", "localstack/utils/bootstrap.py", "localstack/utils/common.py", "requirements.txt", "tests/integration/test_lambda.py", "tests/integration/test_s3.py"]
Bug when uploading file to S3 when file ends with new line characters because those get removed
<!-- Love localstack? Please consider supporting our collective: 👉 https://opencollective.com/localstack/donate --> I'm using localstack as of commit f9dd152cbfab0a51e01e0c0b3ba7463304c8dba3 I ran in an issue where a file I first added to my S3 device (`PutObject()`) would come back out with one less byte. I verified what would be happening and where the error might be. The only possible location would be the localstack implementation (_unfortunately_). My binary file ends with 0x0D. This is a `\r` character. The system I use is [MinIO-Go](https://github.com/minio/minio-go) which sends a chunk-signature along the body of the file. When that happens, it looks like you remove all `\r` and `\n` (in my test below I also added `\n` characters and they all get removed) instead of just one `\n` and then one `\r` (i.e. you're certain going backward for this exercise). I can see that there is one 0x0D in my binary file and then the "\r\n" sequence just before the chunk-signature. You should only remove on "\r\n" and leave the rest alone. Here is my go program to show the reproducible issue: ``` package main import ( "bytes" "fmt" "log" "github.com/minio/minio-go" ) func main() { // all final 10 and 13 get removed from my data buffer! data := []byte{ 72, 101, 108, 108, 111, 10, 13, 10, 13, 10, 13, 10, 13 } //ioutil.WriteFile("/tmp/nolike.txt", data, 0644) mc, err := minio.New( "127.0.0.1:14572", // localstack "foo", // AWS access key id "bar", // AWS secret access key false) if err != nil { log.Fatal("could not connect to S3", err) } err = mc.MakeBucket("bucket1", "us-east-1") if err != nil { exists, errBucketExists := mc.BucketExists("bucket1") hasBucket := errBucketExists == nil && exists if !hasBucket { log.Fatal("bucket1 does not exist and we could not create it", err, errBucketExists) } } fileReader := bytes.NewReader(data) size, err := mc.PutObject( "bucket1", "data", fileReader, int64(len(data)), minio.PutObjectOptions{ ContentType: "audio/mpeg", }) if err != nil { log.Fatal("PutObject failed.") } fmt.Println("size sent:", size) info, err := mc.StatObject("bucket1", "data", minio.StatObjectOptions{}) if err != nil { log.Fatal("StatObject failed") } fmt.Println("info:", info) fmt.Println("info size:", info.Size, "(should be equal to", len(data), "if correct)") } ``` At the end this program should print: info size: 13 (should be equal to 13 if correct) But instead I get: info size: 7 (should be equal to 13 if correct) because the `StatObject()` returns the correct size saved in S3, but not the expected size. The exact set of bytes sent: > 80 85 84 32 47 98 117 99 107 101 116 49 47 100 97 116 97 32 72 84 84 80 47 49 46 49 13 10 72 111 115 116 58 32 49 50 55 46 48 46 48 46 49 58 49 52 53 55 50 13 10 85 115 101 114 45 65 103 101 110 116 58 32 77 105 110 73 79 32 40 108 105 110 117 120 59 32 97 109 100 54 52 41 32 109 105 110 105 111 45 103 111 47 118 54 46 48 46 51 53 13 10 67 111 110 116 101 110 116 45 76 101 110 103 116 104 58 32 49 56 53 13 10 65 117 116 104 111 114 105 122 97 116 105 111 110 58 32 65 87 83 52 45 72 77 65 67 45 83 72 65 50 53 54 32 67 114 101 100 101 110 116 105 97 108 61 102 111 111 47 50 48 49 57 48 57 49 56 47 117 115 45 101 97 115 116 45 49 47 115 51 47 97 119 115 52 95 114 101 113 117 101 115 116 44 83 105 103 110 101 100 72 101 97 100 101 114 115 61 104 111 115 116 59 120 45 97 109 122 45 99 111 110 116 101 110 116 45 115 104 97 50 53 54 59 120 45 97 109 122 45 100 97 116 101 59 120 45 97 109 122 45 100 101 99 111 100 101 100 45 99 111 110 116 101 110 116 45 108 101 110 103 116 104 44 83 105 103 110 97 116 117 114 101 61 57 102 102 55 53 55 98 54 55 53 55 48 98 48 100 53 53 53 102 101 100 48 101 52 57 52 52 99 101 48 49 50 101 98 99 98 51 102 57 54 51 98 52 48 48 52 52 50 57 54 102 51 102 98 56 57 99 100 98 55 51 57 100 56 13 10 67 111 110 116 101 110 116 45 84 121 112 101 58 32 97 117 100 105 111 47 109 112 101 103 13 10 88 45 65 109 122 45 67 111 110 116 101 110 116 45 83 104 97 50 53 54 58 32 83 84 82 69 65 77 73 78 71 45 65 87 83 52 45 72 77 65 67 45 83 72 65 50 53 54 45 80 65 89 76 79 65 68 13 10 88 45 65 109 122 45 68 97 116 101 58 32 50 48 49 57 48 57 49 56 84 48 53 49 53 48 57 90 13 10 88 45 65 109 122 45 68 101 99 111 100 101 100 45 67 111 110 116 101 110 116 45 76 101 110 103 116 104 58 32 49 51 13 10 13 10 100 59 99 104 117 110 107 45 115 105 103 110 97 116 117 114 101 61 97 102 53 101 54 99 48 97 54 57 56 98 48 49 57 50 101 57 97 97 53 100 57 48 56 51 53 53 51 100 52 100 50 52 49 100 56 49 102 54 57 101 99 54 50 98 49 56 52 100 48 53 99 53 48 57 97 100 53 49 54 54 97 102 13 10 72 101 108 108 111 32 32 10 13 10 13 10 13 13 10 48 59 99 104 117 110 107 45 115 105 103 110 97 116 117 114 101 61 102 50 97 53 48 97 56 99 48 97 100 52 100 50 49 50 98 53 55 57 99 50 52 56 57 99 54 100 49 50 50 100 98 56 56 100 56 97 48 100 48 98 57 56 55 101 97 49 102 51 101 57 100 48 56 49 48 55 52 97 53 57 51 55 13 10 13 10 As we can see, near the end, there is a sequence of "10 13 ..." and then on "13 10" before the "48 59 99 ..." which is the _chunk-signature_: `0;chunk-signature=f2a50a8c0ad4d212b579c2489c6d122db88d8a0d0b987ea1f3e9d081074a5937\r\n\r\n` The bytes represent the following header and body (easier to read, but you may miss some bytes trying to just use that ASCII code): ``` PUT /bucket1/data HTTP/1.1 Host: 127.0.0.1:14572 User-Agent: MinIO (linux; amd64) minio-go/v6.0.35 Content-Length: 185 Authorization: AWS4-HMAC-SHA256 Credential=foo/20190918/us-east-1/s3/aws4_request,SignedHeaders=host;x-amz-content-sha256;x-amz-date;x-amz-decoded-content-length,Signature=9ff757b67570b0d555fed0e4944ce012ebcb3f963b40044296f3fb89cdb739d8 Content-Type: audio/mpeg X-Amz-Content-Sha256: STREAMING-AWS4-HMAC-SHA256-PAYLOAD X-Amz-Date: 20190918T051509Z X-Amz-Decoded-Content-Length: 13 d;chunk-signature=af5e6c0a698b0192e9aa5d9083553d4d241d81f69ec62b184d05c509ad5166af Hello 0;chunk-signature=f2a50a8c0ad4d212b579c2489c6d122db88d8a0d0b987ea1f3e9d081074a5937 ```
https://github.com/localstack/localstack/issues/1571
https://github.com/localstack/localstack/pull/1608
288bd0cc6b72ad49dabbcbd170477be93f91409d
2efb59ecc86c16376e976809635e7b9f09c9f0bd
"2019-09-18T05:40:42Z"
python
"2019-09-30T19:32:23Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,566
["localstack/services/cloudformation/cloudformation_starter.py", "localstack/services/cloudformation/service_models.py", "localstack/services/es/es_starter.py", "localstack/utils/cloudformation/template_deployer.py", "tests/integration/test_cloudformation.py"]
Does LocalStack support nested CloudFormation Templates?
Hi, I'm trying to get LocalStack set up for integration testing and having a lot of trouble building CloudFormation templates that include nested stacks referenced via the `TemplateURL` property. Is this just not a thing that works in LocalStack? I've tried setting TemplateURL to a local file as well as to an object in an S3 bucket created with LocalStack. For example if I call `create-stack` on a `template.yaml` containing the following: ``` Resources: SNSTopics: Type: AWS::CloudFormation::Stack Properties: TemplateURL: http://localhost:4572/artifacts/sns.yaml ``` ...the stack builds but the referenced `sns.yaml` stack does not get built; whereas if I call `create-stack` directly on the referenced file it builds fine. Thanks for any help/advice you can give!
https://github.com/localstack/localstack/issues/1566
https://github.com/localstack/localstack/pull/1921
37e95d9ba40c1ad71e3a9326290462fa231e85bf
52585a2bfc037f882d9d1d2be10a79f57d1ca09a
"2019-09-16T19:28:44Z"
python
"2020-01-04T17:36:46Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,554
["localstack/services/firehose/firehose_api.py", "localstack/utils/testutil.py", "tests/integration/test_integration.py"]
Kinesis to S3 file structure not correct
For Kinesis, it seems to be, that AWS organizes its folders on S3 like: "prefix/2019/02/09/13/kinesis-stream-name-2019-02-09-10-02-32-db1db7a9-c484-40d1-b7ec-7651a55e4677" The date in the path is UTC-time, the date in the file name is the UTC-time of the first received byte in the Kinesis stream for the specific file. This is the default behavior, so it would be nice to implement it in localstack.
https://github.com/localstack/localstack/issues/1554
https://github.com/localstack/localstack/pull/1920
98e4bdb5fc526bf14c6e29a577fd42b710a9557a
37e95d9ba40c1ad71e3a9326290462fa231e85bf
"2019-09-10T12:39:29Z"
python
"2020-01-04T15:43:39Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,553
["localstack/package.json", "localstack/services/kinesis/kinesis_listener.py", "tests/integration/test_kclpy.py", "tests/unit/test_kinesis.py"]
describe-stream vs describe-stream-summary on non-existent streams
**Problem** For *non-existent* Kinesis streams: * the command `awslocal kinesis describe-stream` returns a ResourceNotFoundException (as expected) * whereas `describe-stream-summary` returns stream details (as if it existed). **Expected behaviour** It's expected that both commands return a ResourceNotFoundException for non-existent streams. It has been verified that this is the case with AWS CLI with real AWS. **Reproduction** ``` ✗ docker run -d -e SERVICES=s3,iam,kinesis localstack/localstack:0.10.2 513dcffc9a7e8f7b4c12b20972119c5fd797f269ae4cbfe62d8bc9f66a6116eb ✗ docker container ls | head -n2 CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 513dcffc9a7e localstack/localstack:0.10.2 "docker-entrypoint.sh" 44 seconds ago Up 42 seconds 4567-4597/tcp, 8080/tcp nostalgic_mcclintock ✗ docker exec -it nostalgic_mcclintock sh /opt/code/localstack # awslocal kinesis describe-stream --stream-name idontexist An error occurred (ResourceNotFoundException) when calling the DescribeStream operation: Stream idontexist under account 000000000000 not found. /opt/code/localstack # awslocal kinesis describe-stream-summary --stream-name idontexist { "StreamDescriptionSummary": { "StreamName": "idontexist", "StreamARN": "idontexist", (...) "OpenShardCount": 0, "ConsumerCount": 0 } } /opt/code/localstack # awslocal kinesis list-streams { "StreamNames": [] } /opt/code/localstack # ```
https://github.com/localstack/localstack/issues/1553
https://github.com/localstack/localstack/pull/1746
8bd0cf29083650d86f364c5ca78a2edfc231ea63
5c36ea0ad6e904ed9dab82d41cde286aa1fb4eff
"2019-09-10T07:43:33Z"
python
"2019-11-11T09:23:10Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,549
["localstack/services/cloudformation/cloudformation_starter.py", "localstack/services/sns/sns_listener.py", "tests/integration/templates/template1.yaml", "tests/integration/test_cloudformation.py"]
Fn::GetAtt with S3 w/serverless-localstack
I have a simple S3 bucket 'MyBucket' declared alongside an IAM Role 'MyBucketRole', if I attempt to access the bucket's ARN via: { "Fn::GetAtt": ["MyBucket", "Arn"] } it will throw: Template error: resource MyBucket does not support attribute type Arn in Fn::GetAtt However, if I attempt to access the ARN via: { "Fn::GetAtt": [{"Fn::GetAtt": ["MyBucket", "BucketName"]}, "Arn"] } it works fine. Under normal Serverless circumstance the first option works fine, am I being silly or is this a legitimate/known issue? It also appears that the working version only works if the resource is already deployed. If attempting to launch both bucket and role attached to bucket at the same time, results in the following error: ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "MyBucketRole": unhashable type: 'dict' Serverless also throws a 500 error. **The following log may also help**, This occurs when attempting to get the resource's ARN upon launching it in the same stack as the role attempting to reference it: ``` 2019-09-09T13:22:54:ERROR:localstack.services.cloudformation.cloudformation_starter: Unable to parse and create resource "MyBucketRole": 400 Bad Request: <ErrorResponse xmlns="http://cloudformation.amazonaws.com/doc/2010-05-15/"> <Error> <Type>Sender</Type> <Code>ValidationError</Code> <Message>Template error: resource MyBucket does not support attribute type Arn in Fn::GetAtt</Message> </Error> <RequestId>cf4c737e-5ae2-11e4-a7c9-ad44eEXAMPLE</RequestId> </ErrorResponse> ```
https://github.com/localstack/localstack/issues/1549
https://github.com/localstack/localstack/pull/1879
2ed3406a9adb80ec06b740874c46684c6fe48eff
9c7b3f97252193ea02de95daf7bb026adc976789
"2019-09-09T08:41:58Z"
python
"2019-12-18T22:02:05Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,540
["localstack/services/dynamodb/dynamodb_listener.py", "localstack/services/dynamodbstreams/dynamodbstreams_api.py", "localstack/utils/aws/aws_stack.py"]
dynamodbstreams describe-stream, stream not found
dynamodbstreams describe-stream shows stream not found but the stream is there in list-streams Steps to recreate: 1. create dynamodb table, ``` aws dynamodb create-table --table-name MusicCollection --attribute-definitions AttributeName=Artist,AttributeType=S AttributeName=SongTitle,AttributeType=S --key-schema AttributeName=Artist,KeyType=HASH AttributeName=SongTitle,KeyType=RANGE --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 --endpoint http://localhost:4569 ``` 2. add stream ``` aws dynamodb update-table --table-name MusicCollection --stream-specification StreamEnabled=true,StreamViewType=NEW_IMAGE --endpoint http://localhost:4569 { "TableDescription": { "TableArn": "arn:aws:dynamodb:eu-central-1:000000000000:table/MusicCollection", "AttributeDefinitions": [ { "AttributeName": "Artist", "AttributeType": "S" }, { "AttributeName": "SongTitle", "AttributeType": "S" } ], "ProvisionedThroughput": { "NumberOfDecreasesToday": 0, "WriteCapacityUnits": 5, "LastIncreaseDateTime": 0.0, "ReadCapacityUnits": 5, "LastDecreaseDateTime": 0.0 }, "TableSizeBytes": 0, "TableName": "MusicCollection", "TableStatus": "ACTIVE", "StreamSpecification": { "StreamViewType": "NEW_IMAGE", "StreamEnabled": true }, "LatestStreamLabel": "2019-09-21T10:47:14.246", "KeySchema": [ { "KeyType": "HASH", "AttributeName": "Artist" }, { "KeyType": "RANGE", "AttributeName": "SongTitle" } ], "ItemCount": 0, "CreationDateTime": 1569062831.736, "LatestStreamArn": "arn:aws:dynamodb:eu-central-1:000000000000:table/MusicCollection/stream/2019-09-21T10:47:14.246" } } ``` 3. Note LatestStreamARN from output ```"LatestStreamArn": "arn:aws:dynamodb:eu-central-1:000000000000:table/MusicCollection/stream/2019-09-21T10:47:14.246"``` 4. List streams: ``` aws dynamodbstreams list-streams --endpoint http://localhost:4570 { "LastEvaluatedStreamArn": "TODO", "Streams": [ { "TableName": "MusicCollection", "StreamArn": "arn:aws:dynamodb:eu-central-1:000000000000:table/MusicCollection/stream/2019-09-21T10:47:16", "StreamLabel": "TODO" } ] } ``` 5. Compare StreamARN to step 3. Expected behavior: they should match (AWS dynamodb/streams behavior)
https://github.com/localstack/localstack/issues/1540
https://github.com/localstack/localstack/pull/1585
3ea1ca3ebbeb9d42f56de737c3a4a8e7b815bd36
4b932c5b0e2203d064e7e4577562cf88c42c5e38
"2019-09-04T18:38:14Z"
python
"2019-09-22T09:33:29Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,535
["localstack/services/cloudformation/cloudformation_starter.py", "localstack/services/infra.py", "tests/integration/templates/template2.yaml", "tests/integration/test_cloudformation.py"]
CloudFormation PhysicalResourceId for AWS::SQS::Queue should be the queue URL
According to the [AWS CFN docs for SQS](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html#aws-properties-sqs-queues-return-values-ref), the physical resource ID should be its queue URL. >Ref > >When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the queue URL. For example: > >{ "Ref": "https://sqs.us-east-2.amazonaws.com/123456789012/aa4-MyQueue-Z5NOSZO2PZE9" } However, SQS queues created in Localstack via CloudFormation have physical resource IDs that are equal to the queue name: ``` $ aws cloudformation list-stack-resources --stack-name my-stack --endpoint http://localhost:4581 | grep -A3 -B3 Queue { "LogicalResourceId": "EventQueue", "PhysicalResourceId": "my-stack-events", "ResourceType": "AWS::SQS::Queue", "LastUpdatedTimestamp": "2011-06-21T20:15:58Z", "ResourceStatus": "CREATE_COMPLETE" }, ``` I believe that this [was fixed at one point](https://github.com/localstack/localstack/pull/577) in Localstack, but seems to have since been reverted. I've [submitted an upstream issue](https://github.com/spulec/moto/issues/2407) to Moto as well.
https://github.com/localstack/localstack/issues/1535
https://github.com/localstack/localstack/pull/1560
f3a106b1a7d9b1356aa24ccb9a5c804132c4e3c0
04a2ee1f404502df4d9b85c555b2c42cdffcac42
"2019-09-03T22:10:05Z"
python
"2019-09-12T07:04:23Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,527
["localstack/constants.py", "localstack/plugins.py", "localstack/services/iam/iam_listener.py", "localstack/services/infra.py", "localstack/services/logs/__init__.py", "localstack/services/logs/logs_listener.py", "localstack/services/logs/logs_starter.py"]
Cloudwatch Logs DescribeLogGroups response nextToken format is incorrect
Having deployed a large number of lambdas to localstack and enabled cloudwatch logs for all of them, I attempted to retrieve a list of log groups using `aws logs describe-log-groups --endpoint-url http://localhost:4586 --region us-east-1` However this only resulted in the following error message: `Parameter validation failed: Invalid type for parameter nextToken, value: 50, type: <class 'int'>, valid types: <class 'str'>` If I append `--no-paginate` to the command, I get some of the log groups, and immediately notice the following in the response json: `"nextToken": 50` I attempted the same on regular aws (ie `aws logs describe-log-groups --no-paginate`) and saw that the nextToken is actually the name of a log group: `"nextToken": "/aws/lambda/service-stage-function"`
https://github.com/localstack/localstack/issues/1527
https://github.com/localstack/localstack/pull/1988
7ff1137b8f7a5161acaccdf8270f483dff0aeeb9
58f67a8650888e7a065ac6d7aeddba02db2d6afa
"2019-09-03T02:13:51Z"
python
"2020-01-26T22:04:36Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,524
["README.md", "localstack/config.py", "localstack/services/kinesis/kinesis_starter.py"]
Kinesis proxy hangs once ShardLimit is hit
I have tests that generate unique dynamodb tables (with streams enabled) for each test (to provide isolation) and keep running into Math.random() with tests timing out. After bash'ing into the docker container and force killing various services, I narrowed it down to kinesalite. An easy way to reproduce isrun it within sharedLimit = 1 like so: `node /opt/code/localstack/localstack/node_modules/kinesalite/cli.js --shardLimit 1 --port 4565` Doing so causes dynamodb.createTable commands to hang after a few tries.
https://github.com/localstack/localstack/issues/1524
https://github.com/localstack/localstack/pull/1526
737ca72b7bce6e377dd6876eacee63338fa8c30c
5494437a03545f9eda7eb5c457f44f3c58ae5b2e
"2019-09-02T22:32:16Z"
python
"2019-09-03T21:02:02Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,503
["tests/integration/test_sqs.py"]
Cannot send message to FIFO queue with DelaySeconds parameter
If you attempt to send a message to a FIFO queue with a request that contains the `DelaySeconds` parameter, the request fails with an `InvalidParameterValue` response. This is actually a problem with ElasticMQ, but I'm creating an issue here to track that the version localstack is using gets updated if/when a fix is released. More Information: https://github.com/softwaremill/elasticmq/issues/273
https://github.com/localstack/localstack/issues/1503
https://github.com/localstack/localstack/pull/2227
38923ae321c2f85e59cf6167b95e370dcb49f845
8fd0e1358d83130f95869710f4d931403b1e7331
"2019-08-26T16:43:03Z"
python
"2020-04-01T19:14:20Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,494
["bin/docker-entrypoint.sh"]
s3 persistent data restore failed
thanks for the awesome project! ``` environment: SERVICES: s3 DEFAULT_REGION: us-east-1 DEBUG: 1 DATA_DIR: /tmp/localstack/data volumes: - './var/localstack:/tmp/localstack' ``` It works fine on the first "docker-compose up". Restart "docker-compose" for s3 persistent volume test The restore will fail. ``` OUT > Waiting for all LocalStack services to be ready OUT > 2019-08-20 10:24:29,263 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. OUT > 2019-08-20 10:24:29,264 INFO supervisord started with pid 12 OUT > 2019-08-20 10:24:30,267 INFO spawned: 'dashboard' with pid 20 OUT > 2019-08-20 10:24:30,269 INFO spawned: 'infra' with pid 21 OUT > 2019-08-20 10:24:30,274 INFO success: dashboard entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) OUT > (. .venv/bin/activate; bin/localstack web) OUT > (. .venv/bin/activate; exec bin/localstack start --host) OUT > 2019-08-20 10:24:31,282 INFO success: infra entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) OUT > Starting local dev environment. CTRL-C to quit. OUT > cannot import name 'dns_server' OUT > Starting mock S3 (http port 4572)... OUT > Waiting for all LocalStack services to be ready OUT > 2019-08-20 10:24:39,809:API: 127.0.0.1 - - [20/Aug/2019 10:24:39] "GET / HTTP/1.1" 200 - OUT > 2019-08-20 10:24:39,819:API: 127.0.0.1 - - [20/Aug/2019 10:24:39] "PUT /max HTTP/1.1" 200 - OUT > 2019-08-20 10:24:39,829:API: 127.0.0.1 - - [20/Aug/2019 10:24:39] "PUT /max/a289c68170df2904d63e4e24bab97213ca8711da.jpg HTTP/1.1" 200 - OUT > 2019-08-20 10:24:39,841:API: 127.0.0.1 - - [20/Aug/2019 10:24:39] "PUT /max/616569dd2b470e44277ad2705c6d1f6cf900747c.jpg HTTP/1.1" 200 - OUT > 2019-08-20 10:24:39,853:API: 127.0.0.1 - - [20/Aug/2019 10:24:39] "PUT /max/59dbdef9a2fd1d33a2e5f73b16bfa4bd5bafd5f4.jpg HTTP/1.1" 200 - OUT > 2019-08-20 10:24:39,861:API: 127.0.0.1 - - [20/Aug/2019 10:24:39] "PUT /max/ae5cd76b42c42aaa315b048f3bcc3ea4541e4945.jpg HTTP/1.1" 200 - OUT > 2019-08-20 10:24:39,872:API: 127.0.0.1 - - [20/Aug/2019 10:24:39] "PUT /max/a0df2ea4bc6054f14f8af989dc427d2eb195b9c9.jpg HTTP/1.1" 200 - OUT > 2019-08-20 10:24:39,941:API: 127.0.0.1 - - [20/Aug/2019 10:24:39] "PUT /max/5e3be602b7e3fd317eb07fcddd77c9238ab00eed.gif HTTP/1.1" 200 - OUT > 2019-08-20 10:24:40,088:API: 127.0.0.1 - - [20/Aug/2019 10:24:40] "PUT /max/e548b034515fe47f4fea7f372b1a9738492146ef.gif HTTP/1.1" 200 - OUT > 2019-08-20 10:24:40,138:API: 127.0.0.1 - - [20/Aug/2019 10:24:40] "PUT /max/97db749c2196b2027e1665a1f99e5dc796d5378f.jpg HTTP/1.1" 200 - OUT > 2019-08-20 10:24:40,160:API: 127.0.0.1 - - [20/Aug/2019 10:24:40] "PUT /max/439f08e7795d3cc9045f6df4c62da2fa3019b854.jpg HTTP/1.1" 200 - OUT > 2019-08-20 10:24:40,169:API: 127.0.0.1 - - [20/Aug/2019 10:24:40] "PUT /max/ea256f899199af63a0a6ed91320ad73e77513a4e.jpg HTTP/1.1" 200 - OUT > 2019-08-20 10:24:40,177:API: 127.0.0.1 - - [20/Aug/2019 10:24:40] "PUT /max/fc26d68d849d8dc9f8fac8681aee2e17670fa800.jpg HTTP/1.1" 200 - OUT > Error starting infrastructure: Expecting ',' delimiter: line 1 column 16387 (char 16386) Traceback (most recent call last): OUT > File "/opt/code/localstack/localstack/services/infra.py", line 392, in start_infra OUT > restore_persisted_data(apis=apis) OUT > File "/opt/code/localstack/localstack/services/infra.py", line 210, in restore_persisted_data OUT > persistence.restore_persisted_data(api) OUT > File "/opt/code/localstack/localstack/utils/persistence.py", line 92, in restore_persisted_data OUT > return replay(api) OUT > File "/opt/code/localstack/localstack/utils/persistence.py", line 83, in replay OUT > command = json.loads(line) OUT > File "/usr/lib/python3.6/json/__init__.py", line 354, in loads OUT > return _default_decoder.decode(s) OUT > File "/usr/lib/python3.6/json/decoder.py", line 339, in decode OUT > obj, end = self.raw_decode(s, idx=_w(s, 0).end()) OUT > File "/usr/lib/python3.6/json/decoder.py", line 355, in raw_decode OUT > obj, end = self.scan_once(s, idx) OUT > json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1 column 16387 (char 16386) OUT > 2019-08-20 10:24:42,574 INFO exited: infra (exit status 2; not expected) OUT > 2019-08-20 10:24:42,576 INFO spawned: 'infra' with pid 75 OUT > Waiting for all LocalStack services to be ready OUT > Traceback (most recent call last): OUT > File "bin/localstack", line 86, in <module> OUT > subcommand['function'](argv, args) OUT > File "/opt/code/localstack/localstack/utils/cli.py", line 34, in cmd_infra OUT > bootstrap.start_infra_locally() OUT > File "/opt/code/localstack/localstack/utils/bootstrap.py", line 223, in start_infra_locally OUT > return infra.start_infra() OUT > File "/opt/code/localstack/localstack/services/infra.py", line 407, in start_infra OUT > raise e OUT > File "/opt/code/localstack/localstack/services/infra.py", line 392, in start_infra OUT > restore_persisted_data(apis=apis) OUT > File "/opt/code/localstack/localstack/services/infra.py", line 210, in restore_persisted_data OUT > persistence.restore_persisted_data(api) OUT > File "/opt/code/localstack/localstack/utils/persistence.py", line 92, in restore_persisted_data OUT > return replay(api) OUT > File "/opt/code/localstack/localstack/utils/persistence.py", line 83, in replay OUT > command = json.loads(line) OUT > File "/usr/lib/python3.6/json/__init__.py", line 354, in loads OUT > return _default_decoder.decode(s) OUT > File "/usr/lib/python3.6/json/decoder.py", line 339, in decode OUT > obj, end = self.raw_decode(s, idx=_w(s, 0).end()) OUT > File "/usr/lib/python3.6/json/decoder.py", line 355, in raw_decode OUT > obj, end = self.scan_once(s, idx) OUT > json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1 column 16387 (char 16386) OUT > OUT > ERROR: Expecting ',' delimiter: line 1 column 16387 (char 16386) OUT > (. .venv/bin/activate; exec bin/localstack start --host) OUT > make: *** [Makefile:47: infra] Error 1 OUT > 2019-08-20 10:24:43,585 INFO success: infra entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) OUT > Starting local dev environment. CTRL-C to quit. OUT > cannot import name 'dns_server' OUT > Starting mock S3 (http port 4572)... OUT > Waiting for all LocalStack services to be ready OUT > 2019-08-20 10:24:49,607:API: 127.0.0.1 - - [20/Aug/2019 10:24:49] "GET / HTTP/1.1" 200 - OUT > 2019-08-20 10:24:49,617:API: 127.0.0.1 - - [20/Aug/2019 10:24:49] "PUT /max HTTP/1.1" 200 - OUT > 2019-08-20 10:24:49,626:API: 127.0.0.1 - - [20/Aug/2019 10:24:49] "PUT /max/a289c68170df2904d63e4e24bab97213ca8711da.jpg HTTP/1.1" 200 - OUT > 2019-08-20 10:24:49,637:API: 127.0.0.1 - - [20/Aug/2019 10:24:49] "PUT /max/616569dd2b470e44277ad2705c6d1f6cf900747c.jpg HTTP/1.1" 200 - OUT > 2019-08-20 10:24:49,648:API: 127.0.0.1 - - [20/Aug/2019 10:24:49] "PUT /max/59dbdef9a2fd1d33a2e5f73b16bfa4bd5bafd5f4.jpg HTTP/1.1" 200 - OUT > 2019-08-20 10:24:49,656:API: 127.0.0.1 - - [20/Aug/2019 10:24:49] "PUT /max/ae5cd76b42c42aaa315b048f3bcc3ea4541e4945.jpg HTTP/1.1" 200 - OUT > 2019-08-20 10:24:49,666:API: 127.0.0.1 - - [20/Aug/2019 10:24:49] "PUT /max/a0df2ea4bc6054f14f8af989dc427d2eb195b9c9.jpg HTTP/1.1" 200 - OUT > 2019-08-20 10:24:49,725:API: 127.0.0.1 - - [20/Aug/2019 10:24:49] "PUT /max/5e3be602b7e3fd317eb07fcddd77c9238ab00eed.gif HTTP/1.1" 200 - OUT > 2019-08-20 10:24:49,860:API: 127.0.0.1 - - [20/Aug/2019 10:24:49] "PUT /max/e548b034515fe47f4fea7f372b1a9738492146ef.gif HTTP/1.1" 200 - OUT > 2019-08-20 10:24:49,917:API: 127.0.0.1 - - [20/Aug/2019 10:24:49] "PUT /max/97db749c2196b2027e1665a1f99e5dc796d5378f.jpg HTTP/1.1" 200 - OUT > 2019-08-20 10:24:49,937:API: 127.0.0.1 - - [20/Aug/2019 10:24:49] "PUT /max/439f08e7795d3cc9045f6df4c62da2fa3019b854.jpg HTTP/1.1" 200 - OUT > 2019-08-20 10:24:49,945:API: 127.0.0.1 - - [20/Aug/2019 10:24:49] "PUT /max/ea256f899199af63a0a6ed91320ad73e77513a4e.jpg HTTP/1.1" 200 - OUT > 2019-08-20 10:24:49,954:API: 127.0.0.1 - - [20/Aug/2019 10:24:49] "PUT /max/fc26d68d849d8dc9f8fac8681aee2e17670fa800.jpg HTTP/1.1" 200 - OUT > Error starting infrastructure: Expecting ',' delimiter: line 1 column 16387 (char 16386) Traceback (most recent call last): OUT > File "/opt/code/localstack/localstack/services/infra.py", line 392, in start_infra OUT > restore_persisted_data(apis=apis) OUT > File "/opt/code/localstack/localstack/services/infra.py", line 210, in restore_persisted_data OUT > persistence.restore_persisted_data(api) OUT > File "/opt/code/localstack/localstack/utils/persistence.py", line 92, in restore_persisted_data OUT > return replay(api) OUT > File "/opt/code/localstack/localstack/utils/persistence.py", line 83, in replay OUT > command = json.loads(line) OUT > File "/usr/lib/python3.6/json/__init__.py", line 354, in loads OUT > return _default_decoder.decode(s) OUT > File "/usr/lib/python3.6/json/decoder.py", line 339, in decode OUT > obj, end = self.raw_decode(s, idx=_w(s, 0).end()) OUT > File "/usr/lib/python3.6/json/decoder.py", line 355, in raw_decode OUT > obj, end = self.scan_once(s, idx) OUT > json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1 column 16387 (char 16386) OUT > Traceback (most recent call last): OUT > File "bin/localstack", line 86, in <module> OUT > subcommand['function'](argv, args) OUT > File "/opt/code/localstack/localstack/utils/cli.py", line 34, in cmd_infra OUT > bootstrap.start_infra_locally() OUT > File "/opt/code/localstack/localstack/utils/bootstrap.py", line 223, in start_infra_locally OUT > return infra.start_infra() OUT > File "/opt/code/localstack/localstack/services/infra.py", line 407, in start_infra OUT > raise e OUT > File "/opt/code/localstack/localstack/services/infra.py", line 392, in start_infra OUT > restore_persisted_data(apis=apis) OUT > File "/opt/code/localstack/localstack/services/infra.py", line 210, in restore_persisted_data OUT > persistence.restore_persisted_data(api) OUT > File "/opt/code/localstack/localstack/utils/persistence.py", line 92, in restore_persisted_data OUT > return replay(api) OUT > File "/opt/code/localstack/localstack/utils/persistence.py", line 83, in replay OUT > command = json.loads(line) OUT > File "/usr/lib/python3.6/json/__init__.py", line 354, in loads OUT > return _default_decoder.decode(s) OUT > File "/usr/lib/python3.6/json/decoder.py", line 339, in decode OUT > obj, end = self.raw_decode(s, idx=_w(s, 0).end()) OUT > File "/usr/lib/python3.6/json/decoder.py", line 355, in raw_decode ... ```
https://github.com/localstack/localstack/issues/1494
https://github.com/localstack/localstack/pull/1567
c615a0f721b9917d6c73e9ba3b0498f9e705e5b0
6a2a26fbc5043f30e76b92456643339f6abf034d
"2019-08-20T10:27:21Z"
python
"2019-09-18T15:07:27Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,477
["bin/Dockerfile.base", "localstack/config.py", "localstack/services/awslambda/lambda_api.py"]
Cloudformation failing when using stackId
Hey, first thanks for this amazing project! I was trying to use serverless and localstack together, and I was having problems deploying a lambda function. In the logs I was getting errors 502 all the time: ```Serverless: Recoverable error occurred (502), sleeping for 5 seconds. Try 4 of 4 Serverless Error --------------------------------------- 502 ``` I then start tracking the error, since this one above didn't give me much information, and I ended up at Serverless calling cloud formation's `describe-stack-events` using the unique stack id, instead of the stack name: https://github.com/serverless/serverless/blob/f93b27bf684d9a14b1e67ec554a7719ca3628135/lib/plugins/aws/lib/monitorStack.js#L33 That is a legit request, as seen in the aws docs: https://docs.aws.amazon.com/cli/latest/reference/cloudformation/describe-stack-events.html#options The cloudformation mock within localstack accepts the stackName without problems: ``` > aws --endpoint-url=http://localhost:4581 cloudformation list-stacks { "StackSummaries": [ { "StackId": "arn:aws:cloudformation:us-east-1:000000000000:stack/steamRoller-local/fcbeb0ef-9739-44a2-8a37-f599bbf4e5f3", "StackName": "steamRoller-local", "CreationTime": "2011-05-23T15:47:44Z", "StackStatus": "UPDATE_COMPLETE", "TemplateDescription": "The AWS CloudFormation template for this Serverless application" } ] } > aws --endpoint-url=http://localhost:4581 cloudformation describe-stack-events --stack-name steamRoller-local { "StackEvents": [ { "StackId": "arn:aws:cloudformation:us-east-1:000000000000:stack/steamRoller-local/fcbeb0ef-9739-44a2-8a37-f599bbf4e5f3", "EventId": "a49fd67b-ce7b-4a33-9a00-6ebe2242adae", "ResourceStatus": "UPDATE_COMPLETE", "ResourceType": "AWS::CloudFormation::Stack", "Timestamp": "2019-08-10T13:44:44.550022Z", "StackName": "steamRoller-local", "PhysicalResourceId": "arn:aws:cloudformation:us-east-1:000000000000:stack/steamRoller-local/fcbeb0ef-9739-44a2-8a37-f599bbf4e5f3", "StackName": "steamRoller-local", "PhysicalResourceId": "arn:aws:cloudformation:us-east-1:000000000000:stack/steamRoller-local/fcbeb0ef-9739-44a2-8a37-f599bbf4e5f3", "LogicalResourceId": "steamRoller-local" }, { "StackId": "arn:aws:cloudformation:us-east-1:000000000000:stack/steamRoller-local/fcbeb0ef-9739-44a2-8a37-f599bbf4e5f3", "EventId": "35ef5c91-99a0-483d-b6b7-e01ee3dda2dd", "ResourceStatus": "CREATE_IN_PROGRESS", "ResourceType": "AWS::CloudFormation::Stack", "Timestamp": "2019-08-10T13:37:51.124574Z", "ResourceStatusReason": "User Initiated", "StackName": "steamRoller-local", "PhysicalResourceId": "arn:aws:cloudformation:us-east-1:000000000000:stack/steamRoller-local/fcbeb0ef-9739-44a2-8a37-f599bbf4e5f3", "LogicalResourceId": "steamRoller-local" } ] } ``` But it doesn't accept the stackId as the argument (the one used by serverless): ``` > aws --endpoint-url=http://localhost:4581 cloudformation describe-stack-events --stack-name arn:aws:cloudformation:us-east-1:000000000000:stack/steamRoller-local/fcbeb0ef-9739-44a2-8a37-f599bbf4e5f3 An error occurred (502) when calling the DescribeStackEvents operation (reached max retries: 4): Bad Gateway ``` If I have a look at the docker logs I can see: ``` "invalid XML received:\n%s" % (e, xml_string)) botocore.parsers.ResponseParserError: Unable to parse response (syntax error: line 1, column 54), invalid XML received: b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' ``` That matches what other colleagues were seeing: https://github.com/localstack/localstack/issues/965 Please, make localstack's cloudformation handle the stackId in describe-stack-events and other actions that accepts it. This is a blocker for using localstack for me :/ Thanks
https://github.com/localstack/localstack/issues/1477
https://github.com/localstack/localstack/pull/1504
1647cc96908c55bb437ecc80b2698b2990c2f41b
beb712c203f1141cbf5fd516321492a7f37e94da
"2019-08-10T14:53:27Z"
python
"2019-08-26T17:43:56Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,457
["bin/docker-entrypoint.sh"]
Connection Refused: Kinesis
**Versions:** ``` localstack: 0.9.6 docker image: localstack/localstack:latest serverless-localstack: ^0.4.17 serverless: 1.47.0 runtime: nodejs10.x ``` **Problem:** Developing on Localstack with the Serverless plugin. I was having difficulty getting streams to work, and noticed the localstack container was complaining (see below). I'm able to hit dynamodb, but in the logging, the streams and kinesis are never found. ``` Traceback (most recent call last): File "/opt/code/localstack/.venv/lib/python3.6/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/opt/code/localstack/.venv/lib/python3.6/site-packages/urllib3/connectionpool.py", line 641, in urlopen _stacktrace=sys.exc_info()[2]) File "/opt/code/localstack/.venv/lib/python3.6/site-packages/urllib3/util/retry.py", line 399, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=4565): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb8f9570978>: Failed to establish a new connection: [Errno 111] Connection refused',)) ``` **WHAT I'VE TRIED:** - Read almost all previous issues on this and their fixes do not work. - Uninstalling and reinstalling localstack packages - I upgraded versions, which had no effect. - I specified in the docker-compose for kinesis to start on 4565 (as well for serverless), which made the connection refusals disappear, but then got this, which seems to indicate that there is a dependency for dynamodb streams and kinesis: ```Waiting for all LocalStack services to be ready 2019-08-02 14:39:29,655 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. 2019-08-02 14:39:29,658 INFO supervisord started with pid 13 2019-08-02 14:39:30,662 INFO spawned: 'dashboard' with pid 21 2019-08-02 14:39:30,664 INFO spawned: 'infra' with pid 22 (. .venv/bin/activate; bin/localstack web) 2019-08-02 14:39:30,669 INFO success: dashboard entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) (. .venv/bin/activate; exec bin/localstack start) 2019-08-02 14:39:31,672 INFO success: infra entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) Starting local dev environment. CTRL-C to quit. Starting mock S3 (http port 4572)... Starting mock SNS (http port 4575)... Starting mock SES (http port 4579)... Starting mock STS (http port 4592)... Starting mock IAM (http port 4593)... Starting mock API Gateway (http port 4567)... Starting mock DynamoDB (http port 8000)... Starting mock DynamoDB Streams service (http port 4570)... Starting mock Lambda service (http port 4574)... Starting mock Kinesis (http port 4565)... Starting mock CloudFormation (http port 4581)... Starting mock CloudWatch (http port 4582)... Starting mock CloudWatch Logs (http port 4586)... Starting mock StepFunctions (http port 4585)... 2019-08-02T14:39:32:DEBUG:localstack.services.awslambda.lambda_executors: Getting all lambda containers names. 2019-08-02T14:39:32:DEBUG:localstack.services.awslambda.lambda_executors: docker ps -a --filter="name=localstack_lambda_*" --format "{{.Names}}" 2019-08-02T14:39:32:DEBUG:localstack.services.awslambda.lambda_executors: Removing 0 containers. 2019-08-02T14:39:32:INFO:localstack.services.awslambda.lambda_executors: Checking if there are idle containers. Initializing DynamoDB Local with the following configuration: Port: 4564 InMemory: false DbPath: /tmp/localstack/data/dynamodb SharedDb: true shouldDelayTransientStatuses: false CorsParams: * Step Functions Local Version: 1.2.1 Build: 2019-07-18 2019-08-02 14:39:34.861: Configure [Account] to [000000000000] 2019-08-02 14:39:34.863: Configure [Region] to [us-east-1] 2019-08-02 14:39:34.864: Configure [Lambda Endpoint] to [http://localhost:4574] 2019-08-02 14:39:34.865: Configure [DynamoDB Endpoint] to [http://localhost:8000] 2019-08-02 14:39:34.866: Configure [SQS Endpoint] to [http://localhost:0] 2019-08-02 14:39:34.866: Configure [SNS Endpoint] to [http://localhost:4575] 2019-08-02 14:39:34.899: Loaded credentials from environment 2019-08-02 14:39:34.906: Starting server on port 8083 with account 000000000000, region us-east-1 Waiting for all LocalStack services to be ready * Running on http://0.0.0.0:4566/ (Press CTRL+C to quit) Aug 02, 2019 2:39:37 PM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry WARNING: SSL Certificate checking for endpoints has been explicitly disabled. * Running on http://0.0.0.0:4579/ (Press CTRL+C to quit) * Running on http://0.0.0.0:4557/ (Press CTRL+C to quit) * Running on http://0.0.0.0:4562/ (Press CTRL+C to quit) * Running on http://0.0.0.0:4582/ (Press CTRL+C to quit) 2019-08-02T14:39:38:INFO:werkzeug: * Running on http://0.0.0.0:4559/ (Press CTRL+C to quit) * Running on http://0.0.0.0:4592/ (Press CTRL+C to quit) * Running on http://0.0.0.0:4586/ (Press CTRL+C to quit) Aug 02, 2019 2:39:38 PM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry WARNING: SSL Certificate checking for endpoints has been explicitly disabled. Aug 02, 2019 2:39:38 PM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry WARNING: SSL Certificate checking for endpoints has been explicitly disabled. 2019-08-02T14:39:38:INFO:werkzeug: * Running on http://0.0.0.0:4563/ (Press CTRL+C to quit) Aug 02, 2019 2:39:38 PM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry WARNING: SSL Certificate checking for endpoints has been explicitly disabled. Aug 02, 2019 2:39:38 PM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry WARNING: SSL Certificate checking for endpoints has been explicitly disabled. Aug 02, 2019 2:39:38 PM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry WARNING: SSL Certificate checking for endpoints has been explicitly disabled. Aug 02, 2019 2:39:38 PM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry WARNING: SSL Certificate checking for endpoints has been explicitly disabled. Aug 02, 2019 2:39:38 PM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry WARNING: SSL Certificate checking for endpoints has been explicitly disabled. 2019-08-02T14:39:38:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:39:38] "GET / HTTP/1.1" 200 - Waiting for all LocalStack services to be ready Waiting for all LocalStack services to be ready 2019-08-02T14:39:53:WARNING:infra.py: Service "kinesis" not yet available, retrying... 2019-08-02T14:39:56:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:39:56] "GET / HTTP/1.1" 200 - Waiting for all LocalStack services to be ready 2019-08-02T14:39:57:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:39:57] "POST / HTTP/1.1" 400 - 2019-08-02T14:39:57:DEBUG:__main__: Currently updating stack resource api-local/ServerlessDeploymentBucket: None 2019-08-02T14:39:57:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:39:57] "GET /api-local-ServerlessDeploymentBucket-A-ZA-Z2A-Z54909A-Z03?location HTTP/1.1" 404 - 2019-08-02T14:39:57:DEBUG:__main__: Deploying CloudFormation resource: {'Type': 'AWS::S3::Bucket', 'Properties': {'BucketEncryption': {'ServerSideEncryptionConfiguration': [{'ServerSideEncryptionByDefault': {'SSEAlgorithm': 'AES256'}}]}, 'BucketName': 'api-local-ServerlessDeploymentBucket-A-ZA-Z2A-Z54909A-Z03'}} 2019-08-02T14:39:57:DEBUG:localstack.utils.cloudformation.template_deployer: Deploying resource type "S3::Bucket" id "ServerlessDeploymentBucket" 2019-08-02T14:39:57:DEBUG:localstack.utils.cloudformation.template_deployer: Request for creating resource type "S3::Bucket": {'Bucket': 'api-local-ServerlessDeploymentBucket-A-ZA-Z2A-Z54909A-Z03', 'ACL': 'public-read'} 2019-08-02T14:39:57:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:39:57] "PUT /api-local-ServerlessDeploymentBucket-A-ZA-Z2A-Z54909A-Z03 HTTP/1.1" 200 - 2019-08-02T14:39:57:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:39:57] "POST / HTTP/1.1" 200 - 2019-08-02T14:39:57: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 api-local does not exist</Message>\n </Error>\n <RequestId>cf4c737e-5ae2-11e4-a7c9-ad44eEXAMPLE</RequestId>\n</ErrorResponse>' 2019-08-02T14:40:02:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:40:02] "POST / HTTP/1.1" 200 - 2019-08-02T14:40:02:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:40:02] "POST / HTTP/1.1" 200 - 2019-08-02T14:40:03:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:40:03] "GET /api-local-ServerlessDeploymentBucket-A-ZA-Z2A-Z54909A-Z03?list-type=2&prefix=serverless%2Fapi%2Flocal HTTP/1.1" 200 - 172.17.0.1 - - [02/Aug/2019 14:40:03] "POST / HTTP/1.1" 200 - 2019-08-02T14:40:03:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:40:03] "PUT /api-local-ServerlessDeploymentBucket-A-ZA-Z2A-Z54909A-Z03/serverless/api/local/1564756797537-2019-08-02T14%3A39%3A57.537Z/compiled-cloudformation-template.json HTTP/1.1" 200 - 2019-08-02T14:40:03:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:40:03] "PUT /api-local-ServerlessDeploymentBucket-A-ZA-Z2A-Z54909A-Z03/serverless/api/local/1564756797537-2019-08-02T14%3A39%3A57.537Z/api.zip HTTP/1.1" 200 - 2019-08-02T14:40:03:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:40:03] "GET /api-local-ServerlessDeploymentBucket-A-ZA-Z2A-Z54909A-Z03/serverless/api/local/1564756797537-2019-08-02T14%3A39%3A57.537Z/compiled-cloudformation-template.json HTTP/1.1" 200 - 2019-08-02T14:40:03:DEBUG:__main__: Currently updating stack resource api-local/ApiGatewayDeployment1564756767720: None 2019-08-02T14:40:03:DEBUG:__main__: Currently updating stack resource api-local/ApiGatewayRestApi: None 127.0.0.1 - - [02/Aug/2019 14:40:03] "GET /restapis HTTP/1.1" 200 - 2019-08-02T14:40:03:DEBUG:__main__: Deploying CloudFormation resource: {'Type': 'AWS::ApiGateway::RestApi', 'Properties': {'Name': 'local-api', 'EndpointConfiguration': {'Types': ['EDGE']}, 'MinimumCompressionSize': 0}} 2019-08-02T14:40:03:DEBUG:localstack.utils.cloudformation.template_deployer: Deploying resource type "ApiGateway::RestApi" id "ApiGatewayRestApi" 2019-08-02T14:40:03:DEBUG:localstack.utils.cloudformation.template_deployer: Request for creating resource type "ApiGateway::RestApi": {'name': 'local-api'} 127.0.0.1 - - [02/Aug/2019 14:40:03] "POST /restapis HTTP/1.1" 200 - 2019-08-02T14:40:03:DEBUG:__main__: Updating resource id: 560f255f - 36A-Z6898537, 560f255f - {'Type': 'AWS::ApiGateway::RestApi', 'Properties': {'Name': 'local-api', 'EndpointConfiguration': {'Types': ['EDGE']}, 'MinimumCompressionSize': 0}} 2019-08-02T14:40:03:INFO:__main__: Updating resource ID from 560f255f to 36A-Z6898537 127.0.0.1 - - [02/Aug/2019 14:40:03] "GET /restapis/36A-Z6898537/resources?limit=500 HTTP/1.1" 200 - 2019-08-02T14:40:03:WARNING:__main__: Unable to determine physical_resource_id for resource <class 'moto.apigateway.models.RestAPI'> 127.0.0.1 - - [02/Aug/2019 14:40:03] "GET /restapis/36A-Z6898537/deployments HTTP/1.1" 200 - 2019-08-02T14:40:03:DEBUG:__main__: Deploying CloudFormation resource: {'Type': 'AWS::ApiGateway::Deployment', 'Properties': {'RestApiId': '36A-Z6898537', 'StageName': 'local'}, 'DependsOn': ['ApiGatewayMethodApiFterequestIdVarOptions', 'ApiGatewayMethodApiFterequestOptions', 'ApiGatewayMethodApiFterequestIdVarGet', 'ApiGatewayMethodApiFterequestGet', 'ApiGatewayMethodApiFterequestPost', 'ApiGatewayMethodApiFterequestIdVarPut']} 2019-08-02T14:40:03:DEBUG:localstack.utils.cloudformation.template_deployer: Deploying resource type "ApiGateway::Deployment" id "ApiGatewayDeployment1564756767720" 2019-08-02T14:40:03:DEBUG:localstack.utils.cloudformation.template_deployer: Request for creating resource type "ApiGateway::Deployment": {'restApiId': '36A-Z6898537', 'stageName': 'local'} 127.0.0.1 - - [02/Aug/2019 14:40:03] "POST /restapis/36A-Z6898537/deployments HTTP/1.1" 200 - 2019-08-02T14:40:03:DEBUG:__main__: Updating resource id: a5aa8a71 - 0388631A-Z24, {'id': 'a5aa8a71', 'stageName': 'local', 'description': '', 'createdDate': 1564756803} - {'Type': 'AWS::ApiGateway::Deployment', 'Properties': {'RestApiId': '36A-Z6898537', 'StageName': 'local'}, 'DependsOn': ['ApiGatewayMethodApiFterequestIdVarOptions', 'ApiGatewayMethodApiFterequestOptions', 'ApiGatewayMethodApiFterequestIdVarGet', 'ApiGatewayMethodApiFterequestGet', 'ApiGatewayMethodApiFterequestPost', 'ApiGatewayMethodApiFterequestIdVarPut']} 2019-08-02T14:40:03:INFO:__main__: Updating resource ID from a5aa8a71 to 0388631A-Z24 2019-08-02T14:40:03:WARNING:__main__: Unable to determine physical_resource_id for resource <class 'moto.apigateway.models.Deployment'> 2019-08-02T14:40:03:DEBUG:__main__: Currently updating stack resource api-local/ApiGatewayResourceApi: None 127.0.0.1 - - [02/Aug/2019 14:40:03] "GET /restapis/36A-Z6898537/resources HTTP/1.1" 200 - 2019-08-02T14:40:03:DEBUG:__main__: Deploying CloudFormation resource: {'Type': 'AWS::ApiGateway::Resource', 'Properties': {'ParentId': '1257A-Z78734', 'PathPart': 'api', 'RestApiId': '36A-Z6898537'}} 2019-08-02T14:40:03:DEBUG:localstack.utils.cloudformation.template_deployer: Deploying resource type "ApiGateway::Resource" id "ApiGatewayResourceApi" 2019-08-02T14:40:03:DEBUG:localstack.utils.cloudformation.template_deployer: Request for creating resource type "ApiGateway::Resource": {'restApiId': '36A-Z6898537', 'pathPart': 'api', 'parentId': '1257A-Z78734'} 127.0.0.1 - - [02/Aug/2019 14:40:03] "POST /restapis/36A-Z6898537/resources/1257A-Z78734 HTTP/1.1" 200 - 2019-08-02T14:40:03:DEBUG:__main__: Updating resource id: 37798915 - 7713930001, <moto.apigateway.models.Resource object at 0x7fea84c20048> - {'Type': 'AWS::ApiGateway::Resource', 'Properties': {'ParentId': '1257A-Z78734', 'PathPart': 'api', 'RestApiId': '36A-Z6898537'}} 2019-08-02T14:40:03:INFO:__main__: Updating resource ID from 37798915 to 7713930001 2019-08-02T14:40:03:WARNING:__main__: Unable to determine physical_resource_id for resource <class 'moto.apigateway.models.Resource'> 2019-08-02T14:40:03:DEBUG:__main__: Currently updating stack resource api-local/ApiGatewayResourceApiFterequestIdVar: None 2019-08-02T14:40:03:DEBUG:__main__: Currently updating stack resource api-local/ApiGatewayResourceApiFterequest: None 127.0.0.1 - - [02/Aug/2019 14:40:03] "GET /restapis/36A-Z6898537/resources HTTP/1.1" 200 - 2019-08-02T14:40:03:DEBUG:__main__: Deploying CloudFormation resource: {'Type': 'AWS::ApiGateway::Resource', 'Properties': {'ParentId': '7713930001', 'PathPart': 'fterequest', 'RestApiId': '36A-Z6898537'}} 2019-08-02T14:40:03:DEBUG:localstack.utils.cloudformation.template_deployer: Deploying resource type "ApiGateway::Resource" id "ApiGatewayResourceApiFterequest" 2019-08-02T14:40:03:DEBUG:localstack.utils.cloudformation.template_deployer: Request for creating resource type "ApiGateway::Resource": {'restApiId': '36A-Z6898537', 'pathPart': 'fterequest', 'parentId': '7713930001'} 127.0.0.1 - - [02/Aug/2019 14:40:03] "POST /restapis/36A-Z6898537/resources/7713930001 HTTP/1.1" 200 - 2019-08-02T14:40:03:DEBUG:__main__: Updating resource id: 966d907b - 49101A-Z3A-Z97, <moto.apigateway.models.Resource object at 0x7fea84b4c198> - {'Type': 'AWS::ApiGateway::Resource', 'Properties': {'ParentId': '7713930001', 'PathPart': 'fterequest', 'RestApiId': '36A-Z6898537'}} 2019-08-02T14:40:03:INFO:__main__: Updating resource ID from 966d907b to 49101A-Z3A-Z97 2019-08-02T14:40:03:WARNING:__main__: Unable to determine physical_resource_id for resource <class 'moto.apigateway.models.Resource'> 127.0.0.1 - - [02/Aug/2019 14:40:03] "GET /restapis/36A-Z6898537/resources HTTP/1.1" 200 - 2019-08-02T14:40:03:DEBUG:__main__: Deploying CloudFormation resource: {'Type': 'AWS::ApiGateway::Resource', 'Properties': {'ParentId': '49101A-Z3A-Z97', 'PathPart': '{id}', 'RestApiId': '36A-Z6898537'}} 2019-08-02T14:40:03:DEBUG:localstack.utils.cloudformation.template_deployer: Deploying resource type "ApiGateway::Resource" id "ApiGatewayResourceApiFterequestIdVar" 2019-08-02T14:40:03:DEBUG:localstack.utils.cloudformation.template_deployer: Request for creating resource type "ApiGateway::Resource": {'restApiId': '36A-Z6898537', 'pathPart': '{id}', 'parentId': '49101A-Z3A-Z97'} 127.0.0.1 - - [02/Aug/2019 14:40:03] "POST /restapis/36A-Z6898537/resources/49101A-Z3A-Z97 HTTP/1.1" 200 - 2019-08-02T14:40:03:DEBUG:__main__: Updating resource id: d9ed3323 - 898A-Z41A-Z921, <moto.apigateway.models.Resource object at 0x7fea85d2a240> - {'Type': 'AWS::ApiGateway::Resource', 'Properties': {'ParentId': '49101A-Z3A-Z97', 'PathPart': '{id}', 'RestApiId': '36A-Z6898537'}} 2019-08-02T14:40:03:INFO:__main__: Updating resource ID from d9ed3323 to 898A-Z41A-Z921 2019-08-02T14:40:03:WARNING:__main__: Unable to determine physical_resource_id for resource <class 'moto.apigateway.models.Resource'> 2019-08-02T14:40:03:DEBUG:__main__: Currently updating stack resource api-local/ApiLambdaFunction: None 2019-08-02T14:40:03:DEBUG:__main__: Currently updating stack resource api-local/IamRoleLambdaExecution: None 2019-08-02T14:40:03:DEBUG:__main__: Resource IamRoleLambdaExecution need not be deployed: {'Type': 'AWS::IAM::Role', 'Properties': {'AssumeRolePolicyDocument': {'Version': '2012-10-17', 'Statement': [{'Effect': 'Allow', 'Principal': {'Service': ['lambda.amazonaws.com']}, 'Action': ['sts:AssumeRole']}]}, 'Policies': [{'PolicyName': 'local-api-lambda', 'PolicyDocument': {'Version': '2012-10-17', 'Statement': [{'Effect': 'Allow', 'Action': ['logs:CreateLogStream'], 'Resource': ['arn:aws:logs:us-east-1:123456789012:log-group:/aws/lambda/api-local*:*']}, {'Effect': 'Allow', 'Action': ['logs:PutLogEvents'], 'Resource': ['arn:aws:logs:us-east-1:123456789012:log-group:/aws/lambda/api-local*:*:*']}, {'Effect': 'Allow', 'Action': ['dynamodb:DescribeTable', 'dynamodb:Query', 'dynamodb:Scan', 'dynamodb:GetItem', 'dynamodb:PutItem', 'dynamodb:UpdateItem', 'dynamodb:DeleteItem', 'dyanmodb:DescribeStream', 'dynamodb:ListStreams'], 'Resource': ['arn:aws:dynamodb:us-east-1:000000000000:table/fte-requests-local']}]}}], 'Path': '/', 'RoleName': 'api-local-us-east-1-lambdaRole'}} 2019-08-02T14:40:03:DEBUG:__main__: Deploying CloudFormation resource: {'Type': 'AWS::IAM::Role', 'Properties': {'AssumeRolePolicyDocument': {'Version': '2012-10-17', 'Statement': [{'Effect': 'Allow', 'Principal': {'Service': ['lambda.amazonaws.com']}, 'Action': ['sts:AssumeRole']}]}, 'Policies': [{'PolicyName': 'local-api-lambda', 'PolicyDocument': {'Version': '2012-10-17', 'Statement': [{'Effect': 'Allow', 'Action': ['logs:CreateLogStream'], 'Resource': ['arn:aws:logs:us-east-1:123456789012:log-group:/aws/lambda/api-local*:*']}, {'Effect': 'Allow', 'Action': ['logs:PutLogEvents'], 'Resource': ['arn:aws:logs:us-east-1:123456789012:log-group:/aws/lambda/api-local*:*:*']}, {'Effect': 'Allow', 'Action': ['dynamodb:DescribeTable', 'dynamodb:Query', 'dynamodb:Scan', 'dynamodb:GetItem', 'dynamodb:PutItem', 'dynamodb:UpdateItem', 'dynamodb:DeleteItem', 'dyanmodb:DescribeStream', 'dynamodb:ListStreams'], 'Resource': ['arn:aws:dynamodb:us-east-1:000000000000:table/fte-requests-local']}]}}], 'Path': '/', 'RoleName': 'api-local-us-east-1-lambdaRole'}} 2019-08-02T14:40:03:WARNING:localstack.utils.cloudformation.template_deployer: Unable to update resource type "IAM::Role", id "IamRoleLambdaExecution" 2019-08-02T14:40:03:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:40:03] "GET /api-local-ServerlessDeploymentBucket-A-ZA-Z2A-Z54909A-Z03/serverless/api/local/1564756797537-2019-08-02T14%3A39%3A57.537Z/api.zip HTTP/1.1" 200 - 2019-08-02T14:40:03:DEBUG:__main__: Deploying CloudFormation resource: {'Type': 'AWS::Lambda::Function', 'Properties': {'Code': {'S3Bucket': 'api-local-ServerlessDeploymentBucket-A-ZA-Z2A-Z54909A-Z03', 'S3Key': 'serverless/api/local/1564756797537-2019-08-02T14:39:57.537Z/api.zip'}, 'FunctionName': 'api-local-api', 'Handler': 'src/handler-api.apiHandler', 'MemorySize': 1024, 'Role': 'arn:aws:iam::000000000000:role/api-local-IamRoleLambdaExecution-829A-Z80909452', 'Runtime': 'nodejs10.x', 'Timeout': 6, 'Description': 'API endpoint', 'Environment': {'Variables': {'FTE_DYNAMODB_TABLE': 'fte-requests-local', 'PROFILE_DYNAMODB_TABLE': 'fte-profile-local', 'STAGE': 'local', 'DYNAMO_TABLE': 'fte-requests-local'}}}, 'DependsOn': ['ApiLogGroup', 'IamRoleLambdaExecution']} 2019-08-02T14:40:03:DEBUG:localstack.utils.cloudformation.template_deployer: Deploying resource type "Lambda::Function" id "ApiLambdaFunction" 2019-08-02T14:40:03:DEBUG:localstack.utils.cloudformation.template_deployer: Request for creating resource type "Lambda::Function": {'FunctionName': 'api-local-api', 'Runtime': 'nodejs10.x', 'Role': 'test_role', 'Handler': 'src/handler-api.apiHandler', 'Code': {'S3Bucket': 'api-local-ServerlessDeploymentBucket-A-ZA-Z2A-Z54909A-Z03', 'S3Key': 'serverless/api/local/1564756797537-2019-08-02T14:39:57.537Z/api.zip'}, 'Description': 'API endpoint', 'Environment': {'Variables': {'FTE_DYNAMODB_TABLE': 'fte-requests-local', 'PROFILE_DYNAMODB_TABLE': 'fte-profile-local', 'STAGE': 'local', 'DYNAMO_TABLE': 'fte-requests-local'}}, 'Timeout': 6, 'MemorySize': 1024} 2019-08-02T14:40:03:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:40:03] "HEAD /api-local-ServerlessDeploymentBucket-A-ZA-Z2A-Z54909A-Z03/serverless/api/local/1564756797537-2019-08-02T14%3A39%3A57.537Z/api.zip HTTP/1.1" 200 - 2019-08-02T14:40:03:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:40:03] "GET /api-local-ServerlessDeploymentBucket-A-ZA-Z2A-Z54909A-Z03/serverless/api/local/1564756797537-2019-08-02T14%3A39%3A57.537Z/api.zip HTTP/1.1" 200 - 2019-08-02T14:40:04:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:40:04] "HEAD /api-local-ServerlessDeploymentBucket-A-ZA-Z2A-Z54909A-Z03/serverless/api/local/1564756797537-2019-08-02T14%3A39%3A57.537Z/api.zip HTTP/1.1" 200 - 2019-08-02T14:40:04:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:40:04] "GET /api-local-ServerlessDeploymentBucket-A-ZA-Z2A-Z54909A-Z03/serverless/api/local/1564756797537-2019-08-02T14%3A39%3A57.537Z/api.zip HTTP/1.1" 200 - 2019-08-02T14:40:03:WARNING:localstack.services.awslambda.lambda_api: Function not found: arn:aws:lambda:us-east-1:000000000000:function:api-local-api 2019-08-02T14:40:04:DEBUG:localstack.services.awslambda.lambda_executors: Getting status for container "localstack_lambda_arn_aws_lambda_us-east-1_000000000000_function_api-local-api": docker ps -a --filter name='localstack_lambda_arn_aws_lambda_us-east-1_000000000000_function_api-local-api' --format "{{ .Status }} - {{ .Names }}" | grep -w "localstack_lambda_arn_aws_lambda_us-east-1_000000000000_function_api-local-api" | cat Waiting for all LocalStack services to be ready 2019-08-02T14:40:10:WARNING:infra.py: Service "kinesis" not yet available, retrying... Waiting for all LocalStack services to be ready 2019-08-02T14:40:12:ERROR:localstack.services.generic_proxy: Error forwarding request: the JSON object must be str, bytes or bytearray, not 'NoneType' Traceback (most recent call last): File "/opt/code/localstack/localstack/services/generic_proxy.py", line 210, in forward path=path, data=data, headers=forward_headers) File "/opt/code/localstack/localstack/services/dynamodb/dynamodb_listener.py", line 36, in forward_request data = json.loads(to_str(data)) File "/usr/lib/python3.6/json/__init__.py", line 348, in loads 'not {!r}'.format(s.__class__.__name__)) TypeError: the JSON object must be str, bytes or bytearray, not 'NoneType' 2019-08-02T14:40:12.361938100Z 2019-08-02T14:40:13:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:40:13] "GET / HTTP/1.1" 200 - Waiting for all LocalStack services to be ready Waiting for all LocalStack services to be ready 2019-08-02T14:40:28:WARNING:infra.py: Service "kinesis" not yet available, retrying... 2019-08-02T14:40:30:DEBUG:__main__: Currently updating stack resource api-local/FTEDynamoDbTable: None 2019-08-02T14:40:30:DEBUG:__main__: Resource FTEDynamoDbTable need not be deployed: {'Type': 'AWS::DynamoDB::Table', 'DeletionPolicy': 'Retain', 'Properties': {'TableName': 'fte-requests-local', 'AttributeDefinitions': [{'AttributeName': 'requesting_manager', 'AttributeType': 'S'}, {'AttributeName': 'fte_request_status', 'AttributeType': 'S'}], 'KeySchema': [{'AttributeName': 'requesting_manager', 'KeyType': 'HASH'}, {'AttributeName': 'fte_request_status', 'KeyType': 'RANGE'}], 'ProvisionedThroughput': {'ReadCapacityUnits': 1, 'WriteCapacityUnits': 1}, 'StreamSpecification': {'StreamViewType': 'NEW_AND_OLD_IMAGES'}}} 2019-08-02T14:40:30:DEBUG:__main__: Deploying CloudFormation resource: {'Type': 'AWS::DynamoDB::Table', 'DeletionPolicy': 'Retain', 'Properties': {'TableName': 'fte-requests-local', 'AttributeDefinitions': [{'AttributeName': 'requesting_manager', 'AttributeType': 'S'}, {'AttributeName': 'fte_request_status', 'AttributeType': 'S'}], 'KeySchema': [{'AttributeName': 'requesting_manager', 'KeyType': 'HASH'}, {'AttributeName': 'fte_request_status', 'KeyType': 'RANGE'}], 'ProvisionedThroughput': {'ReadCapacityUnits': 1, 'WriteCapacityUnits': 1}, 'StreamSpecification': {'StreamViewType': 'NEW_AND_OLD_IMAGES'}}} 2019-08-02T14:40:30:WARNING:localstack.utils.cloudformation.template_deployer: Unable to update resource type "DynamoDB::Table", id "FTEDynamoDbTable" 2019-08-02T14:40:30:DEBUG:__main__: Currently updating stack resource api-local/ApiGatewayMethodApiFterequestIdVarGet: None 127.0.0.1 - - [02/Aug/2019 14:40:30] "GET /restapis/36A-Z6898537/resources/898A-Z41A-Z921 HTTP/1.1" 200 - 127.0.0.1 - - [02/Aug/2019 14:40:30] "GET /restapis/36A-Z6898537/resources/898A-Z41A-Z921 HTTP/1.1" 200 - 2019-08-02T14:40:30:DEBUG:__main__: Deploying CloudFormation resource: {'Type': 'AWS::ApiGateway::Method', 'Properties': {'HttpMethod': 'GET', 'RequestParameters': {}, 'ResourceId': '898A-Z41A-Z921', 'RestApiId': '36A-Z6898537', 'ApiKeyRequired': False, 'AuthorizationType': 'NONE', 'Integration': {'IntegrationHttpMethod': 'POST', 'Type': 'AWS_PROXY', 'Uri': 'arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:000000000000:function:api-local-api/invocations'}, 'MethodResponses': []}} 127.0.0.1 - - [02/Aug/2019 14:40:30] "PUT /restapis/36A-Z6898537/resources/898A-Z41A-Z921/methods/GET/integration HTTP/1.1" 200 - 2019-08-02T14:40:30:DEBUG:__main__: Currently updating stack resource api-local/ApiGatewayMethodApiFterequestPost: None 127.0.0.1 - - [02/Aug/2019 14:40:30] "GET /restapis/36A-Z6898537/resources/49101A-Z3A-Z97 HTTP/1.1" 200 - 2019-08-02T14:40:30:DEBUG:__main__: Deploying CloudFormation resource: {'Type': 'AWS::ApiGateway::Method', 'Properties': {'HttpMethod': 'POST', 'RequestParameters': {}, 'ResourceId': '49101A-Z3A-Z97', 'RestApiId': '36A-Z6898537', 'ApiKeyRequired': False, 'AuthorizationType': 'NONE', 'Integration': {'IntegrationHttpMethod': 'POST', 'Type': 'AWS_PROXY', 'Uri': 'arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:000000000000:function:api-local-api/invocations'}, 'MethodResponses': []}} 2019-08-02T14:40:30:DEBUG:localstack.utils.cloudformation.template_deployer: Deploying resource type "ApiGateway::Method" id "ApiGatewayMethodApiFterequestPost" 2019-08-02T14:40:30:DEBUG:localstack.utils.cloudformation.template_deployer: Request for creating resource type "ApiGateway::Method": {'restApiId': '36A-Z6898537', 'resourceId': '49101A-Z3A-Z97', 'httpMethod': 'POST', 'authorizationType': 'NONE', 'requestParameters': {}} 127.0.0.1 - - [02/Aug/2019 14:40:30] "PUT /restapis/36A-Z6898537/resources/49101A-Z3A-Z97/methods/POST HTTP/1.1" 200 - 127.0.0.1 - - [02/Aug/2019 14:40:30] "PUT /restapis/36A-Z6898537/resources/49101A-Z3A-Z97/methods/POST/integration HTTP/1.1" 200 - 2019-08-02T14:40:30:WARNING:__main__: Unable to determine physical_resource_id for resource <class 'moto.apigateway.models.Method'> 2019-08-02T14:40:30:DEBUG:__main__: Currently updating stack resource api-local/ApiGatewayMethodApiFterequestIdVarPut: None 127.0.0.1 - - [02/Aug/2019 14:40:30] "GET /restapis/36A-Z6898537/resources/898A-Z41A-Z921 HTTP/1.1" 200 - 2019-08-02T14:40:30:DEBUG:__main__: Deploying CloudFormation resource: {'Type': 'AWS::ApiGateway::Method', 'Properties': {'HttpMethod': 'PUT', 'RequestParameters': {}, 'ResourceId': '898A-Z41A-Z921', 'RestApiId': '36A-Z6898537', 'ApiKeyRequired': False, 'AuthorizationType': 'NONE', 'Integration': {'IntegrationHttpMethod': 'POST', 'Type': 'AWS_PROXY', 'Uri': 'arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:000000000000:function:api-local-api/invocations'}, 'MethodResponses': []}} 2019-08-02T14:40:30:DEBUG:localstack.utils.cloudformation.template_deployer: Deploying resource type "ApiGateway::Method" id "ApiGatewayMethodApiFterequestIdVarPut" 2019-08-02T14:40:30:DEBUG:localstack.utils.cloudformation.template_deployer: Request for creating resource type "ApiGateway::Method": {'restApiId': '36A-Z6898537', 'resourceId': '898A-Z41A-Z921', 'httpMethod': 'PUT', 'authorizationType': 'NONE', 'requestParameters': {}} 127.0.0.1 - - [02/Aug/2019 14:40:30] "PUT /restapis/36A-Z6898537/resources/898A-Z41A-Z921/methods/PUT HTTP/1.1" 200 - 127.0.0.1 - - [02/Aug/2019 14:40:30] "PUT /restapis/36A-Z6898537/resources/898A-Z41A-Z921/methods/PUT/integration HTTP/1.1" 200 - 2019-08-02T14:40:30:WARNING:__main__: Unable to determine physical_resource_id for resource <class 'moto.apigateway.models.Method'> 2019-08-02T14:40:30:DEBUG:__main__: Currently updating stack resource api-local/ApiGatewayMethodApiFterequestOptions: None 127.0.0.1 - - [02/Aug/2019 14:40:30] "GET /restapis/36A-Z6898537/resources/49101A-Z3A-Z97 HTTP/1.1" 200 - 2019-08-02T14:40:30:DEBUG:__main__: Deploying CloudFormation resource: {'Type': 'AWS::ApiGateway::Method', 'Properties': {'AuthorizationType': 'NONE', 'HttpMethod': 'OPTIONS', 'MethodResponses': [{'StatusCode': '200', 'ResponseParameters': {'method.response.header.Access-Control-Allow-Origin': True, 'method.response.header.Access-Control-Allow-Headers': True, 'method.response.header.Access-Control-Allow-Methods': True, 'method.response.header.Access-Control-Allow-Credentials': True}, 'ResponseModels': {}}], 'RequestParameters': {}, 'Integration': {'Type': 'MOCK', 'RequestTemplates': {'application/json': '{statusCode:200}'}, 'ContentHandling': 'CONVERT_TO_TEXT', 'IntegrationResponses': [{'StatusCode': '200', 'ResponseParameters': {'method.response.header.Access-Control-Allow-Origin': "'*'", 'method.response.header.Access-Control-Allow-Headers': "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", 'method.response.header.Access-Control-Allow-Methods': "'OPTIONS,POST,GET'", 'method.response.header.Access-Control-Allow-Credentials': "'false'"}, 'ResponseTemplates': {'application/json': '#set($origin = $input.params("Origin"))\n#if($origin == "") #set($origin = $input.params("origin")) #end\n#if($origin.matches(".*")) #set($context.responseOverride.header.Access-Control-Allow-Origin = $origin) #end'}}]}, 'ResourceId': '49101A-Z3A-Z97', 'RestApiId': '36A-Z6898537'}} 2019-08-02T14:40:30:DEBUG:localstack.utils.cloudformation.template_deployer: Deploying resource type "ApiGateway::Method" id "ApiGatewayMethodApiFterequestOptions" 2019-08-02T14:40:30:DEBUG:localstack.utils.cloudformation.template_deployer: Request for creating resource type "ApiGateway::Method": {'restApiId': '36A-Z6898537', 'resourceId': '49101A-Z3A-Z97', 'httpMethod': 'OPTIONS', 'authorizationType': 'NONE', 'requestParameters': {}} 127.0.0.1 - - [02/Aug/2019 14:40:30] "PUT /restapis/36A-Z6898537/resources/49101A-Z3A-Z97/methods/OPTIONS HTTP/1.1" 200 - 2019-08-02T14:40:30:WARNING:__main__: Unable to determine physical_resource_id for resource <class 'moto.apigateway.models.Method'> 2019-08-02T14:40:30:DEBUG:__main__: Currently updating stack resource api-local/ApiGatewayRestApi: False 127.0.0.1 - - [02/Aug/2019 14:40:31] "GET /restapis HTTP/1.1" 200 - 127.0.0.1 - - [02/Aug/2019 14:40:31] "GET /restapis HTTP/1.1" 200 -  2019-08-02T14:40:31:DEBUG:__main__: Resource ApiGatewayRestApi need not be deployed: {'Type': 'AWS::ApiGateway::RestApi', 'Properties': {'Name': 'local-api', 'EndpointConfiguration': {'Types': ['EDGE']}, 'MinimumCompressionSize': 0}} 2019-08-02T14:40:31:DEBUG:__main__: Currently updating stack resource api-local/ProfileDynamoDBTable: None 2019-08-02T14:40:31:DEBUG:__main__: Resource ProfileDynamoDBTable need not be deployed: {'Type': 'AWS::DynamoDB::Table', 'DeletionPolicy': 'Retain', 'Properties': {'TableName': 'fte-profile-local', 'AttributeDefinitions': [{'AttributeName': 'n_number', 'AttributeType': 'S'}], 'KeySchema': [{'AttributeName': 'n_number', 'KeyType': 'HASH'}], 'ProvisionedThroughput': {'ReadCapacityUnits': 1, 'WriteCapacityUnits': 1}, 'StreamSpecification': {'StreamViewType': 'NEW_AND_OLD_IMAGES'}}} 2019-08-02T14:40:31:DEBUG:__main__: Deploying CloudFormation resource: {'Type': 'AWS::DynamoDB::Table', 'DeletionPolicy': 'Retain', 'Properties': {'TableName': 'fte-profile-local', 'AttributeDefinitions': [{'AttributeName': 'n_number', 'AttributeType': 'S'}], 'KeySchema': [{'AttributeName': 'n_number', 'KeyType': 'HASH'}], 'ProvisionedThroughput': {'ReadCapacityUnits': 1, 'WriteCapacityUnits': 1}, 'StreamSpecification': {'StreamViewType': 'NEW_AND_OLD_IMAGES'}}} 2019-08-02T14:40:31:WARNING:localstack.utils.cloudformation.template_deployer: Unable to update resource type "DynamoDB::Table", id "ProfileDynamoDBTable" 2019-08-02T14:40:31:DEBUG:__main__: Currently updating stack resource api-local/ApiLambdaVersionZvDmpYaBdl6Alg2bYQBWf7gXg4kQ2Gl1V0CGCmD8: None 2019-08-02T14:40:31:DEBUG:__main__: Resource ApiLambdaVersionZvDmpYaBdl6Alg2bYQBWf7gXg4kQ2Gl1V0CGCmD8 need not be deployed: {'Type': 'AWS::Lambda::Version', 'DeletionPolicy': 'Retain', 'Properties': {'FunctionName': 'arn:aws:lambda:us-east-1:000000000000:function:api-local-api', 'CodeSha256': 'IjSuk/aOSDJMdENtUWyHC27sacCJ3AEZbE5aSFQcDg4=', 'Description': 'API endpoint'}} 2019-08-02T14:40:31:DEBUG:__main__: Deploying CloudFormation resource: {'Type': 'AWS::Lambda::Version', 'DeletionPolicy': 'Retain', 'Properties': {'FunctionName': 'arn:aws:lambda:us-east-1:000000000000:function:api-local-api', 'CodeSha256': 'IjSuk/aOSDJMdENtUWyHC27sacCJ3AEZbE5aSFQcDg4=', 'Description': 'API endpoint'}} 2019-08-02T14:40:31:WARNING:localstack.utils.cloudformation.template_deployer: Unable to update resource type "Lambda::Version", id "ApiLambdaVersionZvDmpYaBdl6Alg2bYQBWf7gXg4kQ2Gl1V0CGCmD8" 2019-08-02T14:40:31:DEBUG:__main__: Currently updating stack resource api-local/ApiGatewayMethodApiFterequestIdVarOptions: None 127.0.0.1 - - [02/Aug/2019 14:40:31] "GET /restapis/36A-Z6898537/resources/898A-Z41A-Z921 HTTP/1.1" 200 - 2019-08-02T14:40:31:DEBUG:__main__: Deploying CloudFormation resource: {'Type': 'AWS::ApiGateway::Method', 'Properties': {'AuthorizationType': 'NONE', 'HttpMethod': 'OPTIONS', 'MethodResponses': [{'StatusCode': '200', 'ResponseParameters': {'method.response.header.Access-Control-Allow-Origin': True, 'method.response.header.Access-Control-Allow-Headers': True, 'method.response.header.Access-Control-Allow-Methods': True, 'method.response.header.Access-Control-Allow-Credentials': True}, 'ResponseModels': {}}], 'RequestParameters': {}, 'Integration': {'Type': 'MOCK', 'RequestTemplates': {'application/json': '{statusCode:200}'}, 'ContentHandling': 'CONVERT_TO_TEXT', 'IntegrationResponses': [{'StatusCode': '200', 'ResponseParameters': {'method.response.header.Access-Control-Allow-Origin': "'*'", 'method.response.header.Access-Control-Allow-Headers': "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", 'method.response.header.Access-Control-Allow-Methods': "'OPTIONS,PUT,GET'", 'method.response.header.Access-Control-Allow-Credentials': "'false'"}, 'ResponseTemplates': {'application/json': '#set($origin = $input.params("Origin"))\n#if($origin == "") #set($origin = $input.params("origin")) #end\n#if($origin.matches(".*")) #set($context.responseOverride.header.Access-Control-Allow-Origin = $origin) #end'}}]}, 'ResourceId': '898A-Z41A-Z921', 'RestApiId': '36A-Z6898537'}} 2019-08-02T14:40:31:DEBUG:localstack.utils.cloudformation.template_deployer: Deploying resource type "ApiGateway::Method" id "ApiGatewayMethodApiFterequestIdVarOptions" 2019-08-02T14:40:31:DEBUG:localstack.utils.cloudformation.template_deployer: Request for creating resource type "ApiGateway::Method": {'restApiId': '36A-Z6898537', 'resourceId': '898A-Z41A-Z921', 'httpMethod': 'OPTIONS', 'authorizationType': 'NONE', 'requestParameters': {}} 127.0.0.1 - - [02/Aug/2019 14:40:31] "PUT /restapis/36A-Z6898537/resources/898A-Z41A-Z921/methods/OPTIONS HTTP/1.1" 200 - 2019-08-02T14:40:31:WARNING:__main__: Unable to determine physical_resource_id for resource <class 'moto.apigateway.models.Method'> 2019-08-02T14:40:31:DEBUG:__main__: Currently updating stack resource api-local/ApiLogGroup: None 2019-08-02T14:40:31:DEBUG:__main__: Resource ApiLogGroup need not be deployed: {'Type': 'AWS::Logs::LogGroup', 'Properties': {'LogGroupName': '/aws/lambda/api-local-api'}} 2019-08-02T14:40:31:DEBUG:__main__: Deploying CloudFormation resource: {'Type': 'AWS::Logs::LogGroup', 'Properties': {'LogGroupName': '/aws/lambda/api-local-api'}} 2019-08-02T14:40:31:WARNING:localstack.utils.cloudformation.template_deployer: Unable to update resource type "Logs::LogGroup", id "ApiLogGroup" 2019-08-02T14:40:31:DEBUG:__main__: Currently updating stack resource api-local/IamRoleLambdaExecution: False 2019-08-02T14:40:31:DEBUG:__main__: Resource IamRoleLambdaExecution need not be deployed: {'Type': 'AWS::IAM::Role', 'Properties': {'AssumeRolePolicyDocument': {'Version': '2012-10-17', 'Statement': [{'Effect': 'Allow', 'Principal': {'Service': ['lambda.amazonaws.com']}, 'Action': ['sts:AssumeRole']}]}, 'Policies': [{'PolicyName': 'local-api-lambda', 'PolicyDocument': {'Version': '2012-10-17', 'Statement': [{'Effect': 'Allow', 'Action': ['logs:CreateLogStream'], 'Resource': ['arn:aws:logs:us-east-1:123456789012:log-group:/aws/lambda/api-local*:*']}, {'Effect': 'Allow', 'Action': ['logs:PutLogEvents'], 'Resource': ['arn:aws:logs:us-east-1:123456789012:log-group:/aws/lambda/api-local*:*:*']}, {'Effect': 'Allow', 'Action': ['dynamodb:DescribeTable', 'dynamodb:Query', 'dynamodb:Scan', 'dynamodb:GetItem', 'dynamodb:PutItem', 'dynamodb:UpdateItem', 'dynamodb:DeleteItem', 'dyanmodb:DescribeStream', 'dynamodb:ListStreams'], 'Resource': ['arn:aws:dynamodb:us-east-1:000000000000:table/fte-requests-local']}]}}], 'Path': '/', 'RoleName': 'api-local-us-east-1-lambdaRole'}} 2019-08-02T14:40:31:DEBUG:__main__: Currently updating stack resource api-local/ApiLambdaPermissionApiGateway: None 2019-08-02T14:40:31:WARNING:moto: No Moto CloudFormation support for AWS::Lambda::Permission 2019-08-02T14:40:31:DEBUG:__main__: Currently updating stack resource api-local/ApiGatewayResourceApiFterequest: False 127.0.0.1 - - [02/Aug/2019 14:40:31] "GET /restapis/36A-Z6898537/resources HTTP/1.1" 200 - 127.0.0.1 - - [02/Aug/2019 14:40:31] "GET /restapis/36A-Z6898537/resources HTTP/1.1" 200 -  2019-08-02T14:40:31:DEBUG:__main__: Resource ApiGatewayResourceApiFterequest need not be deployed: {'Type': 'AWS::ApiGateway::Resource', 'Properties': {'ParentId': '7713930001', 'PathPart': 'fterequest', 'RestApiId': '36A-Z6898537'}} 2019-08-02T14:40:31:DEBUG:__main__: Currently updating stack resource api-local/ApiGatewayMethodApiFterequestGet: None 127.0.0.1 - - [02/Aug/2019 14:40:31] "GET /restapis/36A-Z6898537/resources/49101A-Z3A-Z97 HTTP/1.1" 200 - 127.0.0.1 - - [02/Aug/2019 14:40:31] "GET /restapis/36A-Z6898537/resources/49101A-Z3A-Z97 HTTP/1.1" 200 - 2019-08-02T14:40:31:DEBUG:__main__: Deploying CloudFormation resource: {'Type': 'AWS::ApiGateway::Method', 'Properties': {'HttpMethod': 'GET', 'RequestParameters': {}, 'ResourceId': '49101A-Z3A-Z97', 'RestApiId': '36A-Z6898537', 'ApiKeyRequired': False, 'AuthorizationType': 'NONE', 'Integration': {'IntegrationHttpMethod': 'POST', 'Type': 'AWS_PROXY', 'Uri': 'arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:000000000000:function:api-local-api/invocations'}, 'MethodResponses': []}} 127.0.0.1 - - [02/Aug/2019 14:40:31] "PUT /restapis/36A-Z6898537/resources/49101A-Z3A-Z97/methods/GET/integration HTTP/1.1" 200 - 2019-08-02T14:40:31:WARNING:__main__: Unable to resolve "Ref" attribute for: {'Ref': 'ApiLambdaVersionZvDmpYaBdl6Alg2bYQBWf7gXg4kQ2Gl1V0CGCmD8'} - ApiLambdaVersionZvDmpYaBdl6Alg2bYQBWf7gXg4kQ2Gl1V0CGCmD8 - <class 'moto.awslambda.models.LambdaVersion'> 2019-08-02T14:40:31:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:40:31] "POST / HTTP/1.1" 200 - 2019-08-02T14:40:31:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:40:31] "GET / HTTP/1.1" 200 - Waiting for all LocalStack services to be ready 2019-08-02T14:40:32:INFO:localstack.services.awslambda.lambda_executors: Checking if there are idle containers. 2019-08-02T14:40:36:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:40:36] "POST / HTTP/1.1" 200 - 2019-08-02T14:40:36:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:40:36] "POST / HTTP/1.1" 200 - 2019-08-02T14:40:36:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:40:36] "POST / HTTP/1.1" 200 - 172.17.0.1 - - [02/Aug/2019 14:40:36] "POST / HTTP/1.1" 200 - 127.0.0.1 - - [02/Aug/2019 14:40:36] "GET /restapis?limit=500 HTTP/1.1" 200 - 127.0.0.1 - - [02/Aug/2019 14:40:36] "GET /restapis/36A-Z6898537/stages/local HTTP/1.1" 200 - 127.0.0.1 - - [02/Aug/2019 14:40:36] "PATCH /restapis/36A-Z6898537/stages/local HTTP/1.1" 200 - 172.17.0.1 - - [02/Aug/2019 14:40:36] "POST / HTTP/1.1" 400 - 2019-08-02T14:40:36:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:40:36] "GET /api-local-ServerlessDeploymentBucket-A-ZA-Z2A-Z54909A-Z03?list-type=2&prefix=serverless%2Fapi%2Flocal HTTP/1.1" 200 - 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: SHIFT_JIS Japanese prober hit error at byte 2204 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-JP Japanese prober hit error at byte 2173 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: GB2312 Chinese prober hit error at byte 2204 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-KR Korean prober hit error at byte 2173 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: CP949 Korean prober hit error at byte 2173 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: Big5 Chinese prober hit error at byte 2174 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-TW Taiwan prober hit error at byte 2173 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: utf-8 confidence = 0.7525 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: SHIFT_JIS not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-JP not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: GB2312 not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-KR not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: CP949 not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: Big5 not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-TW not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1251 Russian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: KOI8-R Russian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: ISO-8859-5 Russian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: MacCyrillic Russian confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: IBM866 Russian confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: IBM855 Russian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: ISO-8859-7 Greek confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1253 Greek confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: ISO-8859-5 Bulgairan confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1251 Bulgarian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: TIS-620 Thai confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: ISO-8859-9 Turkish confidence = 0.5080945812305624 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1255 Hebrew confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1255 Hebrew confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1255 Hebrew confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: utf-8 confidence = 0.7525 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: SHIFT_JIS not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-JP not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: GB2312 not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-KR not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: CP949 not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: Big5 not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-TW not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-JP Japanese prober hit error at byte 2061 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-KR Korean prober hit error at byte 2061 Waiting for all LocalStack services to be ready 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-TW Taiwan prober hit error at byte 2061 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: utf-8 confidence = 0.7525 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: SHIFT_JIS Japanese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-JP not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: GB2312 Chinese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-KR not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: CP949 Korean confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: Big5 Chinese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-TW not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1251 Russian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: KOI8-R Russian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: ISO-8859-5 Russian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: MacCyrillic Russian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: IBM866 Russian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: IBM855 Russian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: ISO-8859-7 Greek confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1253 Greek confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: ISO-8859-5 Bulgairan confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1251 Bulgarian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: TIS-620 Thai confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: ISO-8859-9 Turkish confidence = 0.4954438380652338 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1255 Hebrew confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1255 Hebrew confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1255 Hebrew confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: utf-8 confidence = 0.7525 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: SHIFT_JIS Japanese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-JP not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: GB2312 Chinese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-KR not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: CP949 Korean confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: Big5 Chinese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-TW not active 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: utf-8 confidence = 0.99 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: SHIFT_JIS Japanese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-JP Japanese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: GB2312 Chinese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-KR Korean confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: CP949 Korean confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: Big5 Chinese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-TW Taiwan confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1251 Russian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: KOI8-R Russian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: ISO-8859-5 Russian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: MacCyrillic Russian confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: IBM866 Russian confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: IBM855 Russian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: ISO-8859-7 Greek confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1253 Greek confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: ISO-8859-5 Bulgairan confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1251 Bulgarian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: TIS-620 Thai confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: ISO-8859-9 Turkish confidence = 0.5190247903194246 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1255 Hebrew confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1255 Hebrew confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1255 Hebrew confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: utf-8 confidence = 0.99 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: SHIFT_JIS Japanese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-JP Japanese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: GB2312 Chinese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-KR Korean confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: CP949 Korean confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: Big5 Chinese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-TW Taiwan confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: utf-8 confidence = 0.99 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: SHIFT_JIS Japanese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-JP Japanese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: GB2312 Chinese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-KR Korean confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: CP949 Korean confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: Big5 Chinese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-TW Taiwan confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1251 Russian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: KOI8-R Russian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: ISO-8859-5 Russian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: MacCyrillic Russian confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: IBM866 Russian confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: IBM855 Russian confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: ISO-8859-7 Greek confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1253 Greek confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: ISO-8859-5 Bulgairan confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1251 Bulgarian confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: TIS-620 Thai confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: ISO-8859-9 Turkish confidence = 0.5680110172064825 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1255 Hebrew confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1255 Hebrew confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: windows-1255 Hebrew confidence = 0.0 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: utf-8 confidence = 0.99 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: SHIFT_JIS Japanese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-JP Japanese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: GB2312 Chinese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-KR Korean confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: CP949 Korean confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: Big5 Chinese confidence = 0.01 2019-08-02T14:40:39:DEBUG:chardet.charsetprober: EUC-TW Taiwan confidence = 0.01 2019-08-02T14:40:39:WARNING:localstack.services.dynamodb.dynamodb_listener: Unknown table: fte-requests-local not found in {} 2019-08-02T14:40:39:WARNING:localstack.services.dynamodb.dynamodb_listener: Unknown table: fte-requests-local not found in {} 2019-08-02T14:40:39:WARNING:localstack.services.dynamodb.dynamodb_listener: Unknown table: fte-requests-local not found in {} 2019-08-02T14:40:39:WARNING:localstack.services.dynamodb.dynamodb_listener: Unknown table: fte-requests-local not found in {} 2019-08-02T14:40:39:WARNING:localstack.services.dynamodb.dynamodb_listener: Unknown table: fte-requests-local not found in {} 2019-08-02T14:40:40:WARNING:localstack.services.dynamodb.dynamodb_listener: Unknown table: fte-profile-local not found in {} 2019-08-02T14:40:40:WARNING:localstack.services.dynamodb.dynamodb_listener: Unknown table: fte-profile-local not found in {} 2019-08-02T14:40:40:WARNING:localstack.services.dynamodb.dynamodb_listener: Unknown table: fte-profile-local not found in {} 2019-08-02T14:40:40:WARNING:localstack.services.dynamodb.dynamodb_listener: Unknown table: fte-profile-local not found in {} 2019-08-02T14:40:40:WARNING:localstack.services.dynamodb.dynamodb_listener: Unknown table: fte-profile-local not found in {} 2019-08-02T14:40:40:WARNING:localstack.services.dynamodb.dynamodb_listener: Unknown table: fte-profile-local not found in {} 2019-08-02T14:40:44:WARNING:infra.py: Service "kinesis" not yet available, retrying... Waiting for all LocalStack services to be ready 2019-08-02T14:40:47:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:40:47] "GET / HTTP/1.1" 200 - Waiting for all LocalStack services to be ready 2019-08-02T14:40:58:WARNING:infra.py: Service "kinesis" not yet available, retrying... Waiting for all LocalStack services to be ready 2019-08-02T14:41:01:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:41:01] "GET / HTTP/1.1" 200 - Waiting for all LocalStack services to be ready 2019-08-02T14:41:12:WARNING:infra.py: Service "kinesis" not yet available, retrying... Waiting for all LocalStack services to be ready 2019-08-02T14:41:15:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:41:15] "GET / HTTP/1.1" 200 - Waiting for all LocalStack services to be ready 2019-08-02T14:41:25:WARNING:infra.py: Service "kinesis" not yet available, retrying... Waiting for all LocalStack services to be ready 2019-08-02T14:41:28:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:41:28] "GET / HTTP/1.1" 200 - 2019-08-02T14:41:32:INFO:localstack.services.awslambda.lambda_executors: Checking if there are idle containers. Waiting for all LocalStack services to be ready 2019-08-02T14:41:39:WARNING:infra.py: Service "kinesis" not yet available, retrying... Waiting for all LocalStack services to be ready 2019-08-02T14:41:42:INFO:werkzeug: 127.0.0.1 - - [02/Aug/2019 14:41:42] "GET / HTTP/1.1" 200 - Waiting for all LocalStack services to be ready 2019-08-02T14:41:53:WARNING:infra.py: Service "kinesis" not yet available, retrying... ``` If I run `localstack --debug start`: ```Starting local dev environment. CTRL-C to quit. Starting mock ES service (http port 4578)... Starting local Elasticsearch (http port 4571)... Starting mock S3 (http port 4572)... Starting mock SNS (http port 4575)... Starting mock SQS (http port 4576)... Starting mock SES (http port 4579)... Starting mock SSM (http port 4583)... Starting mock STS (http port 4592)... Starting mock IAM (http port 4593)... Starting mock Secrets Manager (http port 4584)... Starting mock API Gateway (http port 4567)... warning: Falling back to java on path. This behavior is deprecated. Specify JAVA_HOME Starting mock DynamoDB (http port 4569)... Starting mock DynamoDB Streams service (http port 4570)... Starting mock Firehose service (http port 4573)... Starting mock Lambda service (http port 4574)... Starting mock Kinesis (http port 4568)... Starting mock Redshift (http port 4577)... Starting mock Route53 (http port 4580)... Starting mock CloudFormation (http port 4581)... Starting mock CloudWatch (http port 4582)... Starting mock CloudWatch Logs (http port 4586)... Starting mock StepFunctions (http port 4585)... Starting mock EC2 (http port 4597)... File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site.py", line 177 file=sys.stderr) ^ SyntaxError: invalid syntax Initializing DynamoDB Local with the following configuration: Port: 4564 InMemory: true DbPath: null SharedDb: true shouldDelayTransientStatuses: false CorsParams: * Listening at http://:::4565 File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site.py", line 177 file=sys.stderr) ^ SyntaxError: invalid syntax Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. Step Functions Local Version: 1.2.1 Build: 2019-07-18 2019-08-02 13:40:31.859: Configure [Account] to [000000000000] 2019-08-02 13:40:31.860: Configure [Region] to [us-east-1] 2019-08-02 13:40:31.860: Configure [Lambda Endpoint] to [http://localhost:4574] 2019-08-02 13:40:31.861: Configure [DynamoDB Endpoint] to [http://localhost:4569] 2019-08-02 13:40:31.861: Configure [SQS Endpoint] to [http://localhost:4576] 2019-08-02 13:40:31.861: Configure [SNS Endpoint] to [http://localhost:4575] 2019-08-02 13:40:31.872: Loaded credentials from environment 2019-08-02 13:40:31.873: Starting server on port 8083 with account 000000000000, region us-east-1 13:40:32.471 [main] INFO org.elasticmq.server.Main$ - Starting ElasticMQ server (0.14.2) ... Aug 02, 2019 1:40:33 PM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry WARNING: SSL Certificate checking for endpoints has been explicitly disabled. Aug 02, 2019 1:40:33 PM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry WARNING: SSL Certificate checking for endpoints has been explicitly disabled. Aug 02, 2019 1:40:33 PM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry WARNING: SSL Certificate checking for endpoints has been explicitly disabled. Aug 02, 2019 1:40:33 PM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry WARNING: SSL Certificate checking for endpoints has been explicitly disabled. Aug 02, 2019 1:40:33 PM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry WARNING: SSL Certificate checking for endpoints has been explicitly disabled. Aug 02, 2019 1:40:33 PM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry WARNING: SSL Certificate checking for endpoints has been explicitly disabled. Aug 02, 2019 1:40:33 PM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry WARNING: SSL Certificate checking for endpoints has been explicitly disabled. Aug 02, 2019 1:40:33 PM com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory createSocketFactoryRegistry WARNING: SSL Certificate checking for endpoints has been explicitly disabled. WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.eclipse.jetty.util.BufferUtil (file:/usr/local/lib/python3.7/site-packages/localstack/infra/stepfunctions/jetty-util-9.3.x.jar) to field java.nio.MappedByteBuffer.fd WARNING: Please consider reporting this to the maintainers of org.eclipse.jetty.util.BufferUtil WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 13:40:34.312 [elasticmq-akka.actor.default-dispatcher-3] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started [2019-08-02T13:40:35,085][INFO ][o.e.e.NodeEnvironment ] [hGhpEd2] using [1] data paths, mounts [[/ (/dev/disk1s1)]], net usable_space [818.8gb], net total_space [931.5gb], types [apfs] [2019-08-02T13:40:35,091][INFO ][o.e.e.NodeEnvironment ] [hGhpEd2] heap size [580mb], compressed ordinary object pointers [true] [2019-08-02T13:40:35,094][INFO ][o.e.n.Node ] [hGhpEd2] node name derived from node ID [hGhpEd2KQtyZxiuxfxRLbA]; set [node.name] to override [2019-08-02T13:40:35,095][INFO ][o.e.n.Node ] [hGhpEd2] version[6.7.0], pid[6823], build[default/zip/8453f77/2019-03-21T15:32:29.844721Z], OS[Mac OS X/10.14.5/x86_64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/11.0.1/11.0.1+13-LTS] [2019-08-02T13:40:35,095][INFO ][o.e.n.Node ] [hGhpEd2] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/usr/local/lib/python3.7/site-packages/localstack/infra/elasticsearch/tmp, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Djava.locale.providers=COMPAT, -XX:UseAVX=2, -Xms200m, -Xmx600m, -Des.path.home=/usr/local/lib/python3.7/site-packages/localstack/infra/elasticsearch, -Des.path.conf=/usr/local/lib/python3.7/site-packages/localstack/infra/elasticsearch/config, -Des.distribution.flavor=default, -Des.distribution.type=zip] * Running on http://0.0.0.0:4592/ (Press CTRL+C to quit) * Running on http://0.0.0.0:4562/ (Press CTRL+C to quit) * Running on http://0.0.0.0:4579/ (Press CTRL+C to quit) * Running on http://0.0.0.0:4557/ (Press CTRL+C to quit) * Running on http://0.0.0.0:4583/ (Press CTRL+C to quit) * Running on http://0.0.0.0:4566/ (Press CTRL+C to quit) * Running on http://0.0.0.0:4584/ (Press CTRL+C to quit) * Running on http://0.0.0.0:4577/ (Press CTRL+C to quit) 13:40:35.942 [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 13:40:35.943 [main] INFO org.elasticmq.server.Main$ - === ElasticMQ server (0.14.2) started in 5074 ms === * Running on http://0.0.0.0:4580/ (Press CTRL+C to quit) * Running on http://0.0.0.0:4582/ (Press CTRL+C to quit) * Running on http://0.0.0.0:4586/ (Press CTRL+C to quit) * Running on http://0.0.0.0:4597/ (Press CTRL+C to quit) [2019-08-02T13:40:36,804][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [aggs-matrix-stats] [2019-08-02T13:40:36,804][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [analysis-common] [2019-08-02T13:40:36,804][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [ingest-common] [2019-08-02T13:40:36,804][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [ingest-geoip] [2019-08-02T13:40:36,804][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [ingest-user-agent] [2019-08-02T13:40:36,804][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [lang-expression] [2019-08-02T13:40:36,804][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [lang-mustache] [2019-08-02T13:40:36,805][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [lang-painless] [2019-08-02T13:40:36,805][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [mapper-extras] [2019-08-02T13:40:36,805][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [parent-join] [2019-08-02T13:40:36,805][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [percolator] [2019-08-02T13:40:36,805][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [rank-eval] [2019-08-02T13:40:36,805][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [reindex] [2019-08-02T13:40:36,805][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [repository-url] [2019-08-02T13:40:36,805][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [transport-netty4] [2019-08-02T13:40:36,805][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [tribe] [2019-08-02T13:40:36,805][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [x-pack-ccr] [2019-08-02T13:40:36,805][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [x-pack-core] [2019-08-02T13:40:36,805][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [x-pack-deprecation] [2019-08-02T13:40:36,806][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [x-pack-graph] [2019-08-02T13:40:36,806][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [x-pack-ilm] [2019-08-02T13:40:36,806][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [x-pack-logstash] [2019-08-02T13:40:36,806][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [x-pack-ml] [2019-08-02T13:40:36,806][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [x-pack-monitoring] [2019-08-02T13:40:36,806][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [x-pack-rollup] [2019-08-02T13:40:36,806][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [x-pack-security] [2019-08-02T13:40:36,806][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [x-pack-sql] [2019-08-02T13:40:36,806][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [x-pack-upgrade] [2019-08-02T13:40:36,806][INFO ][o.e.p.PluginsService ] [hGhpEd2] loaded module [x-pack-watcher] [2019-08-02T13:40:36,807][INFO ][o.e.p.PluginsService ] [hGhpEd2] no plugins loaded [2019-08-02T13:40:39,031][INFO ][o.e.x.s.a.s.FileRolesStore] [hGhpEd2] parsed [0] roles from file [/usr/local/lib/python3.7/site-packages/localstack/infra/elasticsearch/config/roles.yml] [2019-08-02T13:40:39,407][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [hGhpEd2] [controller/6892] [Main.cc@109] controller (64 bit): Version 6.7.0 (Build d74ae2ac01b10d) Copyright (c) 2019 Elasticsearch BV [2019-08-02T13:40:39,711][DEBUG][o.e.a.ActionModule ] [hGhpEd2] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security [2019-08-02T13:40:39,873][INFO ][o.e.d.DiscoveryModule ] [hGhpEd2] using discovery type [zen] and host providers [settings] [2019-08-02T13:40:40,388][INFO ][o.e.n.Node ] [hGhpEd2] initialized [2019-08-02T13:40:40,388][INFO ][o.e.n.Node ] [hGhpEd2] starting ... [2019-08-02T13:40:40,529][INFO ][o.e.t.TransportService ] [hGhpEd2] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300} [2019-08-02T13:40:40,542][WARN ][o.e.b.BootstrapChecks ] [hGhpEd2] initial heap size [209715200] not equal to maximum heap size [629145600]; this can cause resize pauses and prevents mlockall from locking the entire heap [2019-08-02T13:40:43,583][INFO ][o.e.c.s.MasterService ] [hGhpEd2] zen-disco-elected-as-master ([0] nodes joined), reason: new_master {hGhpEd2}{hGhpEd2KQtyZxiuxfxRLbA}{VSLKVzH-QyCw_he1fWbcdw}{127.0.0.1}{127.0.0.1:9300}{ml.machine_memory=34359738368, xpack.installed=true, ml.max_open_jobs=20, ml.enabled=true} [2019-08-02T13:40:43,587][INFO ][o.e.c.s.ClusterApplierService] [hGhpEd2] new_master {hGhpEd2}{hGhpEd2KQtyZxiuxfxRLbA}{VSLKVzH-QyCw_he1fWbcdw}{127.0.0.1}{127.0.0.1:9300}{ml.machine_memory=34359738368, xpack.installed=true, ml.max_open_jobs=20, ml.enabled=true}, reason: apply cluster state (from master [master {hGhpEd2}{hGhpEd2KQtyZxiuxfxRLbA}{VSLKVzH-QyCw_he1fWbcdw}{127.0.0.1}{127.0.0.1:9300}{ml.machine_memory=34359738368, xpack.installed=true, ml.max_open_jobs=20, ml.enabled=true} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)]]) [2019-08-02T13:40:43,620][INFO ][o.e.h.n.Netty4HttpServerTransport] [hGhpEd2] publish_address {127.0.0.1:4560}, bound_addresses {[::1]:4560}, {127.0.0.1:4560} [2019-08-02T13:40:43,621][INFO ][o.e.n.Node ] [hGhpEd2] started [2019-08-02T13:40:43,645][WARN ][o.e.x.s.a.s.m.NativeRoleMappingStore] [hGhpEd2] Failed to clear cache for realms [[]] [2019-08-02T13:40:43,677][INFO ][o.e.g.GatewayService ] [hGhpEd2] recovered [0] indices into cluster_state [2019-08-02T13:40:43,775][INFO ][o.e.c.m.MetaDataIndexTemplateService] [hGhpEd2] adding template [.triggered_watches] for index patterns [.triggered_watches*] [2019-08-02T13:40:43,804][INFO ][o.e.c.m.MetaDataIndexTemplateService] [hGhpEd2] adding template [.watches] for index patterns [.watches*] [2019-08-02T13:40:43,846][INFO ][o.e.c.m.MetaDataIndexTemplateService] [hGhpEd2] adding template [.watch-history-9] for index patterns [.watcher-history-9*] [2019-08-02T13:40:43,884][INFO ][o.e.c.m.MetaDataIndexTemplateService] [hGhpEd2] adding template [.monitoring-logstash] for index patterns [.monitoring-logstash-6-*] [2019-08-02T13:40:43,924][INFO ][o.e.c.m.MetaDataIndexTemplateService] [hGhpEd2] adding template [.monitoring-es] for index patterns [.monitoring-es-6-*] [2019-08-02T13:40:43,953][INFO ][o.e.c.m.MetaDataIndexTemplateService] [hGhpEd2] adding template [.monitoring-alerts] for index patterns [.monitoring-alerts-6] [2019-08-02T13:40:43,987][INFO ][o.e.c.m.MetaDataIndexTemplateService] [hGhpEd2] adding template [.monitoring-beats] for index patterns [.monitoring-beats-6-*] [2019-08-02T13:40:44,017][INFO ][o.e.c.m.MetaDataIndexTemplateService] [hGhpEd2] adding template [.monitoring-kibana] for index patterns [.monitoring-kibana-6-*] [2019-08-02T13:40:44,099][INFO ][o.e.l.LicenseService ] [hGhpEd2] license [1a133b8c-e9cd-4449-b971-5b5de4c01098] mode [basic] - valid 2019-08-02T13:40:50:WARNING:infra.py: Service "s3" not yet available, retrying... 2019-08-02T13:40:58:WARNING:infra.py: Service "s3" not yet available, retrying... 2019-08-02T13:41:07:WARNING:infra.py: Service "s3" not yet available, retrying... 2019-08-02T13:41:16:WARNING:infra.py: Service "s3" not yet available, retrying... 2019-08-02T13:41:24:WARNING:infra.py: Service "s3" not yet available, retrying... 2019-08-02T13:41:33:WARNING:infra.py: Service "s3" not yet available, retrying... 2019-08-02T13:41:41:WARNING:infra.py: Service "s3" not yet available, retrying... 2019-08-02T13:41:50:WARNING:infra.py: Service "s3" not yet available, retrying... 2019-08-02T13:41:58:WARNING:infra.py: Service "s3" not yet available, retrying... 2019-08-02T13:42:07:WARNING:infra.py: Service "s3" not yet available, retrying... 2019-08-02T13:42:15:ERROR:localstack.services.s3.s3_starter: S3 health check failed: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 23, in check_s3 wait_for_port_open(DEFAULT_PORT_S3_BACKEND) File "/usr/local/lib/python3.7/site-packages/localstack/utils/common.py", line 366, in wait_for_port_open return retry(check, sleep=sleep_time, retries=retries) File "/usr/local/lib/python3.7/site-packages/localstack/utils/common.py", line 399, in retry raise raise_error File "/usr/local/lib/python3.7/site-packages/localstack/utils/common.py", line 395, in retry return function(**kwargs) File "/usr/local/lib/python3.7/site-packages/localstack/utils/common.py", line 364, in check raise Exception() Exception 2019-08-02T13:42:15:WARNING:infra.py: Service "s3" not yet available, retrying... 2019-08-02T13:42:15:ERROR:infra.py: Error checking state of local environment (after some retries): Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable Error starting infrastructure: 'NoneType' object is not subscriptable Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 616, in start_infra check_infra(apis=apis) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 425, in check_infra check_infra(retries - 1, expect_shutdown=expect_shutdown, apis=apis, additional_checks=additional_checks) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 425, in check_infra check_infra(retries - 1, expect_shutdown=expect_shutdown, apis=apis, additional_checks=additional_checks) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 425, in check_infra check_infra(retries - 1, expect_shutdown=expect_shutdown, apis=apis, additional_checks=additional_checks) [Previous line repeated 7 more times] File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 423, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/bin/localstack", line 83, in <module> subcommand['function'](argv, args) File "/usr/local/lib/python3.7/site-packages/localstack/utils/cli.py", line 29, in cmd_infra infra.start_infra() File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 633, in start_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 616, in start_infra check_infra(apis=apis) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 425, in check_infra check_infra(retries - 1, expect_shutdown=expect_shutdown, apis=apis, additional_checks=additional_checks) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 425, in check_infra check_infra(retries - 1, expect_shutdown=expect_shutdown, apis=apis, additional_checks=additional_checks) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 425, in check_infra check_infra(retries - 1, expect_shutdown=expect_shutdown, apis=apis, additional_checks=additional_checks) [Previous line repeated 7 more times] File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 423, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 416, in check_infra raise e File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 413, in check_infra plugin.check(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/infra.py", line 93, in check return self.check_function(expect_shutdown=expect_shutdown, print_error=print_error) File "/usr/local/lib/python3.7/site-packages/localstack/services/s3/s3_starter.py", line 32, in check_s3 assert isinstance(out['Buckets'], list) TypeError: 'NoneType' object is not subscriptable ERROR: 'NoneType' object is not subscriptable ``` I'm not really sure how to proceed here, because the debug logging isn't providing much consistent guidance on the issue. Any ideas? I'm using iam, lambda, dynamodb:8000, dynamodbstreams, apigateway, s3, sns, stepfunctions, ses, cloudformation, sts, cloudwatch, cloudwatchlogs.
https://github.com/localstack/localstack/issues/1457
https://github.com/localstack/localstack/pull/1567
c615a0f721b9917d6c73e9ba3b0498f9e705e5b0
6a2a26fbc5043f30e76b92456643339f6abf034d
"2019-08-02T17:44:02Z"
python
"2019-09-18T15:07:27Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,456
["localstack/ext/java/src/main/java/cloud/localstack/docker/DockerExe.java", "localstack/ext/java/src/main/java/cloud/localstack/docker/command/PullCommand.java", "localstack/ext/java/src/main/java/cloud/localstack/docker/command/RunCommand.java"]
Docker exec wait time too short for travis
I am using the docker test runner on travis ci. It was failing without a clear reason, but I think the problem is that `docker run` takes too long because it has to pull the docker image. Please consider increasing the `DEFAULT_WAIT_TIME_MINUTES` in `cloud.localstack.docker.DockerExe`. I fixed it by setting `pullNewImage = true` in LocalstackDockerConfiguration
https://github.com/localstack/localstack/issues/1456
https://github.com/localstack/localstack/pull/1901
7f42b965a5f7badf00cecaaf87b7fb65b70bf721
925841508d69f316192d561bedfb4267e79ffe2d
"2019-08-02T15:16:45Z"
python
"2019-12-24T14:02:39Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,435
["localstack/services/cloudformation/cloudformation_starter.py", "localstack/services/cloudformation/service_models.py", "localstack/utils/aws/aws_stack.py", "localstack/utils/cloudformation/template_deployer.py"]
Unable to create step function's state machine with cloudformation
I'm unable to create a step function's state machine through cloudformation. I'm using v0.9.6. A sample template is: ```yaml --- AWSTemplateFormatVersion: '2010-09-09' Description: Failing workflow template Resources: TestActivity: Type: AWS::StepFunctions::Activity Properties: Name: "test-activity" FulfillmentWorkflow: Type: AWS::StepFunctions::StateMachine Properties: StateMachineName: TestWorkflow DefinitionString: Fn::Sub: - |- { "StartAt": "Say hi!", "States": { "Say hi!": { "Type": "Task", "Resource": "${ActivityArn}", "End": true } } } - ActivityArn: Ref: TestActivity RoleArn: Ref: TestRole DependsOn: TestActivity TestRole: Type: AWS::IAM::Role Properties: Path: "/" AssumeRolePolicyDocument: Version: '2012-10-17' Statement: - Effect: Allow Principal: Service: - states.us-east-1.amazonaws.com Action: - sts:AssumeRole RoleName: "test-role" ``` The command that fails is: ```bash $ awslocal cloudformation create-stack --stack-name workflow-test --template-body file://failing-template.yaml --capabilities CAPABILITY_NAMED_IAM Unable to parse response (syntax error: line 1, column 54), invalid XML received: b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' ``` I'm running localstack in docker with all services enabled. In the logs I see this error: ``` localstack_1 | botocore.exceptions.ParamValidationError: Parameter validation failed: localstack_1 | Invalid type for parameter definition, value: {'Fn::Sub': ['{\n "StartAt": "Say hi!",\n "States": {\n "Say hi!": {\n "Type": "Task",\n "Resource": "${ActivityArn}",\n "End": true\n }\n }\n}', {}]}, type: <class 'dict'>, valid types: <class 'str'> localstack_1 | 2019-07-22T09:39:22:DEBUG:localstack.services.cloudformation.cloudformation_listener: Error response from CloudFormation (500) POST /: b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n' ``` which I guess means that the definition is not being identified as a string expression. Creating a stack with the same template works against aws. <!-- Love localstack? Please consider supporting our collective: 👉 https://opencollective.com/localstack/donate -->
https://github.com/localstack/localstack/issues/1435
https://github.com/localstack/localstack/pull/1501
f422a97ff202e0ae99b699101fef837a7205acde
b16760d73af06c3d2e6706aaf43ee0039a4fd631
"2019-07-22T09:40:33Z"
python
"2019-08-25T18:35:40Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,417
["tests/integration/test_s3.py"]
S3 upload fails for some specific content of large size
when I try to upload a large file, localstack basically freezes (and eventually times out). But if the file is all `1` bytes it succeeds. succeeds: ```bash aws s3 --endpoint-url=http://localhost:4572 mb s3://testbucket python -c "print '\x01'*10000000" > testfile echo $(ls -ahl | grep testfile) aws s3 --endpoint-url=http://localhost:4572 cp testfile s3://testbucket/testfile ``` fails: ```bash aws s3 --endpoint-url=http://localhost:4572 mb s3://testbucket python -c "print 'a'*10000000" > testfile echo $(ls -ahl | grep testfile) aws s3 --endpoint-url=http://localhost:4572 cp testfile s3://testbucket/testfile ``` so, for me, both the file content and its size determine if this triggers or not. I'm using the latest version `0.9.5`
https://github.com/localstack/localstack/issues/1417
https://github.com/localstack/localstack/pull/2226
b7c64ee163138e10a40cd43cb43fe09607c92e47
38923ae321c2f85e59cf6167b95e370dcb49f845
"2019-07-11T01:03:50Z"
python
"2020-04-01T06:11:37Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,416
["localstack/services/cloudformation/cloudformation_starter.py", "localstack/utils/cloudformation/template_deployer.py"]
Unable to create SQS redrive policy using CloudFormation
Hi, I'm using the latest localstack docker image which is currently `0.9.5`. The following error occurs when trying to use CloudFormation to create Dead Letter Queue and Queue in same template. `An error occurred (AWS.SimpleQueueService.NonExistentQueue) when calling the CreateStack operation: Could not find DLQ for arn:aws:sqs:elasticmq:000000000000:test-dlq` Example template ```yaml AWSTemplateFormatVersion: 2010-09-09 Resources: DeadLetterQueue: Type: AWS::SQS::Queue Properties: QueueName: 'test-dlq' DelaySeconds: 0 MaximumMessageSize: 262144 # 256KB MessageRetentionPeriod: 1209600 # 14 Days VisibilityTimeout: 120 # 2 minutes Queue: Type: AWS::SQS::Queue DependsOn: DeadLetterQueue Properties: QueueName: 'test-queue' DelaySeconds: 0 MaximumMessageSize: 262144 # 256KB MessageRetentionPeriod: 345600 # 4 Days RedrivePolicy: deadLetterTargetArn: Fn::GetAtt: - DeadLetterQueue - Arn maxReceiveCount: 1 VisibilityTimeout: 120 # 2 minutes ``` Note, I even tried to use the `DependsOn` property to force it to create the DLQ first but to no avail. Command used with `awslocal`... ```shell awslocal cloudformation create-stack --stack-name test1 --template-body file://./queues.template.dlq.yml ``` Using the same template in AWS CloudFormation works as expected. *Debug log output* ``` localstack_1 | 2019-07-10T10:35:16:DEBUG:__main__: Currently updating stack resource test1/DeadLetterQueue: None localstack_1 | 2019-07-10T10:35:16:DEBUG:__main__: Deploying CloudFormation resource: {'Type': 'AWS::SQS::Queue', 'Properties': {'QueueName': 'test-dlq', 'DelaySeconds': 0, 'MaximumMessageSize': 262144, 'MessageRetentionPeriod': 1209600, 'VisibilityTimeout': 120}} localstack_1 | 2019-07-10T10:35:16:DEBUG:localstack.utils.cloudformation.template_deployer: Deploying resource type "SQS::Queue" id "DeadLetterQueue" localstack_1 | 2019-07-10T10:35:16:DEBUG:localstack.utils.cloudformation.template_deployer: Request for creating resource type "SQS::Queue": {'QueueName': 'test-dlq'} localstack_1 | 10:35:16.440 [elasticmq-akka.actor.default-dispatcher-3] INFO o.elasticmq.actor.QueueManagerActor - Creating queue QueueData(test-dlq,MillisVisibilityTimeout(30000),PT0S,PT0S,2019-07-10T10:35:16.408Z,2019-07-10T10:35:16.408Z,None,false,false,None,None,Map()) localstack_1 | 2019-07-10T10:35:16:DEBUG:__main__: Currently updating stack resource test1/Queue: None localstack_1 | 2019-07-10T10:35:16:ERROR:__main__: Unable to parse and create resource "Queue": 400 Bad Request: <?xml version="1.0" encoding="UTF-8"?> localstack_1 | <Response> localstack_1 | <Errors> localstack_1 | <Error> localstack_1 | <Code>AWS.SimpleQueueService.NonExistentQueue</Code> localstack_1 | <Message>Could not find DLQ for arn:aws:sqs:elasticmq:000000000000:test-dlq</Message> localstack_1 | localstack_1 | </Error> localstack_1 | </Errors> localstack_1 | <RequestID>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</RequestID> localstack_1 | </Response> localstack_1 | 2019-07-10T10:35:16:INFO:werkzeug: 127.0.0.1 - - [10/Jul/2019 10:35:16] "POST / HTTP/1.1" 400 - localstack_1 | 2019-07-10T10:35:16:DEBUG:localstack.services.cloudformation.cloudformation_listener: Error response from CloudFormation (400) POST /: b'<?xml version="1.0" encoding="UTF-8"?>\n <Response>\n <Errors>\n <Error>\n <Code>AWS.SimpleQueueService.NonExistentQueue</Code>\n <Message>Could not find DLQ for arn:aws:sqs:elasticmq:000000000000:test-dlq</Message>\n \n </Error>\n </Errors>\n <RequestID>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</RequestID>\n</Response>' ``` Can you help? Thanks.
https://github.com/localstack/localstack/issues/1416
https://github.com/localstack/localstack/pull/1542
5320867c55d4e48a9474168b6c660023f46d6a6a
1a697d711bae27ebbad4d18acb19b3b40a1e9c8b
"2019-07-10T10:37:29Z"
python
"2019-09-05T07:37:48Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,408
["localstack/services/cloudformation/cloudformation_starter.py", "tests/integration/templates/template2.yaml", "tests/integration/test_cloudformation.py"]
CloudFormation does not expose ExportName
Given a CF template that defines outputs as named exports, I expect the "describe-stack" endpoint to include the exported names. With localstack, that is currently not the case. Example template: ```yaml Outputs: VPCId: Value: {Ref: MyVPC} Export: Name: My-VPCId Resources: MyVPC: Properties: CidrBlock: 10.0.0.0/16 Type: AWS::EC2::VPC ``` AWS: ``` $ aws cloudformation describe-stacks ... { "OutputKey": "VPCId", "OutputValue": "vpc-0123456789", "ExportName": "My-VPCId" }, ``` localstack: ``` $ aws cloudformation --endpoint-url=http://localhost:4581/ describe-stacks ... { "OutputKey": "VPCId", "OutputValue": "vpc-0123456789" }, ... ```
https://github.com/localstack/localstack/issues/1408
https://github.com/localstack/localstack/pull/2033
d27ccf4886f54ffe593acb4f8f0ab52b24448e21
1e31845b6214be9fd7024075d3af0cdb3900b87e
"2019-07-02T12:32:05Z"
python
"2020-02-08T10:06:48Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,396
["localstack/ext/java/src/test/java/cloud/localstack/S3FeaturesTest.java", "localstack/services/dynamodb/dynamodb_listener.py"]
Uploading to S3 by presigned URL with Content-Md5 throw "The Content-MD5 you specified was invalid"
Hello guys. I use S3 preSigned URL to upload file, but it return an error "The Content-MD5 you specified was invalid". It happens only when I generate Presigned Url with contentMd5.However it works fine when I annotation the line '.withContentMd5(md5)'. My file md5 is 32c295626872e465b3d0b590eb8e88a7. ```java AmazonS3 s3client = getDefaultS3Client(); Date expiration = new Date(System.currentTimeMillis() + expiratMillis); GeneratePresignedUrlRequest generatePresignedUrlRequest = new GeneratePresignedUrlRequest(bucketName, s3FullPath) .withMethod(HttpMethod.PUT) .withExpiration(expiration) .withKey(s3Key) .withContentMd5(md5); String presignedUrl = s3client.generatePresignedUrl(generatePresignedUrlRequest); ``` ![postman](https://user-images.githubusercontent.com/4321439/60160341-bdfafd80-9827-11e9-8a26-03ec4c4d8faf.png) Does S3 support checksum when using presigned url? Could anybody give me a piece of advice to help me solve this? Thank you!
https://github.com/localstack/localstack/issues/1396
https://github.com/localstack/localstack/pull/1900
77d4061526741d9063d388de0a183347b5d9c428
f8bb6a542e8c9db1f65992d0ab7ec1a1ebe3e549
"2019-06-25T12:30:11Z"
python
"2019-12-23T14:10:45Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,392
["localstack/dashboard/web/index.html", "localstack/dashboard/web/views/infra.graph.js"]
Dashboard does not work
<!-- Love localstack? Please consider supporting our collective: 👉 https://opencollective.com/localstack/donate --> Run localstack through docker. ```bash sudo docker run -it -p 4567-4578:4567-4578 -p 8080:8080 localstack/localstack ``` I have put some objects into s3. ```bash $ aws s3 ls foo.bucket 2019-06-22 15:15:02 11 bar.key ``` But the dashboard is still empty. The dashboard keeps empty even if I add lambda functions and more objects.
https://github.com/localstack/localstack/issues/1392
https://github.com/localstack/localstack/pull/1521
6750278973dbb502ecc70eec27fb2c5400f8268d
6645c8d773702a07a30bcee0f0390b05f7c33fcc
"2019-06-22T23:04:48Z"
python
"2019-09-01T20:18:10Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,390
["tests/integration/awslambda/functions/java/lambda_echo/pom.xml"]
Cloudformation unsuported version 'eu-north-1'
I have an issue calling into cloudformation when using the `eu-north-1` region. It seems that his region is not yet supported in cloudformation, and yields the following: `KeyError: 'eu-north-1'` I am running localstack 0.9.5, python 3.7.3 and starting localstack through: `localstack Full relevant logs: ``` 2019-06-21T07:35:52:DEBUG:localstack.services.s3.s3_listener: Found no <LastModified>(.*)</LastModified> inside response_content: list index out of range 2019-06-21T07:36:55:INFO:werkzeug: 127.0.0.1 - - [21/Jun/2019 07:36:55] "POST / HTTP/1.1" 500 - 2019-06-21T07:36:55:ERROR:werkzeug: Error on request: Traceback (most recent call last): File "/opt/code/localstack/.venv/lib/python3.6/site-packages/werkzeug/serving.py", line 303, in run_wsgi execute(self.server.app) File "/opt/code/localstack/.venv/lib/python3.6/site-packages/werkzeug/serving.py", line 291, in execute application_iter = app(environ, start_response) File "/opt/code/localstack/.venv/lib/python3.6/site-packages/moto/server.py", line 104, in __call__ return backend_app(environ, start_response) File "/opt/code/localstack/.venv/lib/python3.6/site-packages/flask/app.py", line 2309, in __call__ return self.wsgi_app(environ, start_response) File "/opt/code/localstack/.venv/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app response = self.handle_exception(e) File "/opt/code/localstack/.venv/lib/python3.6/site-packages/flask/app.py", line 1741, in handle_exception reraise(exc_type, exc_value, tb) File "/opt/code/localstack/.venv/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise raise value File "/opt/code/localstack/.venv/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app response = self.full_dispatch_request() File "/opt/code/localstack/.venv/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request rv = self.handle_user_exception(e) File "/opt/code/localstack/.venv/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception reraise(exc_type, exc_value, tb) File "/opt/code/localstack/.venv/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise raise value File "/opt/code/localstack/.venv/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request rv = self.dispatch_request() File "/opt/code/localstack/.venv/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/opt/code/localstack/.venv/lib/python3.6/site-packages/moto/core/utils.py", line 140, in __call__ result = self.callback(request, request.url, {}) File "/opt/code/localstack/.venv/lib/python3.6/site-packages/moto/core/responses.py", line 117, in dispatch return cls()._dispatch(*args, **kwargs) File "/opt/code/localstack/.venv/lib/python3.6/site-packages/moto/core/responses.py", line 200, in _dispatch return self.call_action() File "/opt/code/localstack/.venv/lib/python3.6/site-packages/moto/core/responses.py", line 274, in call_action response = method() File "/opt/code/localstack/.venv/lib/python3.6/site-packages/moto/cloudformation/responses.py", line 171, in describe_stacks stacks = self.cloudformation_backend.describe_stacks(stack_name_or_id) File "/opt/code/localstack/.venv/lib/python3.6/site-packages/moto/cloudformation/responses.py", line 18, in cloudformation_backend return cloudformation_backends[self.region] KeyError: 'eu-north-1' ```
https://github.com/localstack/localstack/issues/1390
https://github.com/localstack/localstack/pull/6112
a8e14aeedd4ba95ae3384343ebe1a1c855d37441
308ee11005d0b3d9ad90e1d3a3cf14e532391098
"2019-06-21T09:07:38Z"
python
"2022-05-21T16:16:11Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,387
["bin/docker-entrypoint.sh"]
Error: /dev/fd/63: line 1: export: `6DD5EBD2_PORT_3080_TCP_PROTO=tcp': not a valid identifier
I am using k8s to deploy the localstack service and the yaml file looks like: ``` --- apiVersion: v1 kind: Service metadata: name: localstack labels: app: localstack spec: ports: - name: http-dynamodb port: 1080 targetPort: dynamodb - name: http-sqs port: 2080 targetPort: sqs - name: http-kinesis port: 3080 targetPort: kinesis - name: http-s3 port: 4080 targetPort: s3 - name: http-secretsmanager port: 5080 targetPort: secretsmanager type: ClusterIP --- apiVersion: apps/v1 kind: Deployment metadata: name: localstack spec: replicas: 1 template: metadata: labels: app: localstack spec: containers: - image: localstack/localstack:latest name: localstack env: - name: SERVICES value: "dynamodb,sqs,kinesis,s3,secretsmanager" - name: DEBUG value: "true" resources: requests: cpu: 500m memory: 1Gi limits: cpu: 1000m memory: 2Gi ports: - containerPort: 4569 name: dynamodb protocol: TCP - containerPort: 4576 name: sqs protocol: TCP - containerPort: 4568 name: kinesis protocol: TCP - containerPort: 4572 name: s3 protocol: TCP - containerPort: 4584 name: secretsmanager protocol: TCP ``` However, the localstack pod failed to start up and the error message is: ``` /dev/fd/63: line 1: export: `6DD5EBD2_PORT_3080_TCP_PROTO=tcp': not a valid identifier ``` Any reasons behind this? PS: it works with localstack/localstack:0.9.0. And starting from localstack/localstack:0.9.1, the error occurs.
https://github.com/localstack/localstack/issues/1387
https://github.com/localstack/localstack/pull/1388
96041e99d0c4a86e9d61a26d35e6c3088f1459c8
9c5a37c5630d92108002b9167347fc3d39c0469e
"2019-06-19T23:03:43Z"
python
"2019-06-21T10:59:04Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,366
["localstack/services/iam/iam_listener.py"]
Terraform: falling to create IAM roles for lambda/SFN
Hey guys, I am trying to create small POC of testing SFN workflow on Localstack through Terraform (I am aware of https://github.com/whummer/localstack-demo using serverless, but I'd like to get this to work with terraform ) Terraform template : ``` provider "aws" { access_key = "mock_access_key" region = "us-east-1" s3_force_path_style = true secret_key = "mock_secret_key" skip_credentials_validation = true skip_metadata_api_check = true skip_requesting_account_id = true endpoints { apigateway = "http://localhost:4567" cloudformation = "http://localhost:4581" cloudwatch = "http://localhost:4582" dynamodb = "http://localhost:4569" es = "http://localhost:4578" firehose = "http://localhost:4573" iam = "http://localhost:4593" kinesis = "http://localhost:4568" lambda = "http://localhost:4574" route53 = "http://localhost:4580" redshift = "http://localhost:4577" s3 = "http://localhost:4572" secretsmanager = "http://localhost:4584" ses = "http://localhost:4579" sns = "http://localhost:4575" sqs = "http://localhost:4576" ssm = "http://localhost:4583" stepfunctions = "http://localhost:4585" sts = "http://localhost:4592" } } data "aws_iam_policy_document" "lambda_assume_policy" { statement { sid = "" effect = "Allow" principals { identifiers = ["lambda.amazonaws.com"] type = "Service" } actions = ["sts:AssumeRole"] } } data "aws_iam_policy_document" "sfn_assume_policy" { statement { sid = "" effect = "Allow" principals { identifiers = ["states.eu-west-1.amazonaws.com"] type = "Service" } actions = ["sts:AssumeRole"] } } resource "aws_iam_role" "iam_for_lambda_add" { name = "iam_for_lambda_add" assume_role_policy = "${data.aws_iam_policy_document.lambda_assume_policy.json}" } resource "aws_iam_role" "iam_for_lambda_subtract" { name = "iam_for_lambda_subtract" assume_role_policy = "${data.aws_iam_policy_document.lambda_assume_policy.json}" } resource "aws_iam_role" "iam_for_sfn" { name = "iam_for_sfn" assume_role_policy = "${data.aws_iam_policy_document.sfn_assume_policy.json}" } resource "aws_iam_role_policy_attachment" "lambda-invocation" { role = "${aws_iam_role.iam_for_sfn.name}" policy_arn = "arn:aws:iam::aws:policy/AWSLambdaFullAccess" } resource "aws_lambda_function" "add_lambda" { filename = "${path.cwd}/../dist/local-stack-take-one.zip" function_name = "add" role = "${aws_iam_role.iam_for_lambda_add.arn}" handler = "index.add" runtime = "nodejs8.10" } resource "aws_lambda_function" "subtract_lambda" { filename = "${path.cwd}/../dist/local-stack-take-one.zip" function_name = "subtract" role = "${aws_iam_role.iam_for_lambda_subtract.arn}" handler = "index.subtract" runtime = "nodejs8.10" } resource "aws_sfn_state_machine" "sfn_state_machine" { name = "my-state-machine" role_arn = "${aws_iam_role.iam_for_sfn.arn}" definition = <<EOF { "Comment": "A Hello World example of the Amazon States Language using an AWS Lambda Function", "StartAt": "AddNumbers", "States": { "AddNumbers": { "Type": "Task", "Resource": "${aws_lambda_function.add_lambda.arn}", "Next":"SubtractNumbers" }, "SubtractNumbers": { "Type": "Task", "Resource": "${aws_lambda_function.subtract_lambda.arn}", "End": true } } } EOF } ``` errors: ``` terraform apply --auto-approve data.aws_iam_policy_document.lambda_assume_policy: Refreshing state... data.aws_iam_policy_document.sfn_assume_policy: Refreshing state... aws_iam_role.iam_for_lambda_subtract: Refreshing state... (ID: iam_for_lambda_subtract) aws_iam_role.iam_for_lambda_add: Refreshing state... (ID: iam_for_lambda_add) aws_iam_role.iam_for_sfn: Refreshing state... (ID: iam_for_sfn) Error: Error refreshing state: 3 error(s) occurred: * aws_iam_role.iam_for_lambda_add: 1 error(s) occurred: * aws_iam_role.iam_for_lambda_add: aws_iam_role.iam_for_lambda_add: Error reading IAM Role iam_for_lambda_add: SerializationError: failed to unmarshal error message status code: 404, request id: caused by: UnmarshalError: failed to unmarshal error message 00000000 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1| 00000010 2e 30 22 20 65 6e 63 6f 64 69 6e 67 3d 22 55 54 |.0" encoding="UT| 00000020 46 2d 38 22 3f 3e 0a 20 20 3c 52 65 73 70 6f 6e |F-8"?>. <Respon| 00000030 73 65 3e 0a 20 20 20 20 3c 45 72 72 6f 72 73 3e |se>. <Errors>| 00000040 0a 20 20 20 20 20 20 3c 45 72 72 6f 72 3e 0a 20 |. <Error>. | 00000050 20 20 20 20 20 20 20 3c 43 6f 64 65 3e 4e 6f 53 | <Code>NoS| 00000060 75 63 68 45 6e 74 69 74 79 3c 2f 43 6f 64 65 3e |uchEntity</Code>| 00000070 0a 20 20 20 20 20 20 20 20 3c 4d 65 73 73 61 67 |. <Messag| 00000080 65 3e 52 6f 6c 65 20 69 61 6d 5f 66 6f 72 5f 6c |e>Role iam_for_l| 00000090 61 6d 62 64 61 5f 61 64 64 20 6e 6f 74 20 66 6f |ambda_add not fo| 000000a0 75 6e 64 3c 2f 4d 65 73 73 61 67 65 3e 0a 20 20 |und</Message>. | 000000b0 20 20 20 20 20 20 0a 20 20 20 20 20 20 3c 2f 45 | . </E| 000000c0 72 72 6f 72 3e 0a 20 20 20 20 3c 2f 45 72 72 6f |rror>. </Erro| 000000d0 72 73 3e 0a 20 20 3c 52 65 71 75 65 73 74 49 44 |rs>. <RequestID| 000000e0 3e 37 61 36 32 63 34 39 66 2d 33 34 37 65 2d 34 |>7a62c49f-347e-4| 000000f0 66 63 34 2d 39 33 33 31 2d 36 65 38 65 45 58 41 |fc4-9331-6e8eEXA| 00000100 4d 50 4c 45 3c 2f 52 65 71 75 65 73 74 49 44 3e |MPLE</RequestID>| 00000110 0a 3c 2f 52 65 73 70 6f 6e 73 65 3e |.</Response>| caused by: unknown error response tag, {{ Response} []} * aws_iam_role.iam_for_lambda_subtract: 1 error(s) occurred: * aws_iam_role.iam_for_lambda_subtract: aws_iam_role.iam_for_lambda_subtract: Error reading IAM Role iam_for_lambda_subtract: SerializationError: failed to unmarshal error message status code: 404, request id: caused by: UnmarshalError: failed to unmarshal error message 00000000 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1| 00000010 2e 30 22 20 65 6e 63 6f 64 69 6e 67 3d 22 55 54 |.0" encoding="UT| 00000020 46 2d 38 22 3f 3e 0a 20 20 3c 52 65 73 70 6f 6e |F-8"?>. <Respon| 00000030 73 65 3e 0a 20 20 20 20 3c 45 72 72 6f 72 73 3e |se>. <Errors>| 00000040 0a 20 20 20 20 20 20 3c 45 72 72 6f 72 3e 0a 20 |. <Error>. | 00000050 20 20 20 20 20 20 20 3c 43 6f 64 65 3e 4e 6f 53 | <Code>NoS| 00000060 75 63 68 45 6e 74 69 74 79 3c 2f 43 6f 64 65 3e |uchEntity</Code>| 00000070 0a 20 20 20 20 20 20 20 20 3c 4d 65 73 73 61 67 |. <Messag| 00000080 65 3e 52 6f 6c 65 20 69 61 6d 5f 66 6f 72 5f 6c |e>Role iam_for_l| 00000090 61 6d 62 64 61 5f 73 75 62 74 72 61 63 74 20 6e |ambda_subtract n| 000000a0 6f 74 20 66 6f 75 6e 64 3c 2f 4d 65 73 73 61 67 |ot found</Messag| 000000b0 65 3e 0a 20 20 20 20 20 20 20 20 0a 20 20 20 20 |e>. . | 000000c0 20 20 3c 2f 45 72 72 6f 72 3e 0a 20 20 20 20 3c | </Error>. <| 000000d0 2f 45 72 72 6f 72 73 3e 0a 20 20 3c 52 65 71 75 |/Errors>. <Requ| 000000e0 65 73 74 49 44 3e 37 61 36 32 63 34 39 66 2d 33 |estID>7a62c49f-3| 000000f0 34 37 65 2d 34 66 63 34 2d 39 33 33 31 2d 36 65 |47e-4fc4-9331-6e| 00000100 38 65 45 58 41 4d 50 4c 45 3c 2f 52 65 71 75 65 |8eEXAMPLE</Reque| 00000110 73 74 49 44 3e 0a 3c 2f 52 65 73 70 6f 6e 73 65 |stID>.</Response| 00000120 3e |>| caused by: unknown error response tag, {{ Response} []} * aws_iam_role.iam_for_sfn: 1 error(s) occurred: * aws_iam_role.iam_for_sfn: aws_iam_role.iam_for_sfn: Error reading IAM Role iam_for_sfn: SerializationError: failed to unmarshal error message status code: 404, request id: caused by: UnmarshalError: failed to unmarshal error message 00000000 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1| 00000010 2e 30 22 20 65 6e 63 6f 64 69 6e 67 3d 22 55 54 |.0" encoding="UT| 00000020 46 2d 38 22 3f 3e 0a 20 20 3c 52 65 73 70 6f 6e |F-8"?>. <Respon| 00000030 73 65 3e 0a 20 20 20 20 3c 45 72 72 6f 72 73 3e |se>. <Errors>| 00000040 0a 20 20 20 20 20 20 3c 45 72 72 6f 72 3e 0a 20 |. <Error>. | 00000050 20 20 20 20 20 20 20 3c 43 6f 64 65 3e 4e 6f 53 | <Code>NoS| 00000060 75 63 68 45 6e 74 69 74 79 3c 2f 43 6f 64 65 3e |uchEntity</Code>| 00000070 0a 20 20 20 20 20 20 20 20 3c 4d 65 73 73 61 67 |. <Messag| 00000080 65 3e 52 6f 6c 65 20 69 61 6d 5f 66 6f 72 5f 73 |e>Role iam_for_s| 00000090 66 6e 20 6e 6f 74 20 66 6f 75 6e 64 3c 2f 4d 65 |fn not found</Me| 000000a0 73 73 61 67 65 3e 0a 20 20 20 20 20 20 20 20 0a |ssage>. .| 000000b0 20 20 20 20 20 20 3c 2f 45 72 72 6f 72 3e 0a 20 | </Error>. | 000000c0 20 20 20 3c 2f 45 72 72 6f 72 73 3e 0a 20 20 3c | </Errors>. <| 000000d0 52 65 71 75 65 73 74 49 44 3e 37 61 36 32 63 34 |RequestID>7a62c4| 000000e0 39 66 2d 33 34 37 65 2d 34 66 63 34 2d 39 33 33 |9f-347e-4fc4-933| 000000f0 31 2d 36 65 38 65 45 58 41 4d 50 4c 45 3c 2f 52 |1-6e8eEXAMPLE</R| 00000100 65 71 75 65 73 74 49 44 3e 0a 3c 2f 52 65 73 70 |equestID>.</Resp| 00000110 6f 6e 73 65 3e |onse>| caused by: unknown error response tag, {{ Response} []} ``` <!-- Love localstack? Please consider supporting our collective: 👉 https://opencollective.com/localstack/donate -->
https://github.com/localstack/localstack/issues/1366
https://github.com/localstack/localstack/pull/1373
718bf8228ed942b66e6e745073ad9373f6c19f32
d1f67f8775eb18eb425152df987d2f8c9bd48890
"2019-06-10T18:40:09Z"
python
"2019-06-13T20:20:51Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,364
["localstack/services/awslambda/lambda_api.py", "localstack/services/sqs/sqs_listener.py", "localstack/utils/testutil.py", "tests/integration/test_integration.py", "tests/integration/test_lambda.py", "tests/integration/test_sqs.py"]
Lambdas don't trigger from SQS messages if SendMessageBatch is used
It appears lambdas are not triggered from items being pushed to SQS if [SendMessageBatch](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessageBatch.html) is used instead of [SendMessage](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessage.html)
https://github.com/localstack/localstack/issues/1364
https://github.com/localstack/localstack/pull/2215
b9beb0a3ade2efc8e7211699033f3e09121f1ae2
1adbada176cfe115087b8ec060f67df52e183b32
"2019-06-09T15:37:36Z"
python
"2020-03-29T19:39:21Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,361
["localstack/services/sns/sns_listener.py", "tests/integration/test_sns.py"]
Unable to send SMS with SNS
``` peter@nefilim ~ $ aws --endpoint-url=http://localhost:4575 sns publish --message="hello world" --phone-number="+15551239110" An error occurred (NotFound) when calling the Publish operation: Topic does not exist ``` this works perfectly fine against AWS, from the docs: ``` --phone-number (string) The phone number to which you want to deliver an SMS message. Use E.164 format. If you don't specify a value for the PhoneNumber parameter, you must specify a value for the TargetArn or TopicArn parameters. ```
https://github.com/localstack/localstack/issues/1361
https://github.com/localstack/localstack/pull/1369
c71e49bf97da3672a614c3325c1db29731b3b259
718bf8228ed942b66e6e745073ad9373f6c19f32
"2019-06-07T00:31:00Z"
python
"2019-06-13T16:22:31Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,343
["localstack/services/logs/logs_listener.py", "tests/integration/test_logs.py"]
Incorrect response content-type header from cloudwatch logs
When using the .NET AWSSDK connected to localstack and querying cloudwatch logs e.g. var logClient = new AmazonCloudWatchLogsClient(new AmazonCloudWatchLogsConfig() { ServiceURL = "http://localhost:4586", UseHttp = true, AuthenticationRegion = "eu-central-1", }); var logGroupName = @"/aws/lambda/f1"; var events = logClient.FilterLogEventsAsync(new FilterLogEventsRequest() { LogGroupName = logGroupName, }).GetAwaiter().GetResult(); The response is returned from the server but cannot be parsed by the SDK client code because the response's content-type header is text/html when it should be application/x-amz-json-1.1. This confirmed using Fiddler traces comparing the response from localstack to the response from AWS in the cloud. Can this be fixed easily?
https://github.com/localstack/localstack/issues/1343
https://github.com/localstack/localstack/pull/2244
03165fb33c6e8f380addd8ea5227210a648c6a41
cd3efec796b0ad6e9ff3d2591ad1eccd3bed4f9a
"2019-05-30T14:44:27Z"
python
"2020-04-03T16:44:12Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,324
[".github/workflows/asf-updates.yml"]
Docker example with junit5 throws java.lang.IllegalStateException
looks like this snippet for Junit5 (have not tested it with Junit4) is not working with `lambda` and `stepfunctions` ``` @ExtendWith(LocalstackDockerExtension.class) @LocalstackDockerProperties(randomizePorts = true, services = { "sqs", "kinesis:77077" }) public class MyDockerCloudAppTest { ... } ``` I get the error ``` java.lang.IllegalStateException: Service to port mapping has not been determined yet. at cloud.localstack.docker.LocalstackDocker.endpointForService(LocalstackDocker.java:183) at cloud.localstack.docker.LocalstackDocker.getEndpointLambda(LocalstackDocker.java:116) at cloud.localstack.DockerTestUtils.createEndpointConfiguration(DockerTestUtils.java:114) at cloud.localstack.DockerTestUtils.getClientLambda(DockerTestUtils.java:53) ``` Which seems misleading because even if I specifically set the port mapping localstack seems to ignore it. I also noticed that stepfunctions client is only available in the `DockerTestUtils` class and not in the `TestUtils` class so I cannot even try to do this without Docker.
https://github.com/localstack/localstack/issues/1324
https://github.com/localstack/localstack/pull/9067
16b7f53c98d303476e70a1956aa1f193e7b534a7
dfbaa14635557ab5cf6cb39178f01e3bcbca7313
"2019-05-21T17:10:48Z"
python
"2023-09-05T07:26:54Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,323
["Makefile", "requirements.txt"]
Don't require style and test packages for every installation
I recommend having the option to install things like `flake8`, `flake8-quotes` only when specifying development extras like `localstack[dev]` rather than for every install, which can cause unnecessary package conflicts in the consuming environment. One way to do this is by splitting dev / test requirements into separate files, consuming them in `setup.py` then defining them in the `extras_require` kwarg. ```python install_requires=main_requirements, extras_require={ 'dev': dev_requirements } ```
https://github.com/localstack/localstack/issues/1323
https://github.com/localstack/localstack/pull/1903
925841508d69f316192d561bedfb4267e79ffe2d
a02feefba6d67341cd996080eb5a68e0a672ef55
"2019-05-20T20:03:34Z"
python
"2019-12-27T15:25:49Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,322
["localstack/services/sns/sns_listener.py", "tests/integration/test_sns.py"]
SNS missing ListTagsForResource implementation
We use terraform in combination with localstack for testing purposes and recently there has been an update the the AWS terraform provider (https://github.com/terraform-providers/terraform-provider-aws/blob/master/CHANGELOG.md#2110-may-17-2019) that adds tag support to the SNS resource. Unforntunately the change to the terraform aws provider breaks compatibly with localstack as it now uses the ListTagsForResource API on SNS which localstack replies with a HTTP 500. Here is the terraform debug output that shows the issue: ``` 2019-05-19T22:44:48.251Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: 2019/05/19 22:44:48 [DEBUG] [aws-sdk-go] DEBUG: Request sns/ListTagsForResource Details: 2019-05-19T22:44:48.251Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: ---[ REQUEST POST-SIGN ]----------------------------- 2019-05-19T22:44:48.251Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: POST / HTTP/1.1 2019-05-19T22:44:48.251Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: Host: localstack.local.halter.io:4575 2019-05-19T22:44:48.251Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: User-Agent: aws-sdk-go/1.19.30 (go1.12.2; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.12.0-rc1 2019-05-19T22:44:48.251Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: Content-Length: 137 2019-05-19T22:44:48.251Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=fakeAccessKey/20190519/ap-southeast-2/sns/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date, Signature=6d096165364670ac519063d10e916b38f0428adc ee4296b645bc24df1079e54b 2019-05-19T22:44:48.251Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: Content-Type: application/x-www-form-urlencoded; charset=utf-8 2019-05-19T22:44:48.251Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: X-Amz-Date: 20190519T224448Z 2019-05-19T22:44:48.251Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: Accept-Encoding: gzip 2019-05-19T22:44:48.251Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: 2019-05-19T22:44:48.251Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: Action=ListTagsForResource&ResourceArn=arn%3Aaws%3Asns%3Aap-southeast-2%3A123456789012%3Ahalter-core_push_notification&Version=2010-03-31 2019-05-19T22:44:48.251Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: ----------------------------------------------------- 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: 2019/05/19 22:44:48 [DEBUG] [aws-sdk-go] DEBUG: Response sns/ListTagsForResource Details: 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: ---[ RESPONSE ]-------------------------------------- 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: HTTP/1.1 500 Internal Server Error 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: Content-Length: 290 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: Access-Control-Allow-Headers: authorization,content-type,content-md5,cache-control,x-amz-content-sha256,x-amz-date,x-amz-security-token,x-amz-user-agent 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: Access-Control-Allow-Methods: HEAD,GET,PUT,POST,DELETE,OPTIONS,PATCH 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: Access-Control-Allow-Origin: * 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: Content-Type: text/html 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: Date: Sun, 19 May 2019 22:44:48 GMT 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: Server: BaseHTTP/0.6 Python/3.6.8 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: ----------------------------------------------------- 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: 2019/05/19 22:44:48 [DEBUG] [aws-sdk-go] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: <title>500 Internal Server Error</title> 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: <h1>Internal Server Error</h1> 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: <p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p> 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: 2019/05/19 22:44:48 [DEBUG] [aws-sdk-go] DEBUG: Validate Response sns/ListTagsForResource failed, not retrying, error SerializationError: failed to decode query XML error response 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: status code: 500, request id: 2019-05-19T22:44:48.268Z [DEBUG] plugin.terraform-provider-aws_v2.11.0_x4: caused by: expected element type <ErrorResponse> but have <title> ``` Is there any plan to support this tags API for SNS in localstack? If so is there anything that I could do to help out?
https://github.com/localstack/localstack/issues/1322
https://github.com/localstack/localstack/pull/1428
841a16d8823fd46aa11519800958117a11b92ace
62c92b1d28b78193e238b88b7d75981ae038c06e
"2019-05-19T22:51:59Z"
python
"2019-07-18T15:12:18Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,319
["localstack/services/sns/sns_listener.py", "tests/integration/test_sns.py"]
aws sns publish against non existent topic does not throw exception
With latest localstack image running in Docker, when publishing a message to a non-existent SNS topic no error is thrown. This differs from AWS.
https://github.com/localstack/localstack/issues/1319
https://github.com/localstack/localstack/pull/1331
596d12cdb9a064705f1ca37697156a1340db5a0b
3097fb601f0aa46c8178ea2d7743aa0875332c88
"2019-05-17T13:57:30Z"
python
"2019-05-26T19:50:13Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,318
[".github/workflows/asf-updates.yml"]
SQS doesn't work with AWS SDK 2.0
<!-- Love localstack? Please consider supporting our collective: 👉 https://opencollective.com/localstack/donate --> I'm having 2 SQS Java clients, 1 with SDK 1 and the other with the new SDK 2.0. For some reason, the new SDK couldn't work with local SQS because of the following error ``` [info] java.util.concurrent.CompletionException: software.amazon.awssdk.services.sqs.model.SqsException: The security token included in the request is invalid. (Service: Sqs, Status Code: 403, Request ID: b013402e-2763-53bb-9b7d-1576a3c7d64a) [info] at software.amazon.awssdk.utils.CompletableFutureUtils.errorAsCompletionException(CompletableFutureUtils.java:61) [info] at software.amazon.awssdk.core.internal.http.pipeline.stages.AsyncExecutionFailureExceptionReportingStage.lambda$execute$0(AsyncExecutionFailureExceptionReportingStage.java:51) [info] at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:822) [info] at java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:797) [info] at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) [info] at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977) [info] at software.amazon.awssdk.utils.CompletableFutureUtils.lambda$forwardExceptionTo$0(CompletableFutureUtils.java:75) [info] at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760) [info] at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736) [info] at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) ``` even though the credentials being used are the same. Tried to use the solution proposed in https://github.com/localstack/localstack/issues/893#issuecomment-486898065 but it didn't work still.
https://github.com/localstack/localstack/issues/1318
https://github.com/localstack/localstack/pull/9067
16b7f53c98d303476e70a1956aa1f193e7b534a7
dfbaa14635557ab5cf6cb39178f01e3bcbca7313
"2019-05-17T10:46:03Z"
python
"2023-09-05T07:26:54Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,317
["localstack/services/s3/s3_listener.py", "tests/integration/test_s3.py"]
Inconsistency in S3 PUT object response body
When I "PUT" an object using a pre-signed by localstack S3 URL, the localstack responds with "Content Length: 233" and `<PutObjectResponse>...</PutObjectResponse>` XML in the body. When I run the same code against AWS S3, the content length is 0 and response body blank. Would be great if localstack matched the AWS S3 response. Running the latest 0.9.3 localstack docker image.
https://github.com/localstack/localstack/issues/1317
https://github.com/localstack/localstack/pull/1376
d1f67f8775eb18eb425152df987d2f8c9bd48890
aa27022a2aaaa31e9e53757a27d3b8e57a085b7d
"2019-05-17T02:14:33Z"
python
"2019-06-15T19:05:23Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,306
["Dockerfile", "LICENSE.txt", "Makefile", "bin/localstack", "bin/supervisord.conf", "localstack/services/generic_proxy.py", "localstack/services/infra.py"]
Got permission denied while trying to connect to the Docker daemon socket in version > 0.9.1
Hi, when I use the latest version I get an error when calling a Lambda. I get this error: Lambda process returned error status code: 1. Output: awssvc | 2019-05-10T22:23:19.822966331Z Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.29/containers/create: dial unix /var/run/docker.sock: connect: permission denied awssvc | 2019-05-10T22:23:19.822969899Z must specify at least one container source I'am using the Lambda in a docker. You can find my setup here: https://github.com/blaart/stream-my-changes After forcing to use the 0.9.1 version all works fine again.
https://github.com/localstack/localstack/issues/1306
https://github.com/localstack/localstack/pull/1308
f28c5fe9696ccfe320c7693fc12b5ebe360fe2c0
65cb13f54ac9339fa00b1ff8702712440b707f82
"2019-05-10T23:22:14Z"
python
"2019-05-11T21:22:29Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,300
["Makefile", "README.md", "localstack/constants.py", "localstack/ext/java/src/test/resources/SqsEvent.json", "localstack/services/awslambda/lambda_api.py", "localstack/services/cloudformation/cloudformation_listener.py", "localstack/services/sns/sns_listener.py", "localstack/utils/aws/aws_stack.py", "localstack/utils/common.py"]
Cloud formation account id different from other service
Hi ,deploy server-less application in local-stack through cloud formation template but i start notice account id for cloud formation is 12345789 but for other service it is 00000000 ,so its like cloud formation try to deploy service in different account
https://github.com/localstack/localstack/issues/1300
https://github.com/localstack/localstack/pull/1377
aa27022a2aaaa31e9e53757a27d3b8e57a085b7d
cd653d4c3475df335f1c84f16d71826a8525dd8d
"2019-05-09T13:45:04Z"
python
"2019-06-16T15:24:06Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,292
["localstack/services/s3/s3_listener.py", "tests/integration/test_s3.py"]
Unable to create s3 bucket with PHP without angle brackets wrapping the bucket name
``` $args = [ 'version' => '2006-03-01', 'region' => 'eu-west-1', 'credentials' => CredentialsProvider::get(), 'http' => ['decode_content' => false], 'retries' => 6, 'endpoint' => 'http://localstack:4572', 'bucket_endpoint' => true ]; $this->client = new S3Client($args); $result = $this->client->createBucket([ 'Bucket' => "localbucket", ]); $buckets = $this->client->listBuckets(); ``` $result shows the `@metadata` statusCode as 200 however the returned Location which should tell me where the created bucket is, is an empty string. So it isn't creating the bucket, but I'm getting a 200 response. Just to be sure I run `listBuckets()` and it confirms nothing is being created. docker-compose.yml settings for localstack: ``` localstack: container_name: localstack image: localstack/localstack ports: - "4567-4593:4567-4593" - "${PORT_WEB_UI-8080}:${PORT_WEB_UI-8080}" environment: - HOSTNAME=pi.docker - SERVICES=s3,dynamodb - DEFAULT_REGION=eu-west-1 # - DEBUG=${DEBUG- } - DATA_DIR=/tmp/localstack/data - PORT_WEB_UI=8080 # - LAMBDA_EXECUTOR=local - DYNAMODB_ERROR_PROBABILITY=0.0 - DOCKER_HOST=unix:///var/run/docker.sock volumes: - "${TMPDIR:-/tmp/localstack}:/tmp/localstack" - "/var/run/docker.sock:/var/run/docker.sock" ``` Bonus issue: as far as I can tell persistence for s3 doesn't work, I've set DATA_DIR, I've tried changing the volume to `"localstack:/tmp/localstack"` and setting a persisting volume for that. And the directory does persist, however the s3 data isn't stored here so it's reset when taking down the container.
https://github.com/localstack/localstack/issues/1292
https://github.com/localstack/localstack/pull/1825
28785ef6537938bd75fd8c2f840f4658d4c77afe
aa013bf8ae8527940fbbecc9d64104fd463a5cf9
"2019-05-08T11:29:23Z"
python
"2019-12-03T14:19:32Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,260
["localstack/services/awslambda/lambda_api.py", "localstack/services/iam/iam_listener.py", "tests/integration/test_lambda.py"]
Lambda AddPermissions returning 404 Not Found
I'm trying to setup an lambda function triggered by S3 events within a localstack docker-compose environment. I've got the latest localstack image running in one service with S3, Lambda and APIGATEWAY and the second service is using `awslocal` to communicate with the localstack. I have gotten as far as successfully creating a lambda function but when I attempt to `add-permission` I get a 404 Not Found error. My command is: ``` awslocal lambda add-permission --function-name my-lambda-function --action lambda:InvokeFunction --statement-id s3 --principal s3.amazonaws.com --source-arn arn:aws:s3:::event-source-bucket ``` This works against AWS so I'm not sure what I need to have setup within localstack to get it working. Thanks for any insight you may have.
https://github.com/localstack/localstack/issues/1260
https://github.com/localstack/localstack/pull/1691
e1989aa841c1fae3551423c3fb01174492418afe
586250f1f26a85fb23793707fec38fcd9b38e3ca
"2019-04-17T15:29:55Z"
python
"2019-10-28T23:04:28Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,259
["localstack/services/s3/s3_listener.py", "tests/integration/test_s3.py"]
CORB problem from S3 service
We are having problems playing audio files from the HTML5 audio component from the S3 service. Steps to reproduce it: 1.- Upload some mp3 file to S3 service 2.- Use signed url in some HTML5 audio component like ``` <audio controls="controls"> <source src="http://localstack:4572/local-bucket/test.mp3?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Security-Token=xxx%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=xxx%2F20190416%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190416T150211Z&X-Amz-SignedHeaders=host&X-Amz-Expires=172800&X-Amz-Signature=xxx" type="audio/mpeg"> </audio> ``` When we try to reproduce it we get CORB problem from Chrome, ``` Cross-Origin Read Blocking (CORB) blocked cross-origin response http://localstack:4572/local-bucket/test.mp3?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Security-Token=xxx%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=xxx%2F20190416%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190416T150211Z&X-Amz-SignedHeaders=host&X-Amz-Expires=172800&X-Amz-Signature=xxx with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details. ``` Doing some test we realize that the http calls done by audio component to audio asset returns a wrong Content-Type header. First call, Request, ``` Request URL: http://localstack:4572/local-bucket/test.mp3?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Security-Token=xxx%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=xxx%2F20190416%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190416T150211Z&X-Amz-SignedHeaders=host&X-Amz-Expires=172800&X-Amz-Signature=xxx Request Method: GET Status Code: 200 OK Remote Address: xx.xx.xx.xx:4572 Referrer Policy: no-referrer-when-downgrade ``` Response, ``` Access-Control-Allow-Headers: authorization,content-type,content-md5,cache-control,x-amz-content-sha256,x-amz-date,x-amz-security-token,x-amz-user-agent Access-Control-Allow-Methods: HEAD,GET,PUT,POST,DELETE,OPTIONS,PATCH Access-Control-Allow-Origin: * Content-Length: 6584528 Content-Md5: RpfskSSCIEXm7I9lGuMsBA== Content-Type: audio/mpeg Date: Wed, 17 Apr 2019 14:27:05 GMT ETag: "4697ec9124822045e6ec8f651ae32c04" last-modified: Wed, 17 Apr 2019 14:24:23 GMT Server: BaseHTTP/0.3 Python/2.7.15 ``` Second call, with a partial content, Request, ``` Request URL: http://localstack:4572/local-bucket/test.mp3?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Security-Token=xxx%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=xxx%2F20190416%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190416T150211Z&X-Amz-SignedHeaders=host&X-Amz-Expires=172800&X-Amz-Signature=xxx Request Method: GET Status Code: 206 Partial Content Remote Address: xx.xx.xx.xx:4572 Referrer Policy: no-referrer-when-downgrade ``` Response, ``` Access-Control-Allow-Headers: authorization,content-type,content-md5,cache-control,x-amz-content-sha256,x-amz-date,x-amz-security-token,x-amz-user-agent Access-Control-Allow-Methods: HEAD,GET,PUT,POST,DELETE,OPTIONS,PATCH Access-Control-Allow-Origin: * Content-Length: 6584528 Content-Range: bytes 0-6584527/6584528 Content-Type: text/html; charset=utf-8 Date: Wed, 17 Apr 2019 14:27:05 GMT Server: BaseHTTP/0.3 Python/2.7.15 ``` Here, we are getting Content-Type: text/html and this causes the CORB problem. Trying the same from a real S3 service: First call, Request, ``` Request URL: https://xxx.s3.amazonaws.com/xxx.mp3 Request Method: GET Status Code: 304 Not Modified Remote Address: xx.xx.xx.xx:443 Referrer Policy: no-referrer-when-downgrade ``` Response, ``` Date: Wed, 17 Apr 2019 14:34:37 GMT ETag: "5d79d70934b79a527383c87a7d22dc3a" Last-Modified: Wed, 17 Apr 2019 10:21:17 GMT Server: AmazonS3 x-amz-id-2: 1tX9Ni8GfNVZNBrK7KtdamP+6fxeoTIo0pMzLlLMGiIoAGEM3qpm12UoPktkjDxLiLWj16v2hbo= x-amz-meta-gid: 33 x-amz-meta-mode: 33277 x-amz-meta-mtime: 1555496476 x-amz-meta-uid: 33 x-amz-request-id: 9AA70366CB6D9C73 x-amz-version-id: null ``` Second call, with partial content, Request, ``` Request URL: https://xxx.s3.amazonaws.com/xxx.mp3 Request Method: GET Status Code: 206 Partial Content Remote Address: xx.xx.xx.xx:443 Referrer Policy: no-referrer-when-downgrade ``` Response, ``` Accept-Ranges: bytes Content-Length: 5952573 Content-Range: bytes 0-5952572/5952573 Content-Type: audio/mpeg Date: Wed, 17 Apr 2019 14:34:37 GMT ETag: "5d79d70934b79a527383c87a7d22dc3a" Last-Modified: Wed, 17 Apr 2019 10:21:17 GMT Server: AmazonS3 x-amz-id-2: xxx x-amz-meta-gid: 33 x-amz-meta-mode: 33277 x-amz-meta-mtime: 1555496476 x-amz-meta-uid: 33 x-amz-request-id: 9AA70366CB6D9C73 x-amz-version-id: null ``` In summary, when a partial content request is made it is always served as text/html and this generates the CORB problem. We also try to set a CORS policy including `X-Content-Type-Options: nosniff` header via ExposeHeaders in order to prevent CORB check but the service doesn't allow this header. We believe that the solution could be to send the correct `Content-Type` header or in case this is impossible, always include the `X-Content-Type-Options: nosniff` header in all the responses of the S3 service.
https://github.com/localstack/localstack/issues/1259
https://github.com/localstack/localstack/pull/1887
9c7b3f97252193ea02de95daf7bb026adc976789
aa592d31141c9bb8e88ece1fb797a35a680be1e6
"2019-04-17T14:46:08Z"
python
"2019-12-19T20:42:14Z"
closed
localstack/localstack
https://github.com/localstack/localstack
1,249
["localstack/services/es/es_api.py", "localstack/services/s3/s3_listener.py"]
S3 bucket notification configuration: Unknown filter name: "Prefix" and "Suffix"
When creating the following bucket notification configuration: ```json { "QueueConfigurations": [ { "Id": "some-id", "QueueArn": "arn:aws:sqs:eu-central-1:123456789:my-queue", "Events": [ "s3:ObjectCreated:*" ], "Filter": { "Key": { "FilterRules": [ { "Name": "Prefix", "Value": "path/to/folder/" }, { "Name": "Suffix", "Value": ".json" } ] } } } ] } ``` and adding some files to S3, I get the following errors from localstack: ``` localstack.services.s3.s3_listener: Unknown filter name: "Prefix" localstack.services.s3.s3_listener: Unknown filter name: "Suffix" ``` When I change the FilterRule names from "Prefix" to "prefix" and "Suffix" to "suffix", everything works. AWS supports the capitalised name, so this looks like a bug in localstack.
https://github.com/localstack/localstack/issues/1249
https://github.com/localstack/localstack/pull/1845
9c53c081382267c67c6fb336779dd0a3856a74fa
fccc6ab3a21f69b2eb4cb3e69effb3068dd9e690
"2019-04-11T09:56:34Z"
python
"2019-12-08T22:00:06Z"