Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ibm_is_vpc ignores attribute “default_network_acl” #1081

Closed
alainmitry opened this issue Feb 7, 2020 · 5 comments
Closed

ibm_is_vpc ignores attribute “default_network_acl” #1081

alainmitry opened this issue Feb 7, 2020 · 5 comments
Assignees

Comments

@alainmitry
Copy link

Hi there,

Terraform Version

Using terraform version v0.11.14 with provider.ibm v1.1.0 and there are some problems working with VPC gen 1.

Affected Resource(s)

The resource “ibm_is_vpc” ignores attribute “default_network_acl”.

Actual Behaviour

When this resource is created it waits for the resource specified in the attribute “default_network_acl”, then ignores it and creates another network_acl.
If one tries to do another “terraform apply” it tries to change to the correct value, it reports success, but does not change at all (and we stuck with an “extra” network_acl).
Forcing terraform to create this resource only after the network acl creation does not change the results.

Steps to Reproduce

resource "ibm_is_vpc" "test-vpc" {
name = "test-vpc"
resource_group = "resource_group_id"

ignores this part

default_network_acl = "${ibm_is_network_acl.test-acl.id}"
depends_on = ["ibm_is_network_acl.test-acl"]
}

@hkantare
Copy link
Collaborator

hkantare commented Feb 7, 2020

We don't have this default_network_acl now..Its been removed in VPC for gen1 and gen2.
https://cloud.ibm.com/apidocs/vpc-on-classic#create-a-vpc
https://cloud.ibm.com/apidocs/vpc#create-a-vpc
In Terraform we will deprecate the field

VaishnaviGopal added a commit to VaishnaviGopal/terraform-provider-ibm that referenced this issue Feb 10, 2020
VaishnaviGopal added a commit to VaishnaviGopal/terraform-provider-ibm that referenced this issue Feb 10, 2020
hkantare pushed a commit that referenced this issue Feb 11, 2020
hkantare pushed a commit that referenced this issue Feb 11, 2020
@hkantare
Copy link
Collaborator

@tkorrapati1
Copy link

@hkantare But why is this being deprecated?

So now is there any way to deterministically create VPC with default security groups and ACL and attaching them to VPC at the same time while creating VPC ?

@stevestrutt
Copy link
Contributor

@tkorrapati1 its is not a Terraform provider decision to depreciate the Default NACL attribute. It has been depreciated by VPC development in the VPC mgmt API. Searching I cannot find the reason why.

@tkorrapati1
Copy link

@stevestrutt Thanks for clarification.

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

No branches or pull requests

5 participants