cloudformation

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllersPolicy  = "AWSIAMManagedPolicyControllers"
	ControlPlanePolicy = "AWSIAMManagedPolicyCloudProviderControlPlane"
	NodePolicy         = "AWSIAMManagedPolicyCloudProviderNodes"
)

Variables

View Source
var ManagedIAMPolicyNames = [...]string{ControllersPolicy, ControlPlanePolicy, NodePolicy}

ManagedIAMPolicyNames slice of managed IAM policies

Functions

func BootstrapTemplate

func BootstrapTemplate(accountID string) *cloudformation.Template

BootstrapTemplate is an AWS CloudFormation template to bootstrap IAM policies, users and roles for use by Cluster API Provider AWS

Types

type Service

type Service struct {
	CFN cloudformationiface.CloudFormationAPI
}

Service holds a collection of interfaces. The interfaces are broken down like this to group functions together. One alternative is to have a large list of functions from the ec2 client.

func NewService

NewService returns a new service given the CloudFormation api client.

func (*Service) GenerateManagedIAMPolicyDocuments

func (s *Service) GenerateManagedIAMPolicyDocuments(policyDocDir, accountID string) error

GenerateManagedIAMPolicyDocuments generates JSON representation of policy documents for all ManagedIAMPolicy

func (*Service) ReconcileBootstrapStack

func (s *Service) ReconcileBootstrapStack(stackName string, accountID string) error

ReconcileBootstrapStack creates or updates bootstrap CloudFormation

func (*Service) ShowStackResources

func (s *Service) ShowStackResources(stackName string) error

ShowStackResources prints out in tabular format the resources in the stack

Jump to

Keyboard shortcuts

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