Skip to content

Commit

Permalink
r/aws_eks_access_entry: Mark kubernetes_groups as Computed.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Jan 19, 2024
1 parent 6763564 commit 054c023
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .changelog/35391.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
```release-note:bug
resource/aws_eks_access_entry: Mark `type` and `user_name` as Optional, allowing values to be configured
```

```release-note:bug
resource/aws_eks_access_entry: Mark `kubernetes_groups` as Computed
```
1 change: 1 addition & 0 deletions internal/service/eks/access_entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func resourceAccessEntry() *schema.Resource {
"kubernetes_groups": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Elem: &schema.Schema{
Type: schema.TypeString,
},
Expand Down
1 change: 1 addition & 0 deletions internal/service/eks/access_entry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ func TestAccEKSAccessEntry_type(t *testing.T) {
Config: testAccAccessEntryConfig_type(rName),
Check: resource.ComposeTestCheckFunc(
testAccCheckAccessEntryExists(ctx, resourceName, &accessentry),
acctest.CheckResourceAttrGreaterThanOrEqualValue(resourceName, "kubernetes_groups.#", 1),
resource.TestCheckResourceAttr(resourceName, "type", "EC2_LINUX"),
resource.TestCheckResourceAttrSet(resourceName, "user_name"),
),
Expand Down

0 comments on commit 054c023

Please sign in to comment.