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
Expected Behavior
When creating a
github_organization_role-resource and trying to use therole_idafterwards, the resource fails with the following error:When re-runing apply with the created
github_organization_role(from first run) it finds therole_id.I would expect the resource to provide the
role_idalso when creating.Actual Behavior
See above
Terraform Version
Terraform v1.11.4
on darwin_arm64
Affected Resource(s)
Terraform Configuration Files
Steps to Reproduce
No response
Debug Output
Panic Output
Code of Conduct