@@ -4,15 +4,11 @@ import (
44 "os"
55
66 "github.com/hashicorp/terraform/helper/schema"
7+ "github.com/hashicorp/terraform/terraform"
78)
89
9- // Provider returns a schema.Provider for AWS.
10- //
11- // NOTE: schema.Provider became available long after the AWS provider
12- // was started, so resources may not be converted to this new structure
13- // yet. This is a WIP. To assist with the migration, make sure any resources
14- // you migrate are acceptance tested, then perform the migration.
15- func Provider () * schema.Provider {
10+ // Provider returns a terraform.ResourceProvider.
11+ func Provider () terraform.ResourceProvider {
1612 // TODO: Move the validation to this, requires conditional schemas
1713 // TODO: Move the configuration to this, requires validation
1814
@@ -42,10 +38,10 @@ func Provider() *schema.Provider {
4238 },
4339
4440 ResourcesMap : map [string ]* schema.Resource {
45- "aws_autoscaling_group" : resourceAwsAutoscalingGroup (),
46- // "aws_db_instance": resourceAwsDbInstance(),
47- "aws_db_parameter_group" : resourceAwsDbParameterGroup (),
48- // "aws_db_security_group": resourceAwsDbSecurityGroup(),
41+ "aws_autoscaling_group" : resourceAwsAutoscalingGroup (),
42+ "aws_db_instance" : resourceAwsDbInstance (),
43+ "aws_db_parameter_group" : resourceAwsDbParameterGroup (),
44+ "aws_db_security_group" : resourceAwsDbSecurityGroup (),
4945 "aws_db_subnet_group" : resourceAwsDbSubnetGroup (),
5046 "aws_eip" : resourceAwsEip (),
5147 "aws_elb" : resourceAwsElb (),
0 commit comments