Documentation ¶
Index ¶
- func InstallECRCredentialsHelper(e aws.Environment, vm *remote.Host) (*goremote.Command, error)
- func NewVM(e aws.Environment, name string, params ...VMOption) (*remote.Host, error)
- func VMRun(ctx *pulumi.Context) error
- func VMRunWithDocker(ctx *pulumi.Context) error
- type VMOption
- func WithAMI(ami string, osDesc os.Descriptor, arch os.Architecture) VMOption
- func WithIMDSv1Disable() VMOption
- func WithInstanceProfile(instanceProfile string) VMOption
- func WithInstanceType(instanceType string) VMOption
- func WithOS(osDesc os.Descriptor) VMOption
- func WithOSArch(osDesc os.Descriptor, arch os.Architecture) VMOption
- func WithUserData(userData string) VMOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewVM ¶
NewVM creates an EC2 Instance and returns a Remote component. Without any parameter it creates an Ubuntu VM on AMD64 architecture.
func VMRunWithDocker ¶
Types ¶
type VMOption ¶
type VMOption = func(*vmArgs) error
func WithAMI ¶
func WithAMI(ami string, osDesc os.Descriptor, arch os.Architecture) VMOption
WithAMI sets the AMI directly, skipping resolve process. `supportedOS` and `arch` must match the AMI requirements.
func WithIMDSv1Disable ¶
func WithIMDSv1Disable() VMOption
func WithInstanceProfile ¶
func WithInstanceType ¶
WithInstanceType set the instance type
func WithOS ¶
func WithOS(osDesc os.Descriptor) VMOption
WithOS sets the OS Architecture defaults to os.AMD64Arch Version defaults to latest
func WithOSArch ¶
func WithOSArch(osDesc os.Descriptor, arch os.Architecture) VMOption
WithArch set the architecture and the operating system. Version defaults to latest
func WithUserData ¶
WithUserData set the userdata for the instance. User data contains commands that are run at the startup of the instance.
Click to show internal directories.
Click to hide internal directories.