utils

package
v0.1.34 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AwsAccountIdFromConfig added in v0.1.3

func AwsAccountIdFromConfig(
	ctx context.Context,
	cfg aws.Config,
	timeout time.Duration,
) (string, error)

AwsAccountIdFromConfig returns the aws account id given an aws config. It makes a call to AWS Session Token Service's (STS) "GetCallerIdentity" API endpoint -- which does not require any IAM permissions to call.

Types

This section is empty.

Jump to

Keyboard shortcuts

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