terraform-provider-github icon indicating copy to clipboard operation
terraform-provider-github copied to clipboard

[FEAT]: Automatically import autolinks when trying to create one for a repository

Open acouvreur opened this issue 11 months ago • 2 comments

Describe the need

When using the Terraform provider with organization scoped rights (GitHub App especially), repository transfers are complicated to manage.

Every 422 could be mitigated by trying to import the resource automatically first.

Autolinks are unique by the prefix key, so they could be imported quite easily.

SDK Version

No response

API Version

No response

Relevant log output


Code of Conduct

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

acouvreur avatar Feb 10 '25 21:02 acouvreur

👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

github-actions[bot] avatar Dec 06 '25 02:12 github-actions[bot]

Hey @acouvreur 👋

Thanks for raising this! This is a valid point, that some resources could be auto-imported.

Though I don't know how common that is for Terraform and with import blocks it's quite simple to do the imports while adding resources

deiga avatar Dec 09 '25 08:12 deiga