Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

security list updated on subsequent applies #17

Closed
scross01 opened this issue Jun 29, 2017 · 0 comments
Closed

security list updated on subsequent applies #17

scross01 opened this issue Jun 29, 2017 · 0 comments
Assignees
Labels

Comments

@scross01
Copy link
Contributor

scross01 commented Jun 29, 2017

Terraform Version

0.9.8

Affected Resource(s)

opc_compute_security_list

Terraform Configuration Files

resource "opc_compute_security_list" "sec_list1" {
  name                 = "sec-list-1"
  policy               = "permit"
  outbound_cidr_policy = "deny"
}

Behavior

After first apply the state shows the policy and outbound_cidr_policy values in upper-case, but the config is in lower case, so on subsequent applies terraform sees a difference and updates the resource each time.

Steps to Reproduce

$ terraform apply
$ terraform plan

~ opc_compute_security_list.SSH_ALLOW
    outbound_cidr_policy: "PERMIT" => "permit"
    policy:               "DENY" => "deny"

Plan: 0 to add, 1 to change, 0 to destroy.

Workaround

Explicitly set the policy and outbound_cidr_policy as PERMIT or DENY (i.e. use uppercase)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants