跳到正文
本页尚未翻译成中文,以下为英文原文。 查看英文版

Amazon Data Sources ​

The Amazon plugin is able to fetch data from AWS. To achieve this, the plugin comes with data sources to retrieve AMI and secrets information. Packer supports the following data sources at the moment:

  • amazon-ami - Filter and fetch an Amazon AMI to output all the AMI information.

  • amazon-secretsmanager - Retrieve information about a Secrets Manager secret version, including its secret value.

How to use this plugin ​

From Packer v1.7.0, copy and paste this code into your Packer configuration to install this plugin. Then, run packer init.

hcl
packer {
  required_plugins {
    amazon = {
      version = ">= 0.0.1"
      source = "github.com/hashicorp/amazon"
    }
  }
}

基于 MPL-2.0 许可证发布。