We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00dd171 commit 1040f01Copy full SHA for 1040f01
internal/service/ec2/ami_launch_permission.go
@@ -32,7 +32,7 @@ func ResourceAMILaunchPermission() *schema.Resource {
32
d.Set("arn", arn)
33
d.Set("arn_type", arn_type)
34
d.Set("image_id", imageId)
35
- d.SetId(fmt.Sprintf("%s-%s", imageId, arn))
+ d.SetId(fmt.Sprintf("%s,%s,%s", arn, arn_type, imageId))
36
} else {
37
sep := ","
38
if !strings.Contains(d.Id(), sep) {
0 commit comments