aws

package
v0.0.0-...-cb92a45 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Module: CAFI Package: AWS Description: Accounts structure and functions to read and parse account configuration json file.

Module: CAFI Package: AWS Description: AWS Provider for the CAFI Module. This package provides support for the AWS cloud platform and is used to assume roles into AWS accounts and provide a mechanism to execute functions against those accounts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(filepath string) error

Configure the CASTS SDK

func ExecuteOnAccounts

func ExecuteOnAccounts(accounts *[]string, f func(input *Input, out Output), out Output)

Execute function logic on multiple accounts

Types

type Account

type Account struct {
	AccountNumber    string   `json:"account_number"`
	AccountName      string   `json:"account_name"`
	SupportedRegions []string `json:"supported_regions"`
	ProfileName      string   `json:"profile_name"`
	ProfileRegion    string   `json:"profile_region"`
	STSExternalId    *string  `json:"sts_external_id"`
	STSRoleArn       string   `json:"sts_role_arn"`
}

type Accounts

type Accounts struct {
	Accounts []Account `json:"accounts"`
}

type Input

type Input struct {
	Config  *aws.Config
	Account *Account
}

Input for the function passed to the execute methods

type Output

type Output interface{}

Generic interface to allow for any struct to be passed into the supported functions

type STSClient

type STSClient struct {
	Service *sts.Client
	Config  *aws.Config
	Session string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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