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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource_ibm_is_virtual_endpoint_gateway does not allow for full name character limit #3606

Closed
Nashluffy opened this issue Feb 22, 2022 · 1 comment 路 Fixed by #3636
Closed
Labels
service/VPC Infrastructure Issues related to the VPC Infrastructure

Comments

@Nashluffy
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform IBM Provider Version

Affected Resource(s)

resource_ibm_is_virtual_endpoint_gateway

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

resource "ibm_is_virtual_endpoint_gateway" "vpe" {
  name           = "d.....-us-south-sha...-ko9cvo9t2h0hlqfpbdps1ijz4euz67ql8ehot0cj"
  resource_group = "default"
  vpc            = local.vpc.id

  target {
    crn           = var.crn
    resource_type = "provider_cloud_service"
  }

  tags = var.tags
}

Debug Output

Panic Output

Expected Behavior

I should be able to create a VPE with a name that is 63 characters or fewer.

Actual Behavior

I get an error stating I cannot exceed 40 characters. I've verified a VPE can have 63 characters by going into the VPE UI and creating a VPE with the same name that terraform attempted to create one with.

Screen Shot 2022-02-22 at 11 02 44 AM

Error: "name" ("d.....-us-south-sha...-ko9cvo9t2h0hlqfpbdps1ijz4euz67ql8ehot0cj") should not exceed 40 characters

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
@github-actions github-actions bot added the service/VPC Infrastructure Issues related to the VPC Infrastructure label Feb 22, 2022
@Nashluffy
Copy link
Contributor Author

Here's a curl proving that the limit should truly be 63 characters.

(~) Nash $ curl 'https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways?generation=2&version=2019-01-01' -H "Authorization: Bearer $token" -d'{"name":"de....-us-south-s.....-ko9cvo9t2h0hlqfpbdps1ijz4euz67ql8ehot0cj","resource_group":{"id":"89124......"},"target":{"crn":"crn:v1:bluemix:public:cloud-object-storage:global:::endpoint:s3.direct.eu-gb.cloud-object-storage.appdomain.cloud","resource_type":"provider_cloud_service"},"vpc":{"id":"r006-53fc3bec...."}}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/VPC Infrastructure Issues related to the VPC Infrastructure
Projects
None yet
1 participant