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__
asked 4 years ago4670 views
1 Answer
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__
answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions