Skip to content

[BUG]: github_organization_role_team doesn't wait for role_id #3009

@elgohr

Description

@elgohr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working as documented

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions