Open littlehi opened 5 years ago
If anyone is still trying to figure this out after running through the manual steps amazon has provided. follow what @littlehi says. it worked for me. As a quicker solution without having to edit the CloudFormation template, do the following:
Thank you @littlehi !!!!
Hi,
I have deployed this sample, I received a 502 Error from APIGateway, when using POSTMAN to create an endpoint.
The root cause of this error is CloudFormation template ( https://s3.amazonaws.com/endpoint-code-us/backend.template) and lambda code packages that store on s3 not updated to the latest version.
Flow the below steps to slove this issue: 1.package the source code skill-sample-python-smarthome-sandbox/lambda/api/ to endpoint-package.zip
2.package the source code skill-sample-python-smarthome-sandbox/lambda/smarthome to skill-package.zip
3.upload these packages to your s3 bucket
4.update the CloudFormation template file SkillLambda and EndpointLambda resource to your new s3 bucket .
5.upload your CloudFormation template to your s3 bucket.
6.Using your new cloudforamtion template to deploy.