packer-plugin-register-ami

command module
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2022 License: GPL-3.0 Imports: 24 Imported by: 0

README

packer-plugin-register-ami

Description

  • Packer post-processor plugin for saving AMI ID to AWS Systems Manager Parameter Store.

GPG for Github Action

Create Passphrase, this can generated, but keep it on hand, used to create GPG key and export

# macOS
gpg --gen-key
gpg --armor --export-secret-key <email> | pbcopy

# Ubuntu (assuming GNU base64)
gpg --gen-key
gpg --armor --export-secret-key <email> | xclip

In Github, Create secrets

  • Copy Passphase into GPG_PASSPHRASE
  • Copy Private Key from export into GPG_PRIVATE_KEY

Installation

packer {
  required_plugins {
    register-ami = {
      version = ">= <latest>"
      source = "github.com/exzeo/register-ami"
    }
  }
}

Usage

The following example is a template for registering an AMI ID with a given Parameter Store.

build {
  # ... build image
  post-processor "register-ami" {
    name = "/aws/test/ami"
  }
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL