Skip to content

Commit

Permalink
fix: map comment, name, id to data source attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
terenho committed Oct 15, 2024
1 parent 8132d20 commit ad5cd85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/service/cloudfront/key_group_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ func (d *dataSourceKeyGroup) Read(ctx context.Context, req datasource.ReadReques
}

// TIP: -- 5. Set the tags
data.ID = flex.StringToFramework(ctx, out.ID)
data.Name = flex.StringToFramework(ctx, out.Name)
data.Comment = flex.StringToFramework(ctx, out.Comment)
data.Etag = flex.StringToFramework(ctx, out.ETag)

// TIP: -- 6. Set the state
Expand Down

0 comments on commit ad5cd85

Please sign in to comment.