Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't require owner_grants or membership_requires when creating an access list via TF. #49271

Open
benarent opened this issue Nov 20, 2024 · 0 comments
Labels
bug terraform-provider Issues relating to the Teleport Terraform provider in the teleport-plugins repo

Comments

@benarent
Copy link
Contributor

Expected behavior:

When creating an Access List, we don't require membership_requires or owner_grants but when creating access lists via the Terraform provider. We require them.

Optional:

description (String) description is an optional plaintext description of the Access List.
membership_requires (Attributes) membership_requires describes the requirements for a user to be a member of the Access List. For a membership to an Access List to be effective, the user must meet the requirements of Membership_requires and must be in the members list. (see below for nested schema)
owner_grants (Attributes) owner_grants describes the access granted by owners to this Access List. (see below for nested schema)

Current behavior:

teleport_access_list.sre_team: Creating...
╷
│ Error: Error reading AccessList
│
│   with teleport_access_list.sre_team,
│   on teleport.tf line 1145, in resource "teleport_access_list" "sre_team":
│ 1145: resource "teleport_access_list" "sre_team" {
│
│ Can not convert *accesslist.AccessList to AccessList: membershipRequires is missing
╵

Bug details:

  • Teleport version
  • Recreation steps
  • Debug logs
@benarent benarent added bug terraform-provider Issues relating to the Teleport Terraform provider in the teleport-plugins repo labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug terraform-provider Issues relating to the Teleport Terraform provider in the teleport-plugins repo
Projects
None yet
Development

No branches or pull requests

1 participant