Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvironmentVars ¶
Types ¶
type AMISelection ¶
type Account ¶
type Account struct { ID string `yaml:"id"` Alias string `yaml:"alias"` AssumeRole string `yaml:"assume-role"` Regions []string `yaml:"regions,omitempty"` AMIs map[string]AMISelection `yaml:"amis,omitempty"` }
func (*Account) GenerateRoleARN ¶
func (account *Account) GenerateRoleARN()
role ARN format: arn:aws:iam::account-id:role/role-name
type Config ¶
type Config struct { SourceAccount Account `yaml:"source-account"` TargetAccounts []Account `yaml:"target-accounts"` // contains filtered or unexported fields }
func LoadConfig ¶
func (*Config) CreateRoleARNs ¶
func (config *Config) CreateRoleARNs()
func (*Config) ScanRegions ¶
type Filter ¶
type Images ¶
type Images []Image
For sorting images images must be sortable (by date) for determining most recent
func ApplyFilters ¶
Given a list of images apply a set of filters and pick the latest image
type ShareParams ¶
type ShareParams struct {}
Click to show internal directories.
Click to hide internal directories.