diff --git a/builtin/providers/aws/resource_aws_autoscaling_group.go b/builtin/providers/aws/resource_aws_autoscaling_group.go index 95579eda2..2a285cf18 100644 --- a/builtin/providers/aws/resource_aws_autoscaling_group.go +++ b/builtin/providers/aws/resource_aws_autoscaling_group.go @@ -153,9 +153,7 @@ func resourceAwsAutoscalingGroupCreate(d *schema.ResourceData, meta interface{}) if v, ok := d.GetOk("vpc_zone_identifier"); ok && v.(*schema.Set).Len() > 0 { exp := expandStringList(v.(*schema.Set).List()) - log.Printf("\n\nexp:\n\t%#v\n\n", exp) - el := strings.Join(exp, ",") - autoScalingGroupOpts.VPCZoneIdentifier = aws.String(el) + autoScalingGroupOpts.VPCZoneIdentifier = aws.String(strings.Join(exp, ",")) } if v, ok := d.GetOk("termination_policies"); ok && v.(*schema.Set).Len() > 0 { @@ -185,15 +183,15 @@ func resourceAwsAutoscalingGroupRead(d *schema.ResourceData, meta interface{}) e } d.Set("availability_zones", g.AvailabilityZones) - d.Set("default_cooldown", g.DefaultCooldown) - d.Set("desired_capacity", g.DesiredCapacity) - d.Set("health_check_grace_period", g.HealthCheckGracePeriod) - d.Set("health_check_type", g.HealthCheckType) - d.Set("launch_configuration", g.LaunchConfigurationName) + d.Set("default_cooldown", *g.DefaultCooldown) + d.Set("desired_capacity", *g.DesiredCapacity) + d.Set("health_check_grace_period", *g.HealthCheckGracePeriod) + d.Set("health_check_type", *g.HealthCheckType) + d.Set("launch_configuration", *g.LaunchConfigurationName) d.Set("load_balancers", g.LoadBalancerNames) - d.Set("min_size", g.MinSize) - d.Set("max_size", g.MaxSize) - d.Set("name", g.AutoScalingGroupName) + d.Set("min_size", *g.MinSize) + d.Set("max_size", *g.MaxSize) + d.Set("name", *g.AutoScalingGroupName) d.Set("vpc_zone_identifier", strings.Split(*g.VPCZoneIdentifier, ",")) d.Set("termination_policies", g.TerminationPolicies)