Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

API Gateway creation error #16

Open
ulisescarreonalvarez opened this issue Apr 24, 2020 · 0 comments
Open

API Gateway creation error #16

ulisescarreonalvarez opened this issue Apr 24, 2020 · 0 comments

Comments

@ulisescarreonalvarez
Copy link

Hi,

I was trying to run the script and even when the shell shows "You're done" actually it get stuck on this script:

echo "Importing the swagger template"
aws apigateway import-rest-api --body 'file:///tmp/apigateway-swagger.json' --region ${REGION} > /tmp/apigateway-import-api  --region ${REGION}
GATEWAY_ID=$(cat /tmp/apigateway-import-api | grep id | awk '{print $2}' | xargs |sed -e 's/^"//'  -e 's/"$//' -e 's/,$//')

I believe the problem is aws apigateway becuase in shell returns "Invalid base64".
On the documentation it seems like I need to add --cli-binary-format raw-in-base64-out but even with that I don't get the response to create the tmp file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant