aws

package
v1.3.3-0...-f31c912 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DatabaseAccessPolicyName is the policy name for database access.
	DatabaseAccessPolicyName = "DatabaseAccess"
)
View Source
const EC2DiscoveryPolicyName = "TeleportEC2Discovery"

Variables

This section is empty.

Functions

func EC2DiscoverySSMDocument

func EC2DiscoverySSMDocument(proxy string) string

func NewAWSConfigurator

func NewAWSConfigurator(config ConfiguratorConfig) (configurators.Configurator, error)

NewAWSConfigurator creates an instance of awsConfigurator and builds its actions.

Types

type ConfiguratorConfig

type ConfiguratorConfig struct {
	// Flags user-provided flags to configure/execute the configurator.
	Flags configurators.BootstrapFlags
	// ServiceConfig Teleport database service config.
	ServiceConfig *servicecfg.Config
	// AWSSession current AWS session.
	AWSSession *awssession.Session
	// AWSSTSClient AWS STS client.
	AWSSTSClient stsiface.STSAPI
	// AWSIAMClient AWS IAM client.
	AWSIAMClient iamiface.IAMAPI
	// AWSSSMClient is a mapping of region -> ssm client
	AWSSSMClients map[string]ssmiface.SSMAPI
	// Policies instance of the `Policies` that the actions use.
	Policies awslib.Policies
	// Identity is the current AWS credentials chain identity.
	Identity awslib.Identity
}

func (*ConfiguratorConfig) CheckAndSetDefaults

func (c *ConfiguratorConfig) CheckAndSetDefaults() error

CheckAndSetDefaults checks and set configuration default values.

Jump to

Keyboard shortcuts

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