Could not find operation StartInstances for version 2016-11-15

0

I'm trying start instance remotely in code, because all I need are two apis StartInstances and StopInstances so don't really want to install the sdk.

So I followed the example here: https://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html#sig-v4-examples-post

replaced with my own credentials and the parameters listed here: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_StartInstances.html

but i'm still getting this error: Could not find operation StartInstances for version 2016-11-15

Any idea why it's throwing this error?

質問済み 1年前440ビュー
1回答
0
承認された回答

got it work. wrong endpoint, it should be ec2.us-west-1.amazonaws.com

回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ