infra

package
v0.0.0-...-a5e26f1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInstance

func CreateInstance(ctx *pulumi.Context, instanceType string) (*types.Infrastructure, error)

CreateInstance creates an ec2 instance in AWS

func CreateSSHKeyPair

func CreateSSHKeyPair(ctx *pulumi.Context) (*types.Infrastructure, error)

CreateSSHKeyPair creates an SSH keypair in AWS

func CreateSecurityGroup

func CreateSecurityGroup(ctx *pulumi.Context) (*types.Infrastructure, error)

CreateSecurityGroup creates a security group in AWS

func Down

func Down(region, instanceType string) error

Down tears down AWS infrastructure

func GetKubeconfig

func GetKubeconfig(region string) error

GetKubeconfig fetches the kubeconfig from the remote host and writes it to working directory on local disk

func InstallK3s

func InstallK3s(region string) error

InstallK3s installs k3s on an ec2 instance via SSH

func Up

func Up(region, instanceType string) error

Up provisions AWS infrastructure

func WaitInstanceReady

func WaitInstanceReady(region string) error

WaitInstanceReady waits for instance health checks to return "passed"

Types

This section is empty.

Jump to

Keyboard shortcuts

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