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__
已提问 4 年前4706 查看次数
1 回答
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__
已回答 4 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则