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 ¶
func NewService(i cloudformationiface.CloudFormationAPI) *Service
NewService returns a new service given the CloudFormation api client.
func (*Service) GenerateManagedIAMPolicyDocuments ¶
GenerateManagedIAMPolicyDocuments generates JSON representation of policy documents for all ManagedIAMPolicy
func (*Service) ReconcileBootstrapStack ¶
ReconcileBootstrapStack creates or updates bootstrap CloudFormation
func (*Service) ShowStackResources ¶
ShowStackResources prints out in tabular format the resources in the stack
Click to show internal directories.
Click to hide internal directories.