diff --git a/.changelog/25370.txt b/.changelog/25370.txt new file mode 100644 index 00000000000..466976af1d4 --- /dev/null +++ b/.changelog/25370.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/aws_appstream_fleet_stack_association: Fix association not being found after creation +``` diff --git a/internal/service/appstream/fleet_stack_association.go b/internal/service/appstream/fleet_stack_association.go index 97a2d0c9e5f..915617fdb97 100644 --- a/internal/service/appstream/fleet_stack_association.go +++ b/internal/service/appstream/fleet_stack_association.go @@ -66,7 +66,7 @@ func resourceFleetStackAssociationCreate(ctx context.Context, d *schema.Resource return diag.FromErr(fmt.Errorf("error creating AppStream Fleet Stack Association (%s): %w", d.Id(), err)) } - d.SetId(EncodeStackFleetID(d.Get("stack_name").(string), d.Get("fleet_name").(string))) + d.SetId(EncodeStackFleetID(d.Get("fleet_name").(string), d.Get("stack_name").(string))) return resourceFleetStackAssociationRead(ctx, d, meta) }