Documentation
¶
Index ¶
- func CheckSubnetNetworkAccess(subnetID string) (bool, bool, error)
- func GetAccountId() string
- func GetAvailableKeyPairs() ([]*ec2.KeyPairInfo, error)
- func GetInstanceTags(instanceID string) (map[string]string, error)
- func GetSession(c *SessionConfig) (*session.Session, error)
- func GetSubnetsWithSSM() ([]*ec2.Subnet, error)
- func GetTestSession(c *SessionConfig) (*session.Session, error)
- func GetVPCIDFromSubnet(subnetID string) (string, error)
- func InferPortByHost(host string) (int, error)
- func InitAWSClients(app *config.Atun)
- func ListInstancesWithTags(tags map[string]string) ([]*ec2.Instance, error)
- func NewEC2Client(awsConfig aws.Config) (*ec2.EC2, error)
- func NewRDSClient(awsConfig aws.Config) (*rds.RDS, error)
- func NewSTSClient(awsConfig aws.Config) (*sts.STS, error)
- func SendSSHPublicKey(instanceID string, publicKey string, bastionHostUser string) error
- func WaitForInstanceReady(instanceID string) error
- type SessionConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSubnetNetworkAccess ¶
CheckSubnetNetworkAccess checks if the subnet has network access by checking routes
func GetAccountId ¶
func GetAccountId() string
func GetAvailableKeyPairs ¶
func GetAvailableKeyPairs() ([]*ec2.KeyPairInfo, error)
GetAvailableKeyPairs returns a list of available key pairs in AWS Account
func GetSession ¶
func GetSession(c *SessionConfig) (*session.Session, error)
func GetSubnetsWithSSM ¶
func GetTestSession ¶
func GetTestSession(c *SessionConfig) (*session.Session, error)
func GetVPCIDFromSubnet ¶
GetVPCIDFromSubnet returns the VPC ID for a given subnet ID
func InferPortByHost ¶
InferPortByHost finds the remote port of a service (RDS, ElastiCache, OpenSearch) by matching its endpoint hostname.
func InitAWSClients ¶
func ListInstancesWithTags ¶
ListInstancesWithTag returns a list of EC2 instances with a specific tag
func SendSSHPublicKey ¶
func WaitForInstanceReady ¶
Types ¶
type SessionConfig ¶
Click to show internal directories.
Click to hide internal directories.