ec2

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPublicIPsWithTag

func GetPublicIPsWithTag(ctx context.Context, cl *aws_ec2.Client, key string, value string) ([]string, error)

GetPublicIPsWithTags returns the public IP addresses for EC2 instances whose tag named 'key' contains the string 'value'. Instances whose key=value tag match but don't have a public IP address are logged as a warning.

func NewClient

func NewClient(ctx context.Context, uri string) (*aws_ec2.Client, error)

NewClient returns a new `ec2.Client` instance for the authentication configuration derived from 'uri' which is expected to be a URI which can be parsed using the `aaronland/go-aws/v3/auth.NewConfig` method.

Types

This section is empty.

Jump to

Keyboard shortcuts

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