Documentation ¶
Index ¶
- Variables
- func MakeAvailabilityZonesMap(awsSession *session.Session, t *cfn.Template) error
- func MakeClientSecurityGroup(parameters *Parameters, t *cfn.Template) error
- func MakeHealthCheck(parameters *Parameters, t *cfn.Template) error
- func MakeMapping(parameters *Parameters, t *cfn.Template) error
- func MakeMaster(parameters *Parameters, t *cfn.Template) error
- func MakeMasterLoadBalancer(parameters *Parameters, t *cfn.Template) error
- func MakeTemplate(awsSession *session.Session, parameters *Parameters) (*cfn.Template, error)
- func MakeVPC(parameters *Parameters, t *cfn.Template) error
- type Parameters
- type Policy
- type PolicyDocument
- type Principal
Constants ¶
This section is empty.
Variables ¶
var CfnSignal = `` /* 417-byte string literal not displayed */
CfnSignal is a systemd unit that emits a cloudformation ready signal when etcd-aws.service is running.
var EtcdAwsService = `` /* 375-byte string literal not displayed */
EtcdAwsService is a systemd unit that wraps and runs etcd2
var Regions = []string{
"us-east-1",
"us-west-2",
"us-west-1",
"eu-west-1",
"eu-central-1",
"ap-southeast-1",
"ap-northeast-1",
"ap-southeast-2",
"ap-northeast-2",
"sa-east-1",
}
Functions ¶
func MakeClientSecurityGroup ¶
func MakeClientSecurityGroup(parameters *Parameters, t *cfn.Template) error
MakeClientSecurityGroup creates a security group for clients of the etcd cluster and adds permissions that allow traffic into the cluster from there.
func MakeHealthCheck ¶
func MakeHealthCheck(parameters *Parameters, t *cfn.Template) error
MakeHealthCheck creates CloudWatch alarms that monitor the health of the cluster. Notifications go to the HealthTopic. You should subscribe manually to this topic if you care about the health of the cluster.
func MakeMapping ¶
func MakeMapping(parameters *Parameters, t *cfn.Template) error
func MakeMaster ¶
func MakeMaster(parameters *Parameters, t *cfn.Template) error
MakeMaster creates a cluster of etcd nodes.
func MakeMasterLoadBalancer ¶
func MakeMasterLoadBalancer(parameters *Parameters, t *cfn.Template) error
MakeMasterLoadBalancer creates a load balancer the connects to each master node.
func MakeTemplate ¶
MakeTemplate returns a Cloudformation template for the project infrastructure
Types ¶
type Parameters ¶
type Parameters struct { DnsName string VpcSubnets []cfn.Stringable }
type Policy ¶
type Policy struct { Sid string `json:",omitempty"` Effect string `json:",omitempty"` Principal *Principal `json:",omitempty"` Action *cfn.StringListExpr `json:",omitempty"` Resource *cfn.StringListExpr `json:",omitempty"` ConditionBlock interface{} `json:",omitempty"` }
type PolicyDocument ¶
type Principal ¶
type Principal struct {
Service *cfn.StringListExpr `json:",omitempty"`
}