awsar

package module
v0.0.0-...-cfd2a71 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: MIT Imports: 7 Imported by: 0

README

awsar

Just an experiment on abstracting assuming an AWS IAM Role and performing an operation with the AWS Go SDK.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAssumedRole

func WithAssumedRole(
	ctx context.Context,
	sess *session.Session,
	ari *sts.AssumeRoleInput,
	fn func(context.Context, *session.Session) error,
) error

WithAssumedRole assumes an AWS IAM role and performs a function as the assumed role.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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