bastion

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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