Skip to content

Commit

Permalink
Migrate to using commas for import string format
Browse files Browse the repository at this point in the history
  • Loading branch information
joraff committed Apr 6, 2022
1 parent 00dd171 commit 1040f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/ec2/ami_launch_permission.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func ResourceAMILaunchPermission() *schema.Resource {
d.Set("arn", arn)
d.Set("arn_type", arn_type)
d.Set("image_id", imageId)
d.SetId(fmt.Sprintf("%s-%s", imageId, arn))
d.SetId(fmt.Sprintf("%s,%s,%s", arn, arn_type, imageId))
} else {
sep := ","
if !strings.Contains(d.Id(), sep) {
Expand Down

0 comments on commit 1040f01

Please sign in to comment.