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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠