jorgebastida / gordon

λ Gordon is a tool to create, wire and deploy AWS Lambdas using CloudFormation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unable to use gordon in aws china

csoma4880 opened this issue · comments

i get the following error while i do gordon apply:

Note: You are trying to use gordon in a region were Lambdas are not supported. This might not end nicely!
Applying project...
0001_p.json (cloudformation)
CREATE_COMPLETE waiting... |
0002_pr_r.json (custom)
✓ code/contrib_lambdas_version.zip (44b58b09)
✓ code/gtest_helloworld.zip (c6f54de9)
0003_r.json (cloudformation)
Traceback (most recent call last):
File "/usr/local/bin/gordon", line 11, in
sys.exit(main())
File "/Library/Python/2.7/site-packages/gordon/bin.py", line 109, in main
getattr(obj, options.func)()
File "/Library/Python/2.7/site-packages/gordon/core.py", line 444, in apply
getattr(self, 'apply_{}_template'.format(template_type))(name, filename, context)
File "/Library/Python/2.7/site-packages/gordon/core.py", line 513, in apply_cloudformation_template
bucket=context.get('CodeBucket')
File "/Library/Python/2.7/site-packages/gordon/utils.py", line 406, in create_or_update_cf_stack
stack = create_stack(name, template_filename, bucket=bucket, context=context, **kwargs)
File "/Library/Python/2.7/site-packages/gordon/utils.py", line 326, in create_stack
**extra
File "/Library/Python/2.7/site-packages/botocore/client.py", line 314, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/Library/Python/2.7/site-packages/botocore/client.py", line 612, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (ValidationError) when calling the CreateStack operation: S3 error: Unable to get the object https://s3.amazonaws.com/gordon-gordon-test-eef85e52-cn-north-1-dev/cf_templates/2018-06-08/bbf5e469.json