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

Security lists do not get added or validated to OPC Instance #5

Open
tombuildsstuff opened this issue Jun 14, 2017 · 1 comment
Open
Assignees
Labels

Comments

@tombuildsstuff
Copy link
Contributor

This issue was originally opened by @nagulako as hashicorp/terraform-provider-opc#11. It was migrated here as part of the provider split. The original body of the issue is below.


Terraform Version

0.9.5

Affected Resource(s)

  • opc_instance

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

resource "opc_compute_instance" "tf-sol1-test-1" {
  name       = "tf-sol1-test-1"
  label      = "Terraform Provisioned Solaris Instance"
  shape      = "oc3"
  ssh_keys   = ["murali-opc-public-key"]
  image_list = "/oracle/public/Oracle_Solaris_11.3"
  hostname   = "tf-sol1-test-1.compute-usoraocips16001.oraclecloud.internal."

  storage {
    volume = "${opc_compute_storage_volume.tf-sol1-test-1.name}"
    index  = 1
  }
  networking_info {
    index          = 0
    shared_network = true
#    sec_lists     = ["${opc_compute_security_list.nvmk-sec-list.name}"]
#    sec_lists      = ["nvmk-sec-list"]
    nat            = ["ippool:/oracle/public/ippool"]
  }
  networking_info {
    index          = 1
    ip_network  = "terraform-network"
    ip_address  = "192.168.111.11"
    shared_network = false
    vnic        = "sol1-test-1-eth1"
  }
}

Expected Behavior

When a sec_list is added to the instance - it should be added to the Instance.

Actual Behavior

It does not. Terraform does not validate if the Sec List already exists on the instance or if it is added.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. Create a resource as above (You can use Linux or Solaris) - without the sec_list.
  2. Add the sec_list to the instance and run terraform plan - nothing happens.

Important Factoids

This is running on OPC IaaS compute

References

No

@scross01
Copy link
Contributor

As an alternative to updating sec_lists in the instance resource definition, a new sec_list can be added to a running instance using the opc_compute_security_association resource.

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

4 participants