github.com/pix4d/terravalet@v0.8.1-0.20240131132849-abcd6a79eeeb/testdata/import/08_import_src-plan.json (about)

     1  {
     2    "resource_changes": [
     3      {
     4        "address": "module.github.github_branch_default.default[\"test-import-gh\"]",
     5        "type": "github_branch_default",
     6        "name": "default",
     7        "provider_name": "registry.terraform.io/hashicorp/github",
     8        "change": {
     9          "actions": [
    10            "create"
    11          ],
    12          "after": {
    13            "branch": "staging",
    14            "repository": "test-import-gh"
    15          }
    16        }
    17      },
    18      {
    19        "address": "module.github.github_branch_protection_v3.settings[\"test-import-gh:master\"]",
    20        "type": "github_branch_protection_v3",
    21        "name": "settings",
    22        "provider_name": "registry.terraform.io/hashicorp/github",
    23        "change": {
    24          "actions": [
    25            "create"
    26          ],
    27          "after": {
    28            "branch": "master",
    29            "repository": "test-import-gh"
    30          }
    31        }
    32      },
    33      {
    34        "address": "module.github.github_repository.repos[\"test-import-gh\"]",
    35        "type": "github_repository",
    36        "name": "repos",
    37        "provider_name": "registry.terraform.io/hashicorp/github",
    38        "change": {
    39          "actions": [
    40            "create"
    41          ],
    42          "after": {
    43            "description": "A test repo for github import",
    44            "name": "test-import-gh"
    45          }
    46        }
    47      },
    48      {
    49        "address": "module.github.github_branch_default.default[\"test-import-foo\"]",
    50        "type": "github_branch_default",
    51        "name": "default",
    52        "provider_name": "registry.terraform.io/hashicorp/github",
    53        "change": {
    54          "actions": [
    55            "create"
    56          ],
    57          "after": {
    58            "branch": "staging",
    59            "repository": "test-import-foo"
    60          }
    61        }
    62      },
    63      {
    64        "address": "module.github.github_branch_protection_v3.settings[\"test-import-foo:master\"]",
    65        "type": "github_branch_protection_v3",
    66        "name": "settings",
    67        "provider_name": "registry.terraform.io/hashicorp/github",
    68        "change": {
    69          "actions": [
    70            "create"
    71          ],
    72          "after": {
    73            "branch": "master",
    74            "repository": "test-import-foo"
    75          }
    76        }
    77      },
    78      {
    79        "address": "module.github.github_repository.repos[\"test-import-foo\"]",
    80        "type": "github_repository",
    81        "name": "repos",
    82        "provider_name": "registry.terraform.io/hashicorp/github",
    83        "change": {
    84          "actions": [
    85            "create"
    86          ],
    87          "after": {
    88            "description": "A test repo for github import",
    89            "name": "test-import-foo"
    90          }
    91        }
    92      },
    93      {
    94        "address": "module.github.github_repository_collaborator.all_collaborators[\"test-import-foo.Pix4D-Janus\"]",
    95        "type": "github_repository_collaborator",
    96        "name": "all_collaborators",
    97        "change": {
    98          "actions": [
    99            "create"
   100          ],
   101          "after": {
   102            "repository": "test-import-foo",
   103            "username": "Pix4D-Janus"
   104          }
   105        }
   106      },
   107      {
   108        "address": "module.github.github_team_repository.all_teams[\"test-import-foo.developers\"]",
   109        "type": "github_team_repository",
   110        "name": "all_teams",
   111        "change": {
   112          "actions": [
   113            "create"
   114          ],
   115          "after": {
   116            "repository": "test-import-foo",
   117            "team_id": "2817139"
   118          }
   119        }
   120      },
   121      {
   122        "address": "module.github.github_branch_default.default[\"test-import-bar\"]",
   123        "type": "github_branch_default",
   124        "name": "default",
   125        "provider_name": "registry.terraform.io/hashicorp/github",
   126        "change": {
   127          "actions": [
   128            "create"
   129          ],
   130          "after": {
   131            "branch": "staging",
   132            "repository": "test-import-bar"
   133          }
   134        }
   135      },
   136      {
   137        "address": "module.github.github_branch_protection.settings[\"test-import-bar:master\"]",
   138        "type": "github_branch_protection",
   139        "name": "settings",
   140        "change": {
   141          "actions": [
   142            "create"
   143          ],
   144          "after": {
   145            "pattern": "master",
   146            "repository_id": "test-import-bar"
   147          }
   148        }
   149      },
   150      {
   151        "address": "module.github.github_branch_protection_v3.settings[\"test-import-bar:master\"]",
   152        "type": "github_branch_protection_v3",
   153        "name": "settings",
   154        "provider_name": "registry.terraform.io/hashicorp/github",
   155        "change": {
   156          "actions": [
   157            "create"
   158          ],
   159          "after": {
   160            "branch": "master",
   161            "repository": "test-import-bar"
   162          }
   163        }
   164      },
   165      {
   166        "address": "module.github.github_repository.repos[\"test-import-bar\"]",
   167        "type": "github_repository",
   168        "name": "repos",
   169        "provider_name": "registry.terraform.io/hashicorp/github",
   170        "change": {
   171          "actions": [
   172            "create"
   173          ],
   174          "after": {
   175            "description": "A test repo for github import",
   176            "name": "test-import-bar"
   177          }
   178        }
   179      },
   180      {
   181        "address": "module.github.github_issue_label.all_labels[\"test-import-bar.multi word label\"]",
   182        "module_address": "module.github",
   183        "mode": "managed",
   184        "type": "github_issue_label",
   185        "name": "all_labels",
   186        "index": "test-import-bar.multi word label",
   187        "provider_name": "registry.terraform.io/hashicorp/github",
   188        "change": {
   189          "actions": [
   190            "create"
   191          ],
   192          "before": null,
   193          "after": {
   194            "name": "multi word label",
   195            "repository": "test-import-bar"
   196          }
   197        }
   198      },
   199      {
   200        "address": "module.github.github_repository_autolink_reference.global_autolinks[\"test-autolink-import.MYLINK-\"]",
   201        "type": "github_repository_autolink_reference",
   202        "name": "global_autolinks",
   203        "provider_name": "registry.terraform.io/integrations/github",
   204        "change": {
   205          "actions": [
   206            "create"
   207          ],
   208          "after": {
   209            "key_prefix": "WEBGIS-",
   210            "repository": "test-autolink-import"
   211          }
   212        }
   213      }
   214    ]
   215  }