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_network_acl Missing Resource Group argument #1265

Closed
sean-freeman opened this issue Apr 4, 2020 · 0 comments
Closed

ibm_is_network_acl Missing Resource Group argument #1265

sean-freeman opened this issue Apr 4, 2020 · 0 comments

Comments

@sean-freeman
Copy link

Terraform Version

terraform -v
Terraform v0.12.24
+ provider.ibm v1.2.6
+ provider.null v2.1.2
+ provider.tls v2.1.1

Affected Resource(s)

  • ibm_is_network_acl

Terraform Configuration Files

resource "ibm_is_network_acl" "vpc_subnet_acl" {
  name = "vpc-subnet-acl"
  vpc  = ibm_is_vpc.vpc.id
  resource_group = ibm_resource_group.resource_group.id

  rules {
    name        = "icmp-outbound"
    action      = "allow"
    source      = "0.0.0.0/0"
    destination = "0.0.0.0/0"
    direction   = "outbound"
    icmp {
#      code = 1
#      type = 1
    }
  }
}

Expected Behavior

Apply complete!

Actual Behavior

terraform apply

Error: Unsupported argument

  on terraform.tf line 134, in resource "ibm_is_network_acl" "vpc_subnet_acl":
 134:   resource_group = ibm_resource_group.resource_group.id

An argument named "resource_group" is not expected here.

Steps to Reproduce

  1. terraform plan
  2. terraform apply

Important Factoids

Removing resource_group generates the plan / applies correctly, inserting "Default" resource group

# ibm_is_network_acl.vpc_subnet_acl will be created
+ resource "ibm_is_network_acl" "vpc_subnet_acl" {
    + id                      = (known after apply)
    + name                    = "vpc-subnet-acl"
    + resource_controller_url = (known after apply)
    + resource_crn            = (known after apply)
    + resource_group_name     = (known after apply)
    + resource_name           = (known after apply)
    + vpc                     = (known after apply)

Option is available in Console UX:
image

References
Similar to other issue regarding validation of name input fields:

VaishnaviGopal added a commit to VaishnaviGopal/terraform-provider-ibm that referenced this issue Apr 9, 2020
VaishnaviGopal added a commit to VaishnaviGopal/terraform-provider-ibm that referenced this issue Apr 9, 2020
hkantare pushed a commit that referenced this issue Apr 13, 2020
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

1 participant