Skip to content

Commit 1040f01

Browse files
committed
Migrate to using commas for import string format
1 parent 00dd171 commit 1040f01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/service/ec2/ami_launch_permission.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func ResourceAMILaunchPermission() *schema.Resource {
3232
d.Set("arn", arn)
3333
d.Set("arn_type", arn_type)
3434
d.Set("image_id", imageId)
35-
d.SetId(fmt.Sprintf("%s-%s", imageId, arn))
35+
d.SetId(fmt.Sprintf("%s,%s,%s", arn, arn_type, imageId))
3636
} else {
3737
sep := ","
3838
if !strings.Contains(d.Id(), sep) {

0 commit comments

Comments
 (0)