-
Notifications
You must be signed in to change notification settings - Fork 949
[BUG]: github_organization_role_team doesn't wait for role_id #3009
Copy link
Copy link
Closed
Labels
Type: BugSomething isn't working as documentedSomething isn't working as documented
Milestone
Description
Expected Behavior
When creating a github_organization_role-resource and trying to use the role_id afterwards, the resource fails with the following error:
│ 43: role_id = github_organization_role.example.role_id
│
│ The argument "role_id" is required, but no definition was found.
When re-runing apply with the created github_organization_role (from first run) it finds the role_id.
I would expect the resource to provide the role_id also when creating.
Actual Behavior
See above
Terraform Version
Terraform v1.11.4
on darwin_arm64
Affected Resource(s)
- github_organization_role_team
Terraform Configuration Files
resource "github_organization_role" "example" {
name = "Example Reader"
base_role = "read"
}
resource "github_organization_role_team" "example" {
role_id = github_organization_role.example.role_id
team_slug = "example"
}
Steps to Reproduce
No response
Debug Output
Panic Output
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: BugSomething isn't working as documentedSomething isn't working as documented