Categorygithub.com/prasannakumarik25/https-github.com-mavrick202-terraformsingleinstancebuilderamazonchroot
package
0.12.3
Repository: https://github.com/prasannakumarik25/https-github.com-mavrick202-terraformsingleinstance.git
Documentation: pkg.go.dev
# Functions
AvailableDevice finds an available device and returns it.
No description provided by the author
ShellCommand takes a command string and returns an *exec.Cmd to execute it within the context of a shell (/bin/sh).
# Structs
No description provided by the author
Communicator is a special communicator that works by executing commands locally but within a chroot.
Config is the configuration that is chained through the steps and settable from the template.
StepAttachVolume attaches the previously created volume to an available device location.
StepCheckRootDevice makes sure the root device on the AMI is EBS-backed.
StepChrootProvision provisions the instance within a chroot.
StepCopyFiles copies some files from the host into the chroot environment.
StepCreateVolume creates a new volume from the snapshot of the root device of the AMI.
StepEarlyCleanup performs some of the cleanup steps early in order to prepare for snapshotting and creating an AMI.
StepEarlyUnflock unlocks the flock.
StepFlock provisions the instance within a chroot.
StepInstanceInfo verifies that this builder is running on an EC2 instance.
StepMountDevice mounts the attached device.
StepMountExtra mounts the attached device.
StepPostMountCommands allows running arbitrary commands after mounting the device, but prior to the bind mount and copy steps.
StepPreMountCommands sets up the a new block device when building from scratch.
StepPrepareDevice finds an available device and sets it.
StepRegisterAMI creates the AMI.
StepSnapshot creates a snapshot of the created volume.
# Interfaces
Cleanup is an interface that some steps implement for early cleanup.
# Type aliases
CommandWrapper is a type that given a command, will possibly modify that command in-flight.