docs/github.md
Example:
./terraformer import github --owner=YOUR_ORGANIZATION --resources=repositories --token=YOUR_TOKEN // or GITHUB_TOKEN in env
./terraformer import github --owner=YOUR_ORGANIZATION --resources=repositories --filter=repository=id1:id2:id4 --token=YOUR_TOKEN // or GITHUB_TOKEN in env
./terraformer import github --owner=YOUR_ORGANIZATION --resources=repositories --base-url=https://your-enterprise-github-url
Supports only organizational resources. List of supported resources:
members
github_membershiporganization_blocks
github_organization_blockorganization_projects
github_organization_projectorganization_webhooks
github_organization_webhookrepositories
github_branch_protectiongithub_repositorygithub_repository_collaboratorgithub_repository_deploy_keygithub_repository_webhookteams
github_teamgithub_team_membershipgithub_team_repositoryuser_ssh_keys
github_user_ssh_keyNotes:
terraform plan will result in a change being detected:
=> configuration.#: "1" => "0" in tfstate only.