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

issue with aws_dx_gateway and amazon_side_asn #6242

Closed
sharathrnair87 opened this issue Oct 23, 2018 · 9 comments · Fixed by #6253
Closed

issue with aws_dx_gateway and amazon_side_asn #6242

sharathrnair87 opened this issue Oct 23, 2018 · 9 comments · Fixed by #6253
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/directconnect Issues and PRs that pertain to the directconnect service. technical-debt Addresses areas of the codebase that need refactoring or redesign.
Milestone

Comments

@sharathrnair87
Copy link

Hello Team,

I'd like to thank the community for all the hard work that's gone into this incredible provider!

We've run into an issue with the aws_dx_gateway resource while creating one using the Amazon Legacy ASN '7224'

"amazon_side_asn" ("7224") must be in the range 64512 to 65534 or 4200000000 to 4294967294
We had run into a similar bug while creating an aws_vpn_gateway resource using this ASN:
#5441

Appreciate your support!

Thanks in advance!

@ewbankkit
Copy link
Contributor

OK, this should be easy to fix; we'll just have one Amazon-side ASN validation function validateAmazonSideAsn shared by both aws_dx_gateway and aws_vpn_gateway.

@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. service/ec2 Issues and PRs that pertain to the ec2 service. technical-debt Addresses areas of the codebase that need refactoring or redesign. labels Oct 30, 2018
@bflad bflad added service/directconnect Issues and PRs that pertain to the directconnect service. and removed service/ec2 Issues and PRs that pertain to the ec2 service. labels Oct 30, 2018
@bflad
Copy link
Contributor

bflad commented Oct 30, 2018

The fix for this has been merged and will release with version 1.42.0 of the AWS provider, likely today or tomorrow. 👍

@bflad bflad added this to the v1.42.0 milestone Oct 30, 2018
@bflad
Copy link
Contributor

bflad commented Nov 1, 2018

This has been released in version 1.42.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@sharathrnair87
Copy link
Author

@bflad @ewbankkit
Many thanks!

@dhermans
Copy link

dhermans commented Nov 7, 2018

hi,
tried this today but had some issues - on 1.31 before I was getting:

14:28:14 Error: module.my-vpc.aws_dx_gateway.my-dx-gateway: "amazon_side_asn" ("7224") must be in the range 64512 to 65534 or 4200000000 to 4294967294

On 1.42 the plan now succeeds but fails on deploy:
10:01:53 Error: Error applying plan:
10:01:53 
10:01:53 1 error(s) occurred:
10:01:53 
10:01:53 * module.my-vpc.aws_dx_gateway.my-dx-gateway: 1 error(s) occurred:
10:01:53 
10:01:53 * aws_dx_gateway.my-dx-gateway: Error creating Direct Connect gateway: DirectConnectClientException: 7224 is not a valid value for Amazon Side ASN
10:01:53   status code: 400, request id: e6126331-e217-11e8-b16a-a51952d67b7b

any ideas?

@dhermans
Copy link

dhermans commented Nov 7, 2018

you can't create in the console so suspect it's an AWS backend limitation

@ewbankkit
Copy link
Contributor

ewbankkit commented Nov 7, 2018

@dhermans As I understand it you can't create new DX Gateways (or VPN Gateways) with the legacy ASN 7224, only import and then modify existing resources with that ASN. I may be wrong though.

@dhermans
Copy link

dhermans commented Nov 8, 2018

HI @ewbankkit - thanks - think you're right - raised a ticket with them. Odd they allow 7224 on virtual private gateway but not dx gateway.

@ghost
Copy link

ghost commented Apr 2, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/directconnect Issues and PRs that pertain to the directconnect service. technical-debt Addresses areas of the codebase that need refactoring or redesign.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants