LoginSignup
0

More than 5 years have passed since last update.

EC2 インスタンスに対して kitchen converge しようとしたら The key pair **** does not exist エラー

Posted at

問題の事象

$ bundle exec kitchen converge foo-bar
-----> Starting Kitchen (v1.3.1)
-----> Creating <foo-bar>...
       Creating <>...
       If you are not using an account that qualifies under the AWS
       free-tier, you may be charged to run these suites. The charge
       should be minimal, but neither Test Kitchen nor its maintainers
       are responsible for your incurred costs.
>>>>>> Create failed on instance <foo-bar>.
>>>>>> Please see .kitchen/logs/foo-bar.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: The key pair 'negito6' does not exist

解決

キーペアの Region 間違えてた。

キーペアの作り方: http://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/ec2-key-pairs.html (リージョン選べってちゃんと書いてある)

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0