providers/aws: ABC, Its as Easy as 123

https://www.youtube.com/watch?v=I8GvDLDYhNM&feature=kp
This commit is contained in:
Mitchell Hashimoto 2014-07-07 11:25:54 -07:00
parent 553e0a5d9a
commit 20198cb7aa
1 changed files with 7 additions and 6 deletions

View File

@ -11,12 +11,6 @@ var resourceMap *resource.Map
func init() {
resourceMap = &resource.Map{
Mapping: map[string]resource.Resource{
"aws_instance": resource.Resource{
Create: resource_aws_instance_create,
Destroy: resource_aws_instance_destroy,
Diff: resource_aws_instance_diff,
Refresh: resource_aws_instance_refresh,
},
"aws_elb": resource.Resource{
Create: resource_aws_elb_create,
Update: resource_aws_elb_update,
@ -24,6 +18,13 @@ func init() {
Diff: resource_aws_elb_diff,
Refresh: resource_aws_elb_refresh,
},
"aws_instance": resource.Resource{
Create: resource_aws_instance_create,
Destroy: resource_aws_instance_destroy,
Diff: resource_aws_instance_diff,
Refresh: resource_aws_instance_refresh,
},
},
}
}