Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions scaleway/resource_mnq_nats_credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ func resourceScalewayMNQNatsCredentials() *schema.Resource {
SchemaVersion: 0,
Schema: map[string]*schema.Schema{
"account_id": {
Type: schema.TypeString,
Required: true,
Description: "ID of the nats account",
Type: schema.TypeString,
Required: true,
Description: "ID of the nats account",
DiffSuppressFunc: diffSuppressFuncLocality,
},
"name": {
Type: schema.TypeString,
Expand Down Expand Up @@ -81,6 +82,7 @@ func resourceScalewayMNQNatsCredentialsRead(ctx context.Context, d *schema.Resou
return diag.FromErr(err)
}

_ = d.Set("account_id", credentials.NatsAccountID)
_ = d.Set("name", credentials.Name)
_ = d.Set("region", region)

Expand Down