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

Add resource_group argument for ibm_is_public_gateway #1102

Closed
IAmFrench opened this issue Feb 13, 2020 · 2 comments
Closed

Add resource_group argument for ibm_is_public_gateway #1102

IAmFrench opened this issue Feb 13, 2020 · 2 comments
Assignees

Comments

@IAmFrench
Copy link

IAmFrench commented Feb 13, 2020

Terraform Version

λ terraform -v
Terraform v0.12.20
+ provider.ibm v1.2.0

Affected Resource(s)

Please list the resources as a list, for example:

  • ibm_is_public_gateway

Terraform Configuration Files

resource "ibm_is_vpc" "vpc" {
  name           = "test-vpc"
  resource_group = data.ibm_resource_group.notDefaultResourceGroup.id
}

resource "ibm_is_public_gateway" "private_test_gateway" {
  name = "test_gateway"
  vpc  = ibm_is_vpc.vpc.id
  zone = "us-south-1"
}

Debug Output

terraform plan no errors

λ terraform apply
data.ibm_resource_group.notDefaultResourceGroup: Refreshing state...

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # ibm_is_public_gateway.private_test_gateway will be created
  + resource "ibm_is_public_gateway" "private_test_gateway" {
      + floating_ip             = (known after apply)
      + id                      = (known after apply)
      + name                    = "test_gateway"
      + resource_controller_url = (known after apply)
      + resource_crn            = (known after apply)
      + resource_group_name     = (known after apply)
      + resource_name           = (known after apply)
      + resource_status         = (known after apply)
      + status                  = (known after apply)
      + vpc                     = (known after apply)
      + zone                    = "us-south-1"
    }

  # ibm_is_vpc.vpc will be created
  + resource "ibm_is_vpc" "vpc" {
      + address_prefix_management = "auto"
      + classic_access            = false
      + default_network_acl       = (known after apply)
      + default_security_group    = (known after apply)
      + id                        = (known after apply)
      + name                      = "test-vpc"
      + resource_controller_url   = (known after apply)
      + resource_crn              = (known after apply)
      + resource_group            = "masqued"
      + resource_group_name       = (known after apply)
      + resource_name             = (known after apply)
      + resource_status           = (known after apply)
      + status                    = (known after apply)
      + tags                      = (known after apply)
    }

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

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

ibm_is_vpc.vpc: Creating...
ibm_is_vpc.vpc: Still creating... [10s elapsed]
ibm_is_vpc.vpc: Creation complete after 15s [id=r006-9f3dceb1-2fd7-4246-9b98-4aec382e1ec4]
ibm_is_public_gateway.private_test_gateway: Creating...

Error:

  on main.tf line 6, in resource "ibm_is_public_gateway" "private_test_gateway":
   6: resource "ibm_is_public_gateway" "private_test_gateway" {

Expected Behavior

Add resource_group argument for this resource as it it already supported on the GUI (https://cloud.ibm.com/vpc-ext/network/publicGateways)

Actual Behavior

resource_group argument not supported

Steps to Reproduce

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

  1. terraform plan => ok
  2. terraform apply => failed

Important Factoids

I dont have rights on the default resource group so I need to specify an other resource group for this resource

References

https://cloud.ibm.com/vpc-ext/network/publicGateways

This argument is available in the REST API

image

@VaishnaviGopal VaishnaviGopal self-assigned this Feb 20, 2020
VaishnaviGopal added a commit to VaishnaviGopal/terraform-provider-ibm that referenced this issue Feb 24, 2020
VaishnaviGopal added a commit to VaishnaviGopal/terraform-provider-ibm that referenced this issue Feb 24, 2020
hkantare pushed a commit that referenced this issue Feb 25, 2020
hkantare pushed a commit that referenced this issue Feb 25, 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

3 participants