{"action":"created","issue":{"url":"https://api.github.com/repos/temyers/serverless-localstack/issues/45","repository_url":"https://api.github.com/repos/temyers/serverless-localstack","labels_url":"https://api.github.com/repos/temyers/serverless-localstack/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/temyers/serverless-localstack/issues/45/comments","events_url":"https://api.github.com/repos/temyers/serverless-localstack/issues/45/events","html_url":"https://github.com/temyers/serverless-localstack/issues/45","id":362684467,"node_id":"MDU6SXNzdWUzNjI2ODQ0Njc=","number":45,"title":"Recoverable error occurred (null)","user":{"login":"jdwil","id":1407981,"node_id":"MDQ6VXNlcjE0MDc5ODE=","avatar_url":"https://avatars2.githubusercontent.com/u/1407981?v=4","gravatar_id":"","url":"https://api.github.com/users/jdwil","html_url":"https://github.com/jdwil","followers_url":"https://api.github.com/users/jdwil/followers","following_url":"https://api.github.com/users/jdwil/following{/other_user}","gists_url":"https://api.github.com/users/jdwil/gists{/gist_id}","starred_url":"https://api.github.com/users/jdwil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdwil/subscriptions","organizations_url":"https://api.github.com/users/jdwil/orgs","repos_url":"https://api.github.com/users/jdwil/repos","events_url":"https://api.github.com/users/jdwil/events{/privacy}","received_events_url":"https://api.github.com/users/jdwil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-21T16:14:46Z","updated_at":"2018-09-28T00:27:35Z","closed_at":null,"author_association":"NONE","body":"I'm running the latest serverless, serverless-localstack and localstack. I'm running localstack via\r\n\r\n`localstack run --docker`\r\n\r\nI've seen this error in various issues here and on localstack, but mostly they seem to be resolved with later versions of the software, which doesn't seem to be my case. \r\n\r\nHere are the pertinent parts of my serverless.yml:\r\n\r\n```\r\nservice: app-api\r\n\r\ncustom:\r\n  localstack:\r\n    stages:\r\n      - local\r\n    host: http://localhost\r\n    endpointFile: ../localstack.json\r\n\r\nprovider:\r\n  name: aws\r\n  runtime: python3.6\r\n  stage: dev\r\n  region: us-west-2\r\n\r\n  iamRoleStatements:\r\n  - Effect: \"Allow\"\r\n    Action:\r\n      - \"sns:*\"\r\n    Resource: \"*\"\r\n  - Effect: \"Allow\"\r\n    Action:\r\n      - \"s3:*\"\r\n    Resource: \"*\"\r\n\r\nfunctions:\r\n  my_func:\r\n    handler: my_func.handler\r\n    events:\r\n      - http:\r\n          path: my_func\r\n          method: put\r\n          cors: true\r\n          authorizer:\r\n            arn: ...\r\n\r\n...\r\n\r\nplugins:\r\n  - serverless-localstack\r\n```\r\n\r\nWhen I run sls deploy --stage local I get:\r\n\r\n```\r\n$ sls deploy --stage local --debug\r\nServerless: Load command config\r\nServerless: Load command config:credentials\r\nServerless: Load command create\r\nServerless: Load command install\r\nServerless: Load command package\r\nServerless: Load command deploy\r\nServerless: Load command deploy:function\r\nServerless: Load command deploy:list\r\nServerless: Load command deploy:list:functions\r\nServerless: Load command invoke\r\nServerless: Load command invoke:local\r\nServerless: Load command info\r\nServerless: Load command logs\r\nServerless: Load command login\r\nServerless: Load command logout\r\nServerless: Load command metrics\r\nServerless: Load command print\r\nServerless: Load command remove\r\nServerless: Load command rollback\r\nServerless: Load command rollback:function\r\nServerless: Load command slstats\r\nServerless: Load command plugin\r\nServerless: Load command plugin\r\nServerless: Load command plugin:install\r\nServerless: Load command plugin\r\nServerless: Load command plugin:uninstall\r\nServerless: Load command plugin\r\nServerless: Load command plugin:list\r\nServerless: Load command plugin\r\nServerless: Load command plugin:search\r\nServerless: Load command config\r\nServerless: Load command config:credentials\r\nServerless: Load command rollback\r\nServerless: Load command rollback:function\r\nServerless: Load command requirements\r\nServerless: Load command requirements:clean\r\nServerless: Load command requirements:install\r\nServerless: Load command deploy\r\nServerless: Invoke deploy\r\nServerless: Invoke package\r\nServerless: Invoke aws:common:validate\r\nServerless: Invoke aws:common:cleanupTempDir\r\nServerless: Installing requirements of requirements.txt in .serverless...\r\nServerless: Packaging service...\r\nServerless: Excluding development dependencies...\r\nServerless: Injecting required Python packages to package...\r\nServerless: Invoke aws:package:finalize\r\nServerless: Invoke aws:common:moveArtifactsToPackage\r\nServerless: Invoke aws:common:validate\r\nServerless: Loading endpointJson from ../localstack.json\r\nServerless: Intercepting service APIGateway\r\nServerless: Intercepting service CloudFormation\r\nServerless: Intercepting service CloudWatch\r\nServerless: Intercepting service DynamoDB\r\nServerless: Intercepting service DynamoDBStreams\r\nServerless: Intercepting service ES\r\nServerless: Intercepting service Firehose\r\nServerless: Intercepting service Kinesis\r\nServerless: Intercepting service Lambda\r\nServerless: Intercepting service Redshift\r\nServerless: Intercepting service Route53\r\nServerless: Intercepting service S3\r\nServerless: Intercepting service SES\r\nServerless: Intercepting service SNS\r\nServerless: Intercepting service SQS\r\nServerless: config.options_stage: local\r\nServerless: serverless.service.custom.stage: undefined\r\nServerless: serverless.service.provider.stage: dev\r\nServerless: Using serverless-localstack\r\nServerless: Reconfiguring service apigateway to use http://localhost:4567\r\nServerless: Reconfiguring service cloudformation to use http://localhost:4581\r\nServerless: Reconfiguring service cloudwatch to use http://localhost:4582\r\nServerless: Reconfiguring service lambda to use http://localhost:4574\r\nServerless: Reconfiguring service dynamodb to use http://localhost:4567\r\nServerless: Reconfiguring service s3 to use http://localhost:4572\r\nServerless: Reconfiguring service ses to use http://localhost:4579\r\nServerless: Reconfiguring service sns to use http://localhost:4575\r\nServerless: Reconfiguring service sqs to use http://localhost:4576\r\nServerless: Reconfiguring service APIGateway to use http://localhost:4567\r\nServerless: Reconfiguring service CloudFormation to use http://localhost:4581\r\nServerless: Reconfiguring service CloudWatch to use http://localhost:4582\r\nServerless: Reconfiguring service DynamoDB to use http://localhost:4569\r\nServerless: Reconfiguring service DynamoDBStreams to use http://localhost:4570\r\nServerless: Reconfiguring service ES to use http://localhost:4571\r\nServerless: Reconfiguring service Firehose to use http://localhost:4573\r\nServerless: Reconfiguring service Kinesis to use http://localhost:4568\r\nServerless: Reconfiguring service Lambda to use http://localhost:4574\r\nServerless: Reconfiguring service Redshift to use http://localhost:4577\r\nServerless: Reconfiguring service Route53 to use http://localhost:4580\r\nServerless: Reconfiguring service S3 to use http://localhost:4572\r\nServerless: Reconfiguring service SES to use http://localhost:4579\r\nServerless: Reconfiguring service SNS to use http://localhost:4575\r\nServerless: Reconfiguring service SQS to use http://localhost:4576\r\nServerless: Invoke aws:deploy:deploy\r\nServerless: Creating Stack...\r\nServerless: Recoverable error occurred (null), sleeping for 5 seconds. Try 1 of 4\r\nServerless: Recoverable error occurred (null), sleeping for 5 seconds. Try 2 of 4\r\nServerless: Recoverable error occurred (null), sleeping for 5 seconds. Try 3 of 4\r\nServerless: Recoverable error occurred (null), sleeping for 5 seconds. Try 4 of 4\r\n \r\n  Serverless Error ---------------------------------------\r\n \r\n \r\n  Stack Trace --------------------------------------------\r\n \r\nServerlessError: null\r\n    at BbPromise.fromCallback.catch.err (/usr/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:270:11)\r\n    at runCallback (timers.js:810:20)\r\n    at tryOnImmediate (timers.js:768:5)\r\n    at processImmediate [as _immediateCallback] (timers.js:745:5)\r\nFrom previous event:\r\n    at persistentRequest (/usr/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:253:13)\r\n    at Timeout.doCall [as _onTimeout] (/usr/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:205:9)\r\n    at ontimeout (timers.js:502:15)\r\n    at tryOnTimeout (timers.js:323:5)\r\n    at Timer.listOnTimeout (timers.js:290:5)\r\n \r\n  Get Support --------------------------------------------\r\n     Docs:          docs.serverless.com\r\n     Bugs:          github.com/serverless/serverless/issues\r\n     Issues:        forum.serverless.com\r\n \r\n  Your Environment Information -----------------------------\r\n     OS:                     linux\r\n     Node Version:           8.12.0\r\n     Serverless Version:     1.32.0\r\n\r\n```\r\n\r\nAnd in localstack, I get errors like this:\r\n\r\n```\r\n2018-09-21T16:03:48:ERROR:localstack.services.generic_proxy: Error forwarding request: An error occurred (ValidationError) when calling the DescribeStackResources operation: Stack with name app-api-local does not exist Traceback (most recent call last):\r\nFile \"/opt/code/localstack/localstack/services/generic_proxy.py\", line 218, in forward\r\nupdated_response = self.proxy.update_listener.return_response(**kwargs)\r\nFile \"/opt/code/localstack/localstack/services/cloudformation/cloudformation_listener.py\", line 216, in return_response\r\ntemplate_deployer.deploy_template(template, req_data.get('StackName')[0])\r\nFile \"/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py\", line 509, in deploy_template\r\nstack_resources = describe_stack_resources(stack_name, resource_id)\r\nFile \"/opt/code/localstack/localstack/utils/cloudformation/template_deployer.py\", line 227, in describe_stack_resources\r\nresources = client.describe_stack_resources(StackName=stack_name, LogicalResourceId=logical_resource_id)\r\nFile \"/opt/code/localstack/.venv/lib/python2.7/site-packages/botocore/client.py\", line 320, in _api_call\r\nreturn self._make_api_call(operation_name, kwargs)\r\nFile \"/opt/code/localstack/.venv/lib/python2.7/site-packages/botocore/client.py\", line 623, in _make_api_call\r\nraise error_class(parsed_response, operation_name)\r\nClientError: An error occurred (ValidationError) when calling the DescribeStackResources operation: Stack with name app-api-local does not exist\r\n```"},"comment":{"url":"https://api.github.com/repos/temyers/serverless-localstack/issues/comments/425283022","html_url":"https://github.com/temyers/serverless-localstack/issues/45#issuecomment-425283022","issue_url":"https://api.github.com/repos/temyers/serverless-localstack/issues/45","id":425283022,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTI4MzAyMg==","user":{"login":"daviskoh","id":5395403,"node_id":"MDQ6VXNlcjUzOTU0MDM=","avatar_url":"https://avatars2.githubusercontent.com/u/5395403?v=4","gravatar_id":"","url":"https://api.github.com/users/daviskoh","html_url":"https://github.com/daviskoh","followers_url":"https://api.github.com/users/daviskoh/followers","following_url":"https://api.github.com/users/daviskoh/following{/other_user}","gists_url":"https://api.github.com/users/daviskoh/gists{/gist_id}","starred_url":"https://api.github.com/users/daviskoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviskoh/subscriptions","organizations_url":"https://api.github.com/users/daviskoh/orgs","repos_url":"https://api.github.com/users/daviskoh/repos","events_url":"https://api.github.com/users/daviskoh/events{/privacy}","received_events_url":"https://api.github.com/users/daviskoh/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T00:27:35Z","updated_at":"2018-09-28T00:27:35Z","author_association":"NONE","body":"I think it may be a diff issue.\r\n\r\nI forked and cloned the localstack repo then patched in the `\"AWS::Partition\": \"aws\"` change into `moto/cloudformation/parsing.py`, but am still getting the error"}}
{"actor":{"display_login":"daviskoh"}}