aws-appsync-relay
aws-appsync-relay copied to clipboard
Cannot deploy to AWS CloudFormation
Hi Kelvin,
When I try to do the 2nd step of Launching the AppSync backend
aws cloudformation deploy --template-file packaged_template.yml --stack-name AppSyncRelay --capabilities CAPABILITY_NAMED_IAM
I receive the following error:
unacceptable character #x0000: special characters are not allowed
in "<unicode string>", position 3
When I try to upload the .\backend\template.yml file in CloudFormation Designer, after clicking Validate template button, there is an error: Template contains errors.: Template error: YAML aliases are not allowed in CloudFormation templates
I've managed to create a CloudFormation stack by doing:
- Run the first step:
aws cloudformation package --template-file backend/template.yml --s3-bucket my-package-bucket > packaged_template.yml
- Copy/paste the content of .\backend\template.yml file to CloudFormation Designer
- Replace the GraphQLSchema section with the content of packaged_template.yml
- Convert to JSON format in CloudFormation Designer to avoid YAML aliases not allowed issue.
- Create stack
Now I can run it at my local. Thank you 👍