diff --git a/aws/resource_aws_elastic_transcoder_pipeline.go b/aws/resource_aws_elastic_transcoder_pipeline.go index 60dee0dd2f94..69c22a2c1ebd 100644 --- a/aws/resource_aws_elastic_transcoder_pipeline.go +++ b/aws/resource_aws_elastic_transcoder_pipeline.go @@ -424,10 +424,10 @@ func resourceAwsElasticTranscoderPipelineRead(d *schema.ResourceData, meta inter pipeline := resp.Pipeline - d.Set("arn", *pipeline.Arn) + d.Set("arn", pipeline.Arn) if arn := pipeline.AwsKmsKeyArn; arn != nil { - d.Set("aws_kms_key_arn", *arn) + d.Set("aws_kms_key_arn", arn) } if pipeline.ContentConfig != nil { @@ -444,8 +444,8 @@ func resourceAwsElasticTranscoderPipelineRead(d *schema.ResourceData, meta inter } } - d.Set("input_bucket", *pipeline.InputBucket) - d.Set("name", *pipeline.Name) + d.Set("input_bucket", pipeline.InputBucket) + d.Set("name", pipeline.Name) notifications := flattenETNotifications(pipeline.Notifications) if notifications != nil { @@ -454,7 +454,7 @@ func resourceAwsElasticTranscoderPipelineRead(d *schema.ResourceData, meta inter } } - d.Set("role", *pipeline.Role) + d.Set("role", pipeline.Role) if pipeline.ThumbnailConfig != nil { err := d.Set("thumbnail_config", flattenETPipelineOutputConfig(pipeline.ThumbnailConfig)) @@ -471,7 +471,7 @@ func resourceAwsElasticTranscoderPipelineRead(d *schema.ResourceData, meta inter } if pipeline.OutputBucket != nil { - d.Set("output_bucket", *pipeline.OutputBucket) + d.Set("output_bucket", pipeline.OutputBucket) } return nil diff --git a/aws/resource_aws_elastic_transcoder_preset.go b/aws/resource_aws_elastic_transcoder_preset.go index 1815ec6d4472..22f3c2ef02ba 100644 --- a/aws/resource_aws_elastic_transcoder_preset.go +++ b/aws/resource_aws_elastic_transcoder_preset.go @@ -349,7 +349,7 @@ func resourceAwsElasticTranscoderPresetCreate(d *schema.ResourceData, meta inter } d.SetId(*resp.Preset.Id) - d.Set("arn", *resp.Preset.Arn) + d.Set("arn", resp.Preset.Arn) return nil } @@ -488,7 +488,7 @@ func resourceAwsElasticTranscoderPresetRead(d *schema.ResourceData, meta interfa log.Printf("[DEBUG] Elastic Transcoder Preset Read response: %#v", resp) preset := resp.Preset - d.Set("arn", *preset.Arn) + d.Set("arn", preset.Arn) if preset.Audio != nil { err := d.Set("audio", flattenETAudioParameters(preset.Audio)) @@ -501,9 +501,9 @@ func resourceAwsElasticTranscoderPresetRead(d *schema.ResourceData, meta interfa } } - d.Set("container", *preset.Container) - d.Set("name", *preset.Name) - d.Set("description", *preset.Description) + d.Set("container", preset.Container) + d.Set("name", preset.Name) + d.Set("description", preset.Description) if preset.Thumbnails != nil { err := d.Set("thumbnails", flattenETThumbnails(preset.Thumbnails)) @@ -512,7 +512,7 @@ func resourceAwsElasticTranscoderPresetRead(d *schema.ResourceData, meta interfa } } - d.Set("type", *preset.Type) + d.Set("type", preset.Type) if preset.Video != nil { err := d.Set("video", flattenETVideoParams(preset.Video))