Inaccessible host: `states.eu_west_1.amazonaws.com'.

0

Hi,
I'm trying to start a step function in Lambda in a VPC through a VPC endpoint with Node.js by giving an ARN (as https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/StepFunctions.html#startExecution-property). I get an error message:

Inaccessible host: states.eu_west_1.amazonaws.com'. This service may not be available in the eu_west_1' region.

For some reason it uses underscores in the address. If I look for the hostname in a EC2 instance, it exists with dashes:

~$ nslookup states.eu_west_1.amazonaws.com
Server: 127.0.0.53
Address: 127.0.0.53#53

** server can't find states.eu_west_1.amazonaws.com: NXDOMAIN

~$ nslookup states.eu-west-1.amazonaws.com
Server: 127.0.0.53
Address: 127.0.0.53#53

Non-authoritative answer:
Name: states.eu-west-1.amazonaws.com
Address: 10.0.3.98
Name: states.eu-west-1.amazonaws.com
Address: 10.0.1.27

There is no such hostname in my VPC. Help?

J_N__
posta 4 anni fa4706 visualizzazioni
1 Risposta
0

My bad, I had accidentally marked the region:

const stepFunctions = new AWS.StepFunctions({
region: 'eu_west_1'
});

Changing the region to 'eu-west-1' solved the problem. 

J_N__
con risposta 4 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande