// Run applies the resource specific configuration.
Run applies the resource specific configuration.
// Run applies the resource specific configuration .
func (r *Resource) Run() error {
	target := r.Config.Target
	targetInfo := TargetInfo{
		Regions:  target.Regions,
		CopyTags: target.CopyTagsAcrossRegions,
		Tags:     awscommon.FormEc2Tags(target.AddExtraTags),
	}
	if err := r.apply(r.Config.SrcAmiInfo, targetInfo); err != nil {
		return err
	}
	return nil
}
func ( r * Resource ) Run ( ) error { target := r . Config . Target targetInfo := TargetInfo { Regions : target . Regions , CopyTags : target . CopyTagsAcrossRegions , Tags : awscommon . FormEc2Tags ( target . AddExtraTags ) , } if err := r . apply ( r . Config . SrcAmiInfo , targetInfo ) ; err != nil { return err } return nil }
Run applies the resource specific configuration.
Run applies the resource specific configuration .