Skip to content

Instantly share code, notes, and snippets.

@diyan
Created June 7, 2016 19:47
Show Gist options
  • Save diyan/39e722537f65cd40438ccffd6f27b77d to your computer and use it in GitHub Desktop.
Save diyan/39e722537f65cd40438ccffd6f27b77d to your computer and use it in GitHub Desktop.
Example of how `terraform plan` looks like after one CIDR was changes in AWS Security Group

Example of how terraform plan looks like after one CIDR was changes in AWS Security Group

~ aws_security_group.sg-xxxxxxxx-de-team
    ingress.2929851676.cidr_blocks.#:     "6" => "0"
    ingress.2929851676.cidr_blocks.0:     "127.0.0.1/32" => "" <<< OLD CIDR
    ingress.2929851676.cidr_blocks.1:     "127.0.0.2/23" => ""
    ingress.2929851676.cidr_blocks.2:     "127.0.0.3/32" => ""
    ingress.2929851676.cidr_blocks.3:     "127.0.0.4/32" => ""
    ingress.2929851676.cidr_blocks.4:     "127.0.0.5/32" => ""
    ingress.2929851676.cidr_blocks.5:     "127.0.0.6/32" => ""
    ingress.2929851676.from_port:         "0" => "0"
    ingress.2929851676.protocol:          "-1" => ""
    ingress.2929851676.security_groups.#: "0" => "0"
    ingress.2929851676.self:              "false" => "false"
    ingress.2929851676.to_port:           "0" => "0"
    ingress.3399323796.cidr_blocks.#:     "0" => "6"
    ingress.3399323796.cidr_blocks.0:     "" => "127.0.0.100/32" <<< NEW CIDR
    ingress.3399323796.cidr_blocks.1:     "" => "127.0.0.2/23"
    ingress.3399323796.cidr_blocks.2:     "" => "127.0.0.2/32"
    ingress.3399323796.cidr_blocks.3:     "" => "127.0.0.2/32"
    ingress.3399323796.cidr_blocks.4:     "" => "127.0.0.2/32"
    ingress.3399323796.cidr_blocks.5:     "" => "127.0.0.2/32"
    ingress.3399323796.from_port:         "" => "0"
    ingress.3399323796.protocol:          "" => "-1"
    ingress.3399323796.security_groups.#: "0" => "0"
    ingress.3399323796.self:              "" => "false"
    ingress.3399323796.to_port:           "" => "0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment