sts

package
v0.0.0-...-4ed85c4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssumeRoleAndCreateClient

func AssumeRoleAndCreateClient(
	reqLogger logr.Logger,
	awsClientBuilder awsclient.IBuilder,
	currentAcctInstance *awsv1alpha1.Account,
	client client.Client,
	awsSetupClient awsclient.Client,
	region string,
	roleToAssume string,
	ccsRoleID string) (awsclient.Client, *sts.AssumeRoleOutput, error)

func GetSTSCredentials

func GetSTSCredentials(
	reqLogger logr.Logger,
	client awsclient.Client,
	roleArn string,
	externalID string,
	roleSessionName string) (*sts.AssumeRoleOutput, error)

getSTSCredentials returns STS credentials for the specified account ARN

func HandleRoleAssumption

func HandleRoleAssumption(
	reqLogger logr.Logger,
	awsClientBuilder awsclient.IBuilder,
	currentAcctInstance *awsv1alpha1.Account,
	client client.Client,
	awsSetupClient awsclient.Client,
	region string,
	roleToAssume string,
	ccsRoleID string) (awsclient.Client, *sts.AssumeRoleOutput, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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