bastion

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Outputs
	OutputBastionUserPrivateKey = "bastion_id_rsa"
	OutputBastionUsername       = "bastion_username"
	OutputBastionHost           = "bastion_host"
)

Variables

This section is empty.

Functions

func WriteOutputs

func WriteOutputs(stackResult auto.UpResult,
	prefix string,
	destinationFolder string) error

Write exported values in context to files o a selected target folder

Types

type Bastion

type Bastion struct {
	Instance   *ec2.Instance
	PrivateKey *tls.PrivateKey
	Usarname   string
	Port       int
}

type BastionRequest

type BastionRequest struct {
	Prefix string
	VPC    *ec2.Vpc
	Subnet *ec2.Subnet
	// Custon key for the outputs
	// in case we want to create a stack with 2 bastions
	// we need to use diff keys for outputs which should be controlled
	// outside
	OutputKeyPrivateKey string
	OutputKeyHost       string
	OutputKeyUsername   string
}

func (*BastionRequest) Create

func (r *BastionRequest) Create(ctx *pulumi.Context) (*Bastion, error)

This module allows to create a bastion host It will export to context, based on keys from request: * private key * username * host It will also return the required refs to resources as BastionsResources to allow orchestrated within the wrapping stack

Jump to

Keyboard shortcuts

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