Exemple #1
0
func (e *Keypair) Run(c *fi.Context) error {
	err := e.normalize(c)
	if err != nil {
		return err
	}
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #2
0
func (e *LaunchConfiguration) Run(c *fi.Context) error {
	blockDeviceMappings, err := addEphemeralDevices(e.InstanceType, e.BlockDeviceMappings)
	if err != nil {
		return err
	}
	e.BlockDeviceMappings = blockDeviceMappings

	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #3
0
func (e *SSHKey) Run(c *fi.Context) error {
	if e.KeyFingerprint == nil && e.PublicKey != nil {
		keyFingerprint, err := computeAwsKeyFingerprint(e.PublicKey)
		if err != nil {
			return fmt.Errorf("error computing key fingerpring for SSH key: %v", err)
		}
		glog.V(2).Infof("Computed SSH key fingerprint as %q", keyFingerprint)
		e.KeyFingerprint = &keyFingerprint
	}
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #4
0
func (e *Instance) Run(c *fi.Context) error {
	c.Cloud.(*awsup.AWSCloud).AddTags(e.Name, e.Tags)

	blockDeviceMappings, err := addEphemeralDevices(e.InstanceType, e.BlockDeviceMappings)
	if err != nil {
		return err
	}
	e.BlockDeviceMappings = blockDeviceMappings

	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #5
0
func (e *InstanceTemplate) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #6
0
func (e *RouteTable) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
func (e *LoadBalancerHealthChecks) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #8
0
func (e *SecurityGroupRule) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
func (e *VPCDHCPOptionsAssociation) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #10
0
func (e *DHCPOptions) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #11
0
func (e *DNSName) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #12
0
func (e *EBSVolume) Run(c *fi.Context) error {
	c.Cloud.(*awsup.AWSCloud).AddTags(e.Name, e.Tags)
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #13
0
func (e *PersistentDisk) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #14
0
func (e *FirewallRule) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #15
0
func (e *ManagedInstanceGroup) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #16
0
func (e *Network) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #17
0
func (e *ElasticIP) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
func (e *InstanceVolumeAttachment) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #19
0
func (e *IPAddress) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #20
0
func (e *IAMRolePolicy) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #21
0
func (e *UpdatePackages) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
func (e *IAMInstanceProfileRole) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #23
0
func (e *Subnet) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #24
0
func (e *AutoscalingGroup) Run(c *fi.Context) error {
	c.Cloud.(*awsup.AWSCloud).AddTags(e.Name, e.Tags)
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #25
0
func (e *InternetGateway) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #26
0
func (e *MountDiskTask) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
Exemple #27
0
func (e *UserTask) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}
func (e *LoadBalancerAttachment) Run(c *fi.Context) error {
	return fi.DefaultDeltaRunMethod(e, c)
}