github.com/GoogleCloudPlatform/terraformer@v0.8.18/docs/github.md (about)

     1  ### Use with GitHub
     2  
     3  Example:
     4  
     5  ```
     6   ./terraformer import github --owner=YOUR_ORGANIZATION --resources=repositories --token=YOUR_TOKEN // or GITHUB_TOKEN in env
     7   ./terraformer import github --owner=YOUR_ORGANIZATION --resources=repositories --filter=repository=id1:id2:id4 --token=YOUR_TOKEN // or GITHUB_TOKEN in env
     8  
     9    ./terraformer import github --owner=YOUR_ORGANIZATION --resources=repositories --base-url=https://your-enterprise-github-url
    10  ```
    11  
    12  Supports only organizational resources. List of supported resources:
    13  
    14  *   `members`
    15      * `github_membership`
    16  *   `organization_blocks`
    17      * `github_organization_block`
    18  *   `organization_projects`
    19      * `github_organization_project`
    20  *   `organization_webhooks`
    21      * `github_organization_webhook`
    22  *   `repositories`
    23      * `github_repository`
    24      * `github_repository_webhook`
    25      * `github_branch_protection`
    26      * `github_repository_collaborator`
    27      * `github_repository_deploy_key`
    28  *   `teams`
    29      * `github_team`
    30      * `github_team_membership`
    31      * `github_team_repository`
    32  *   `user_ssh_keys`
    33      * `github_user_ssh_key`
    34  
    35  Notes:
    36  * Terraformer can't get webhook secrets from the GitHub API. If you use a secret token in any of your webhooks, running `terraform plan` will result in a change being detected:
    37  => `configuration.#: "1" => "0"` in tfstate only.