Documentation ¶
Index ¶
- Constants
- Variables
- func BootstrapTemplate(accountID, partition string, ...) *cloudformation.Template
- type Service
- func (s *Service) DeleteStack(stackName string) error
- func (s *Service) GenerateManagedIAMPolicyDocuments(policyDocDir, accountID, partition string) error
- func (s *Service) ReconcileBootstrapStack(stackName, accountID, partition string, ...) error
- func (s *Service) ShowStackResources(stackName string) error
Constants ¶
const ( ControllersPolicy = "AWSIAMManagedPolicyControllers" ControlPlanePolicy = "AWSIAMManagedPolicyCloudProviderControlPlane" NodePolicy = "AWSIAMManagedPolicyCloudProviderNodes" )
Variables ¶
var ManagedIAMPolicyNames = [...]string{ControllersPolicy, ControlPlanePolicy, NodePolicy}
ManagedIAMPolicyNames slice of managed IAM policies
Functions ¶
func BootstrapTemplate ¶
func BootstrapTemplate(accountID, partition string, extraControlPlanePolicies, extraNodePolicies []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 ¶
func NewService(i cloudformationiface.CloudFormationAPI) *Service
NewService returns a new service given the CloudFormation api client.
func (*Service) DeleteStack ¶ added in v0.4.5
DeleteStack deletes a cloudformation stack
func (*Service) GenerateManagedIAMPolicyDocuments ¶
func (s *Service) GenerateManagedIAMPolicyDocuments(policyDocDir, accountID, partition string) error
GenerateManagedIAMPolicyDocuments generates JSON representation of policy documents for all ManagedIAMPolicy
func (*Service) ReconcileBootstrapStack ¶
func (s *Service) ReconcileBootstrapStack(stackName, accountID, partition string, extraControlPlanePolicies, extraNodePolicies []string) error
ReconcileBootstrapStack creates or updates bootstrap CloudFormation
func (*Service) ShowStackResources ¶
ShowStackResources prints out in tabular format the resources in the stack