aws

package
v0.61.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const CONCOURSE_HTTPS_PORT = 443
View Source
const CONCOURSE_HTTP_PORT = 80
View Source
const CONCOURSE_SSH_PORT = 22

Variables

This section is empty.

Functions

func AllowIPForEnvironment

func AllowIPForEnvironment(userName *string, environment, profile string, extraPorts config.ExtraPorts, cfg *config.Config) error

AllowIPForEnvironment adds your IP to this environment

func DenyIPForEnvironment

func DenyIPForEnvironment(userName *string, environment, profile string, extraPorts config.ExtraPorts, cfg *config.Config) error

DenyIPForEnvironment removes your IP - and any others for userName - for this environment

Types

type EC2Result

type EC2Result struct {
	Name          string
	Environment   string
	IPAddress     string
	AnsibleGroups []string
	GroupAKA      []string
	InstanceId    string
	LaunchTime    *time.Time
}

EC2Result is the information returned for an individual EC2 instance

func ListEC2

func ListEC2(environment, profile string, cfg *config.Config) ([]EC2Result, error)

ListEC2 returns a list of EC2 instances which match the environment name

func ListEC2ByAnsibleGroup

func ListEC2ByAnsibleGroup(environment, profile string, ansibleGroup string, cfg *config.Config) ([]EC2Result, error)

ListEC2ByAnsibleGroup returns EC2 instances matching ansibleGroup for this env/profile

Jump to

Keyboard shortcuts

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