peterkimzz / aws-ssm-send-command

Github Actions for using AWS SSM Send-Command
MIT License
61 stars 32 forks source link

Inaccessible host #12

Closed jbies121 closed 3 years ago

jbies121 commented 3 years ago

Describe the bug Trying to run this action with correct IAM roles applied, and seeing this error (region code redacted): message: "Inaccessible host: `ssm.us-west-**.amazonaws.com'. This service may not be available in the `us-west-**' region."

SSM is available in this region.

To Reproduce Passing the aws region as a repository secret was giving me the same error but with ssm.***.amazonaws.com. I set the region in the action and still saw this error.

Expected behavior This action should be able to locate the AWS resource

Full Error


Run peterkimzz/aws-ssm-send-command@master
/home/runner/work/_actions/peterkimzz/aws-ssm-send-command/master/node_modules/aws-sdk/lib/request.js:31
            throw err;
            ^

UnknownEndpoint: Inaccessible host: `ssm.us-west-**.amazonaws.com'. This service may not be available in the `us-west-**' region.
    at Request.ENOTFOUND_ERROR (/home/runner/work/_actions/peterkimzz/aws-ssm-send-command/master/node_modules/aws-sdk/lib/event_listeners.js:507:46)
    at Request.callListeners (/home/runner/work/_actions/peterkimzz/aws-ssm-send-command/master/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
    at Request.emit (/home/runner/work/_actions/peterkimzz/aws-ssm-send-command/master/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
    at Request.emit (/home/runner/work/_actions/peterkimzz/aws-ssm-send-command/master/node_modules/aws-sdk/lib/request.js:688:14)
    at ClientRequest.error (/home/runner/work/_actions/peterkimzz/aws-ssm-send-command/master/node_modules/aws-sdk/lib/event_listeners.js:339:22)
    at ClientRequest.<anonymous> (/home/runner/work/_actions/peterkimzz/aws-ssm-send-command/master/node_modules/aws-sdk/lib/http/node.js:96:19)
    at ClientRequest.emit (events.js:210:5)
    at ClientRequest.EventEmitter.emit (domain.js:475:20)
    at TLSSocket.socketErrorListener (_http_client.js:406:9)
    at TLSSocket.emit (events.js:210:5) {
  message: "Inaccessible host: `ssm.us-west-**.amazonaws.com'. This service may not be available in the `us-west-**' region.",
  code: 'UnknownEndpoint',
  region: 'us-west-**',
  hostname: 'ssm.us-west-**.amazonaws.com',
  retryable: true,
  originalError: Error: getaddrinfo ENOTFOUND ssm.us-west-**.amazonaws.com```
jbies121 commented 3 years ago

issue seems to be with the aws-sdk, I'll close this out and raise with them. Cheers!

ljunokas commented 3 years ago

were you able to resolve it?

jarretmoses commented 3 years ago

I am too having this issue. @jbies121 did you get an update?

devupmaster commented 1 year ago

UnknownEndpoint: Inaccessible host: ssm.***.amazonaws.com'. This service may not be available in the***' region.

image

devupmaster commented 1 year ago

endpoints have been modified?