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__
preguntada hace 4 años4706 visualizaciones
1 Respuesta
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__
respondido hace 4 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas