AMI のhttps://github.com/scarolan/vault-aws-cfを作成するためのパッカー テンプレートを提供するこのガイドに従っています。
問題は、私がパッカーを初めて使用していて、次のエラーが表示されることです。
Build 'amazon-ebs' errored after 5 seconds 898 milliseconds: Couldn't find specified instance profile: NoSuchEntity: Instance Profile Packer-S3-Access cannot be found.
status code: 404, request id: 8c62db59-fdaa-4150-bd43-883415839ce6
==> Wait completed after 5 seconds 898 milliseconds
==> Some builds didn't complete successfully and had errors:
--> amazon-ebs: Couldn't find specified instance profile: NoSuchEntity: Instance Profile Packer-S3-Access cannot be found.
以下を使用してvault.jsonを構築しようとしています:
packer build \ -var 'aws_access_key=<enter-key-here>' \ -var 'aws_secret_key=<enter-key-here>' \ vault.json
packer ビルドにいくつかの引数がありませんか? それとも、関連する AWS 情報を使用して packer テンプレートファイルを編集する必要がありますか?