Skip to content

[DOCS]: terraform import for the github_team resource should be slug, not name #2582

@Glenn-Terjesen

Description

@Glenn-Terjesen

Describe the need

Hi as stated in the import doc:
https://registry.terraform.io/providers/integrations/github/latest/docs/resources/team_sync_group_mapping

Image

name does not work, works with the slug, not sure about the id as its not easily visible to regular users.

Thanks

SDK Version

No response

API Version

No response

Relevant log output

terraform import 'module.github["team-xxx"].github_team.main' "Team xxx"

╷
│ Error: strconv.ParseInt: parsing "Team xxx": invalid syntaxGET https://api.github.com/orgs/myorg/teams/Team%20xxx: 404 Not Found []
│ 
│ 
╵

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleUsed by stalebot to clean houseStatus: TriageThis is being looked at and prioritizedType: DocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    Status

    ✅ Done

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions