diff --git a/aws/import_aws_s3_bucket_notification_test.go b/aws/import_aws_s3_bucket_notification_test.go index 9ab574fefff..4872c7ce524 100644 --- a/aws/import_aws_s3_bucket_notification_test.go +++ b/aws/import_aws_s3_bucket_notification_test.go @@ -20,10 +20,9 @@ func TestAccAWSS3BucketNotification_importBasic(t *testing.T) { }, resource.TestStep{ - ResourceName: resourceName, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"bucket"}, + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, }, }, }) @@ -38,10 +37,9 @@ func TestAccAWSS3BucketNotification_importBasic(t *testing.T) { }, resource.TestStep{ - ResourceName: resourceName, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"bucket"}, + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, }, }, }) @@ -56,10 +54,9 @@ func TestAccAWSS3BucketNotification_importBasic(t *testing.T) { }, resource.TestStep{ - ResourceName: resourceName, - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"bucket"}, + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, }, }, }) diff --git a/aws/resource_aws_s3_bucket_notification.go b/aws/resource_aws_s3_bucket_notification.go index f3e19b48417..f7ba2ac22dd 100644 --- a/aws/resource_aws_s3_bucket_notification.go +++ b/aws/resource_aws_s3_bucket_notification.go @@ -378,6 +378,9 @@ func resourceAwsS3BucketNotificationRead(d *schema.ResourceData, meta interface{ return err } log.Printf("[DEBUG] S3 Bucket: %s, get notification: %v", d.Id(), notificationConfigs) + + d.Set("bucket", d.Id()) + // Topic Notification if err := d.Set("topic", flattenTopicConfigurations(notificationConfigs.TopicConfigurations)); err != nil { return fmt.Errorf("error reading S3 bucket \"%s\" topic notification: %s", d.Id(), err)