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

AWS Direct Connect Transit Virtual Interface error using 32bits ASN #36308

Closed
jruckj opened this issue Jan 10, 2025 · 1 comment
Closed

AWS Direct Connect Transit Virtual Interface error using 32bits ASN #36308

jruckj opened this issue Jan 10, 2025 · 1 comment
Labels
bug new new issue not yet triaged provider/aws question

Comments

@jruckj
Copy link

jruckj commented Jan 10, 2025

Terraform Version

Terraform v1.5.7
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v5.83.1

Terraform Configuration Files

resource "aws_dx_transit_virtual_interface" "example" {
  connection_id  = ***
  dx_gateway_id  = ***
  name           = "tf-transit-vif-example"
  vlan           = 4094
  address_family = "ipv4"
  bgp_asn        = 4200000000
}

Debug Output

terraform apply --auto-approve

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # aws_dx_transit_virtual_interface.example will be created
  + resource "aws_dx_transit_virtual_interface" "example" {
      + address_family      = "ipv4"
      + amazon_address      = (known after apply)
      + amazon_side_asn     = (known after apply)
      + arn                 = (known after apply)
      + aws_device          = (known after apply)
      + bgp_asn             = 4200000000
      + bgp_auth_key        = (known after apply)
      + connection_id       = ***
      + customer_address    = (known after apply)
      + dx_gateway_id       = ***
      + id                  = (known after apply)
      + jumbo_frame_capable = (known after apply)
      + mtu                 = 1500
      + name                = "tf-transit-vif-tmp"
      + tags_all            = (known after apply)
      + vlan                = 100
    }

Plan: 1 to add, 0 to change, 0 to destroy.
aws_dx_transit_virtual_interface.example: Creating...
╷
│ Error: creating Direct Connect Transit Virtual Interface: operation error Direct Connect: CreateTransitVirtualInterface, https response error StatusCode: 400, RequestID: 9661b9f4-a7d4-4f85-918a-ca0121319b86, DirectConnectClientException: BGP ASN -94967296 must have value greater than or equal to 1
│ 
│   with aws_dx_transit_virtual_interface.example,
│   on tmp.tf line 1, in resource "aws_dx_transit_virtual_interface" "example":
│    1: resource "aws_dx_transit_virtual_interface" "example" {
│ 

Expected Behavior

A Direct Connect Transit virtual interface should be created using a 32-bit ASN

Actual Behavior

An error occurs: Error: creating Direct Connect Transit Virtual Interface: operation error Direct Connect: CreateTransitVirtualInterface, https response error StatusCode: 400, RequestID: 9661b9f4-a7d4-4f85-918a-ca0121319b86, DirectConnectClientException: BGP ASN -94967296 must have value greater than or equal to 1

Steps to Reproduce

  1. terraform init
  2. terraform apply

Additional Context

No response

References

No response

Generative AI / LLM assisted development?

No response

@jruckj jruckj added bug new new issue not yet triaged labels Jan 10, 2025
@crw
Copy link
Contributor

crw commented Jan 10, 2025

Hello @jruckj,

This appears to be an issue or question with the AWS provider, not with Terraform itself. You can see existing issues and file a new one in their repository here: https://github.com/terraform-providers/terraform-provider-aws/issues. If you have questions about Terraform or the AWS provider, it's better to use the community forum where there are more people ready to help. The GitHub issues here are monitored only by a few core maintainers.

Thanks!

@crw crw closed this as completed Jan 10, 2025
@crw crw closed this as not planned Won't fix, can't repro, duplicate, stale Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug new new issue not yet triaged provider/aws question
Projects
None yet
Development

No branches or pull requests

2 participants