aws

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 14 Imported by: 0

README


title: AWS description: AWS Provider for Carbon weight: 20

The AWS provider uses AWS profiles as Platforms, VPCs as Environments, and EC2 instances as VMs. It will read your AWS config and return all of your profiles as platforms. Carbon does not use the AWS CLI directly, it is recommended to have it setup and configured especially if using SSO. Carbon will treat VPCs as environments.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() types.Provider

Types

type Environment added in v0.4.0

type Environment struct {
	// contains filtered or unexported fields
}

func (*Environment) CreateVM added in v0.4.0

func (e *Environment) CreateVM(options types.MachineLaunchOptions) error

func (*Environment) DestroyImage added in v0.4.0

func (e *Environment) DestroyImage(imageID string) error

func (*Environment) DestroyVM added in v0.4.0

func (e *Environment) DestroyVM(id string) error

func (*Environment) ImageBuilds added in v0.4.0

func (e *Environment) ImageBuilds() ([]types.ImageBuild, error)

func (*Environment) Images added in v0.4.0

func (e *Environment) Images() ([]types.Image, error)

func (*Environment) Name added in v0.4.0

func (e *Environment) Name() string

func (*Environment) Profile added in v0.4.0

func (e *Environment) Profile() types.Profile

func (*Environment) RestartVM added in v0.4.0

func (e *Environment) RestartVM(id string) error

func (*Environment) StartVM added in v0.4.0

func (e *Environment) StartVM(id string) error

func (*Environment) StopVM added in v0.4.0

func (e *Environment) StopVM(id string) error

func (*Environment) VMs added in v0.4.0

func (e *Environment) VMs() []types.VM

type Profile added in v0.4.0

type Profile struct {
	types.Profile
}

func NewProfile added in v0.3.0

func NewProfile(name string, providerInstance *Provider, config common.ProfileConfig) *Profile

func (*Profile) Environments added in v0.4.0

func (p *Profile) Environments() []types.Environment

type Provider added in v0.4.0

type Provider struct {
	types.Provider
	// contains filtered or unexported fields
}

func (*Provider) AWSProfiles added in v0.4.0

func (p *Provider) AWSProfiles() []string

func (*Provider) IsAvailable added in v0.4.0

func (p *Provider) IsAvailable() bool

func (*Provider) Profiles added in v0.4.0

func (p *Provider) Profiles() []types.Profile

Jump to

Keyboard shortcuts

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