amplify-education / serverless-domain-manager

Serverless plugin for managing custom domains with API Gateways.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to fetch information about ......

ianzone opened this issue · comments

commented
❯ sls deploy
Running "serverless" from node_modules

Deploying booking to stage dev (us-east-1)

✖ Stack booking-dev failed to deploy (16s)
Environment: linux, node 18.16.0, framework 3.30.1 (local) 3.30.1v (global), plugin 6.2.3, SDK 4.3.2
Credentials: Local, environment variables
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
Error: V1 - Unable to fetch information about 'DOMAIN':
getaddrinfo EAI_AGAIN apigateway.us-east-1.amazonaws.com
    at APIGatewayV1Wrapper.<anonymous> (REPO/node_modules/.pnpm/serverless-domain-manager@7.0.2_serverless@3.30.1/node_modules/serverless-domain-manager/dist/src/aws/api-gateway-v1-wrapper.js:68:27)
    at Generator.throw (<anonymous>)
    at rejected (REPO/node_modules/.pnpm/serverless-domain-manager@7.0.2_serverless@3.30.1/node_modules/serverless-domain-manager/dist/src/aws/api-gateway-v1-wrapper.js:6:65)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
commented

solved the issue by setting the host file

Hi @ianzone,

I am experiencing the same issue that was previously described and I would greatly appreciate it if you could provide me with further information regarding the steps you took to resolve the issue.

Thank you!

commented

i solved my issue by adding this to hosts file

52.7.53.1       apigateway.us-east-1.amazonaws.com
54.166.246.49   apigateway.us-east-1.amazonaws.com
54.198.132.212  apigateway.us-east-1.amazonaws.com
54.239.31.187   route53.amazonaws.com
54.239.28.223   cloudformation.us-east-1.amazonaws.com