diff --git a/builtin/providers/aws/resource_aws_subnet.go b/builtin/providers/aws/resource_aws_subnet.go index fd7ac2e06..e09fb8bc4 100644 --- a/builtin/providers/aws/resource_aws_subnet.go +++ b/builtin/providers/aws/resource_aws_subnet.go @@ -68,10 +68,10 @@ func resourceAwsSubnetCreate(d *schema.ResourceData, meta interface{}) error { // Get the ID and store it subnet := resp.Subnet d.SetId(*subnet.SubnetID) - log.Printf("[INFO] Subnet ID: %s", subnet.SubnetID) + log.Printf("[INFO] Subnet ID: %s", *subnet.SubnetID) // Wait for the Subnet to become available - log.Printf("[DEBUG] Waiting for subnet (%s) to become available", subnet.SubnetID) + log.Printf("[DEBUG] Waiting for subnet (%s) to become available", *subnet.SubnetID) stateConf := &resource.StateChangeConf{ Pending: []string{"pending"}, Target: "available", diff --git a/builtin/providers/aws/resource_aws_subnet_test.go b/builtin/providers/aws/resource_aws_subnet_test.go index d06b5b31e..77dfeccf0 100644 --- a/builtin/providers/aws/resource_aws_subnet_test.go +++ b/builtin/providers/aws/resource_aws_subnet_test.go @@ -15,11 +15,11 @@ func TestAccAWSSubnet(t *testing.T) { testCheck := func(*terraform.State) error { if *v.CIDRBlock != "10.1.1.0/24" { - return fmt.Errorf("bad cidr: %s", v.CIDRBlock) + return fmt.Errorf("bad cidr: %s", *v.CIDRBlock) } if *v.MapPublicIPOnLaunch != true { - return fmt.Errorf("bad MapPublicIpOnLaunch: %t", v.MapPublicIPOnLaunch) + return fmt.Errorf("bad MapPublicIpOnLaunch: %t", *v.MapPublicIPOnLaunch) } return nil