diff --git a/scaleway/resource_function_token.go b/scaleway/resource_function_token.go index c4e0be252..1c2fed851 100644 --- a/scaleway/resource_function_token.go +++ b/scaleway/resource_function_token.go @@ -77,6 +77,8 @@ func resourceScalewayFunctionTokenCreate(ctx context.Context, d *schema.Resource d.SetId(newRegionalIDString(region, token.ID)) + _ = d.Set("token", token.Token) + return resourceScalewayFunctionTokenRead(ctx, d, meta) } @@ -101,7 +103,6 @@ func resourceScalewayFunctionTokenRead(ctx context.Context, d *schema.ResourceDa _ = d.Set("namespace_id", flattenStringPtr(token.NamespaceID)) _ = d.Set("description", flattenStringPtr(token.Description)) _ = d.Set("expires_at", flattenTime(token.ExpiresAt)) - _ = d.Set("token", token.Token) return nil }