ec2

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeIngress = "ingress"
	TypeEgress  = "egress"
)
View Source
const (
	ActionAllow = "allow"
	ActionDeny  = "deny"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockDevice

type BlockDevice struct {
	types.Metadata
	Encrypted types.BoolValue
}

type DefaultVPC

type DefaultVPC struct {
	types.Metadata
}

type EC2

type EC2 struct {
	Instances            []Instance
	LaunchConfigurations []LaunchConfiguration
	LaunchTemplates      []LaunchTemplate
	DefaultVPCs          []DefaultVPC
	SecurityGroups       []SecurityGroup
	NetworkACLs          []NetworkACL
	Volumes              []Volume
}

type Encryption

type Encryption struct {
	types.Metadata
	Enabled  types.BoolValue
	KMSKeyID types.StringValue
}

type Instance

type Instance struct {
	types.Metadata
	MetadataOptions MetadataOptions
	UserData        types.StringValue
	SecurityGroups  []SecurityGroup
	RootBlockDevice *BlockDevice
	EBSBlockDevices []*BlockDevice
}

func NewInstance

func NewInstance(metadata types.Metadata) Instance

func (*Instance) HasHTTPEndpointDisabled

func (i *Instance) HasHTTPEndpointDisabled() bool

func (*Instance) HasSensitiveInformationInUserData

func (i *Instance) HasSensitiveInformationInUserData() bool

func (*Instance) RequiresIMDSToken

func (i *Instance) RequiresIMDSToken() bool

type LaunchConfiguration

type LaunchConfiguration struct {
	types.Metadata
	Name              types.StringValue
	AssociatePublicIP types.BoolValue
	RootBlockDevice   *BlockDevice
	EBSBlockDevices   []*BlockDevice
	MetadataOptions   MetadataOptions
	UserData          types.StringValue
}

func (*LaunchConfiguration) HasHTTPEndpointDisabled

func (i *LaunchConfiguration) HasHTTPEndpointDisabled() bool

func (*LaunchConfiguration) RequiresIMDSToken

func (i *LaunchConfiguration) RequiresIMDSToken() bool

type LaunchTemplate

type LaunchTemplate struct {
	types.Metadata
	Instance
}

type MetadataOptions

type MetadataOptions struct {
	types.Metadata
	HttpTokens   types.StringValue
	HttpEndpoint types.StringValue
}

type NetworkACL

type NetworkACL struct {
	types.Metadata
	Rules         []NetworkACLRule
	IsDefaultRule types.BoolValue
}

type NetworkACLRule

type NetworkACLRule struct {
	types.Metadata
	Type     types.StringValue
	Action   types.StringValue
	Protocol types.StringValue
	CIDRs    []types.StringValue
}

type SecurityGroup

type SecurityGroup struct {
	types.Metadata
	Description  types.StringValue
	IngressRules []SecurityGroupRule
	EgressRules  []SecurityGroupRule
}

type SecurityGroupRule

type SecurityGroupRule struct {
	types.Metadata
	Description types.StringValue
	CIDRs       []types.StringValue
}

type Volume

type Volume struct {
	types.Metadata
	Encryption Encryption
}

Jump to

Keyboard shortcuts

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