github.com/pix4d/terravalet@v0.8.1-0.20240131132849-abcd6a79eeeb/testdata/script/cmd-remove.txt (about)

     1  exec terravalet remove --up=foo_up.sh --plan=detach.plan.txt
     2  ! stderr .
     3  cmp foo_up.sh foo_up.sh.want
     4  
     5  -- foo_up.sh.want --
     6  #! /bin/sh
     7  # DO NOT EDIT. Generated by https://github.com/pix4D/terravalet
     8  # This script will remove 6 items.
     9  
    10  set -e
    11  
    12  terraform state rm 'module.github.github_branch_default.default["foo"]'
    13  terraform state rm 'module.github.github_repository.repos["foo"]'
    14  terraform state rm 'module.github.github_repository_autolink_reference.repo_autolinks["foo.AN-"]'
    15  terraform state rm 'module.github.github_repository_autolink_reference.repo_autolinks["foo.CV-"]'
    16  terraform state rm 'module.github.github_repository_autolink_reference.repo_autolinks["foo.OPF-"]'
    17  terraform state rm 'module.github.github_repository_collaborators.repo_collaborators["foo"]'
    18  
    19  -- detach.plan.txt --
    20  Terraform used the selected providers to generate the following execution
    21  plan. Resource actions are indicated with the following symbols:
    22    - destroy
    23  
    24  Terraform will perform the following actions:
    25  
    26    # module.github.github_branch_default.default["foo"] will be destroyed
    27    # (because key ["foo"] is not in for_each map)
    28    - resource "github_branch_default" "default" {
    29  
    30    # module.github.github_repository.repos["foo"] will be destroyed
    31    # (because key ["foo"] is not in for_each map)
    32    - resource "github_repository" "repos" {
    33  
    34    # module.github.github_repository_autolink_reference.repo_autolinks["foo.AN-"] will be destroyed
    35    # (because key ["foo.AN-"] is not in for_each map)
    36    - resource "github_repository_autolink_reference" "repo_autolinks" {
    37  
    38    # module.github.github_repository_autolink_reference.repo_autolinks["foo.CV-"] will be destroyed
    39    # (because key ["foo.CV-"] is not in for_each map)
    40    - resource "github_repository_autolink_reference" "repo_autolinks" {
    41  
    42    # module.github.github_repository_autolink_reference.repo_autolinks["foo.OPF-"] will be destroyed
    43    # (because key ["foo.OPF-"] is not in for_each map)
    44    - resource "github_repository_autolink_reference" "repo_autolinks" {
    45  
    46    # module.github.github_repository_collaborators.repo_collaborators["foo"] will be destroyed
    47    # (because key ["foo"] is not in for_each map)
    48    - resource "github_repository_collaborators" "repo_collaborators" {
    49  
    50  Plan: 0 to add, 0 to change, 6 to destroy.