Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteOrgFile ¶
func WriteOrgFile(filepath, masterAccountID string, accounts []*organizations.Account) error
Types ¶
type Account ¶
type Account struct { Email string `yaml:"Email"` AccountName string `yaml:"AccountName"` State string `yaml:"State,omitempty"` AccountID string `yaml:"AccountID,omitempty"` AssumeRoleName string `yaml:"AssumeRoleName,omitempty"` Tags []string `yaml:"Tags,omitempty"` }
func (Account) AssumeRoleARN ¶
type Organization ¶
type Organization struct { ManagementAccount Account `yaml:"ManagementAccount"` ChildAccounts []Account `yaml:"ChildAccounts"` }
func ParseOrganization ¶
func ParseOrganization(filepath string) (Organization, error)
We parse it and assume that the file is in the current directory
func ParseOrganizationIfExists ¶
func ParseOrganizationIfExists(filepath string) (Organization, error)
Click to show internal directories.
Click to hide internal directories.