aws

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name of this builder provider
	Name                             = "aws"
	VpcID                     string = "vpc-id"
	SubnetID                  string = "subnet-id"
	InternetGwID              string = "internet-gateway-id"
	InternetGatewayAttachment string = "internet-gateway-attachment-vpc-id"
	RouteTable                string = "route-table-id"
	SecurityGroupID           string = "security-group-id"
	InstanceID                string = "instance-id"
	PublicDnsName             string = "public-dns-name"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

type AWS struct {
	Vpcid                     string
	Subnetid                  string
	InternetGwid              string
	InternetGatewayAttachment string
	RouteTable                string
	SecurityGroupid           string
	Instanceid                string
	PublicDnsName             string
}

type ByCreationDate added in v0.2.0

type ByCreationDate []ImageInfo

func (ByCreationDate) Len added in v0.2.0

func (a ByCreationDate) Len() int

func (ByCreationDate) Less added in v0.2.0

func (a ByCreationDate) Less(i, j int) bool

func (ByCreationDate) Swap added in v0.2.0

func (a ByCreationDate) Swap(i, j int)

type ImageInfo added in v0.2.0

type ImageInfo struct {
	ImageID      string
	CreationDate string
}

type Provider added in v0.2.0

type Provider struct {
	Tags []types.Tag

	*v1alpha1.Environment
	// contains filtered or unexported fields
}

func New

func New(log *logger.FunLogger, env v1alpha1.Environment, cacheFile string) (*Provider, error)

func (*Provider) Create added in v0.2.0

func (p *Provider) Create() error

Create creates an EC2 instance with proper Network configuration VPC, Subnet, Internet Gateway, Route Table, Security Group

func (*Provider) Delete added in v0.2.0

func (p *Provider) Delete() error

Delete deletes the EC2 instance and all associated resources

func (*Provider) DryRun added in v0.2.0

func (p *Provider) DryRun() error

func (*Provider) Name added in v0.2.0

func (p *Provider) Name() string

Name returns the name of the builder provisioner

func (*Provider) Status added in v0.2.4

func (p *Provider) Status() (string, error)

func (*Provider) UpdateResourcesTags added in v0.2.0

func (p *Provider) UpdateResourcesTags(tags map[string]string, resources ...string) error

Update updates an AWS resources tags

Jump to

Keyboard shortcuts

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