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 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.
Click to show internal directories.
Click to hide internal directories.