aws

package
v0.19.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 24 Imported by: 3

Documentation

Index

Constants

View Source
const (
	ControlPlaneSecurityGroupIDKey = "controlPlaneSecurityGroupID"
	WorkerSecurityGroupIDKey       = "workerSecurityGroupID"
	PublicSubnetListKey            = "PublicSubnetList"
	VPCIDKey                       = "VPCID"
)

Variables

View Source
var PreferredInstances = []string{"c5d.large", "m5n.large"}

Functions

func DefaultCredentialsFile added in v0.12.0

func DefaultCredentialsFile() string

DefaultCredentialsFile returns the default credentials file name.

func DefaultProfile added in v0.12.0

func DefaultProfile() string

DefaultProfile returns the default profile name.

func NewCloud

func NewCloud(client awsClient.Interface, infraID, region string, opts ...CloudOption) api.Cloud

NewCloud creates a new api.Cloud instance which can prepare AWS for Submariner to be deployed on it.

func NewCloudFromConfig added in v0.12.0

func NewCloudFromConfig(cfg *aws.Config, infraID, region string, opts ...CloudOption) api.Cloud

NewCloudFromConfig creates a new api.Cloud instance based on an AWS configuration which can prepare AWS for Submariner to be deployed on it.

func NewCloudFromSettings added in v0.12.0

func NewCloudFromSettings(credentialsFile, profile, infraID, region string, opts ...CloudOption) (api.Cloud, error)

NewCloudFromSettings creates a new api.Cloud instance using the given credentials file and profile which can prepare AWS for Submariner to be deployed on it.

func NewOcpGatewayDeployer

func NewOcpGatewayDeployer(cloud api.Cloud, msDeployer ocp.MachineSetDeployer, instanceType string) (api.GatewayDeployer, error)

NewOcpGatewayDeployer returns a GatewayDeployer capable deploying gateways using OCP. If the supplied cloud is not an awsCloud, an error is returned.

Types

type CloudOption added in v0.17.3

type CloudOption func(*awsCloud)

func WithControlPlaneSecurityGroup added in v0.17.3

func WithControlPlaneSecurityGroup(id string) CloudOption

func WithPublicSubnetList added in v0.17.3

func WithPublicSubnetList(id []string) CloudOption

func WithVPCName added in v0.17.3

func WithVPCName(name string) CloudOption

func WithWorkerSecurityGroup added in v0.17.3

func WithWorkerSecurityGroup(id string) CloudOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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