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

[WIP] Add Resource aws_ec2_transit_gateway_peering_attachment_accepter #11185

Conversation

j-nix
Copy link
Contributor

@j-nix j-nix commented Dec 6, 2019

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

Relates to #11117

Release note for CHANGELOG:

New Resource: aws_ec2_transit_gateway_peering_attachment_accepter (#11185)

Output from acceptance testing:
Tests still outstanding

$ make testacc TESTARGS='-run=TestAccXXX'

...

Omarimcblack and others added 2 commits December 6, 2019 19:18
Update and Delete functions implemented to interact with the AWS GO SDK
for transit gateway peering attachments acceptance

waitFor functions added for Delete terraform operations.

Describe function added for transit gateway peering attachments
acceptance.
Create and read functions implemented to interact with the AWS GO SDK
for transit gateway peering attachment acceptance.

waitFor functions added for Create/Read terraform operations &
acceptance.

Add provider resource mapping to provider.go
@j-nix j-nix requested a review from a team December 6, 2019 19:40
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. provider Pertains to the provider itself, rather than any interaction with AWS. service/ec2 Issues and PRs that pertain to the ec2 service. labels Dec 6, 2019
j-nix pushed a commit to j-nix/terraform-provider-aws that referenced this pull request Dec 6, 2019
Work for transit_gateway_peering_attachment_accepter has now been moved into its own pr hashicorp#11185.
Move `waitForEc2TransitGatewayPeeringAttachmentAcceptance` into the
correct place.
Omarimcblack pushed a commit to j-nix/terraform-provider-aws that referenced this pull request Dec 7, 2019
Work for transit_gateway_peering_attachment_accepter has now been moved into its own pr hashicorp#11185.
Default route table propogation doesn't appear to be supported by
transit gateway peering attachments, only an assocation to the default
route table is supported - removed references to propogation.

Co-authored-by: Omarimcblack 43746683+Omarimcblack@users.noreply.github.com
@ewbankkit
Copy link
Contributor

@j-nix @Omarimcblack Let me know if you need any help with testing this.

@erikkn
Copy link
Contributor

erikkn commented Jan 30, 2020

Hey, guys :)! Wondering if there is any timeline of getting this PR (and #11162) in master, perhaps in the next release already 🙊 ?

@emalihin
Copy link

Hey @j-nix , thanks for your contribution! Looking to use this as soon as we can, do you need any help with this and #11162 ?

@zenvdeluca
Copy link

if serves as an encouragement, AWS now supports inter-region peering in ALL regions 🍾

https://aws.amazon.com/about-aws/whats-new/2020/04/aws-transit-gateway-now-supports-inter-region-peering-in-11-additional-regions/

@bflad bflad added new-resource Introduces a new resource. and removed needs-triage Waiting for first response or review from a maintainer. labels Apr 16, 2020
@bflad bflad self-assigned this Apr 17, 2020
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @j-nix 👋 Thank you for starting this. I have left some initial feedback on the provided code.

Please also note that:

Please reach out if you have any questions or do not have time to implement the items.

@bflad bflad added the waiting-response Maintainers are waiting on response from community or contributor. label Apr 17, 2020
@j-nix
Copy link
Contributor Author

j-nix commented Apr 27, 2020

Hi @bflad ! Thanks a lot for leaving the comments here, I'm going to take a look at them and finish this PR off shortly as there's still a bit of work to be done here 👍

@ghost ghost removed the waiting-response Maintainers are waiting on response from community or contributor. label Apr 27, 2020
j-nix and others added 3 commits April 27, 2020 16:48
Tagging now handled by shared `keyvaluetags` package

Co-Authored-By: Brian Flad <bflad417@gmail.com>
Fixes peer transit gateway/local transit gateway information to be the correct object.

Co-Authored-By: Brian Flad <bflad417@gmail.com>
…ry items


Default route table assocation is not necessary, this was copied from the attachment resource accidentally

Co-Authored-By: Brian Flad <bflad417@gmail.com>
@ghost ghost added size/L Managed by automation to categorize the size of a PR. and removed size/XL Managed by automation to categorize the size of a PR. labels Apr 27, 2020
@Omarimcblack Omarimcblack force-pushed the om_aws_ec2_transit_gateway_peering_attachment_accepter branch from 41e56ac to 9ad7bbf Compare May 1, 2020 15:45
… aws_ec2_transit_gateway_peering_attachment (hashicorp#11162)

Output from acceptance testing:

```
--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachment_basic (279.30s)
--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachment_differentAccount (274.76s)
--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachment_disappears (298.80s)
--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachment_Tags_sameAccount (341.73s)

--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource_Filter_differentAccount (290.68s)
--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource_Filter_sameAccount (281.60s)
--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource_ID_differentAccount (291.70s)
--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource_ID_sameAccount (308.69s)
```
@Omarimcblack Omarimcblack force-pushed the om_aws_ec2_transit_gateway_peering_attachment_accepter branch from 9ad7bbf to 4cee185 Compare May 1, 2020 15:56
@ghost ghost added size/L Managed by automation to categorize the size of a PR. and removed size/XXL Managed by automation to categorize the size of a PR. labels May 1, 2020
@bflad bflad added this to the v2.61.0 milestone May 1, 2020
@bflad
Copy link
Contributor

bflad commented May 1, 2020

Drive-by note: The resource implementation is looking really good! The CI failure is due to us adding and enforcing provider-wide ignore tags functionality as of a few days ago -- two line fix:

// In the Read function, near the conn := 
ignoreTagsConfig := meta.(*AWSClient).IgnoreTagsConfig

// In the d.Set("tags", ...) call
d.Set("tags", keyvaluetags.Ec2KeyValueTags(transitGatewayPeeringAttachment.Tags).IgnoreAws().IgnoreConfig(ignoreTagsConfig).Map())

Hope this helps. 😄 Please reach out when this is ready for review.

@bflad bflad linked an issue May 1, 2020 that may be closed by this pull request
@j-nix j-nix force-pushed the om_aws_ec2_transit_gateway_peering_attachment_accepter branch from c74c3bf to d54dc11 Compare May 1, 2020 23:58
@j-nix
Copy link
Contributor Author

j-nix commented May 1, 2020

Hi @bflad thanks for the help with the CI failure that should be pushed up now - very helpful!

The tests are almost finished - will reach out by the end of the weekendwhen completed 👍

@ghost ghost removed the waiting-response Maintainers are waiting on response from community or contributor. label May 1, 2020
@bflad bflad added the waiting-response Maintainers are waiting on response from community or contributor. label May 5, 2020
@bflad
Copy link
Contributor

bflad commented May 7, 2020

Hi @j-nix 👋 Any chance you could push up the testing you have (even incomplete)? We'd love to release this today if we can!

@ghost ghost added size/XL Managed by automation to categorize the size of a PR. and removed size/L Managed by automation to categorize the size of a PR. labels May 7, 2020
@j-nix j-nix force-pushed the om_aws_ec2_transit_gateway_peering_attachment_accepter branch from c312715 to 9d69509 Compare May 7, 2020 18:11
@j-nix
Copy link
Contributor Author

j-nix commented May 7, 2020

Hi @bflad , I've just pushed the tests up however they are still incomplete and have a little bit of work to do - I appreciate you want to get this out asap to go with the peering attachment resource!

Apoloigies for the wait on this - sadly we haven't been able to find the time to complete them yet!

@ghost ghost removed the waiting-response Maintainers are waiting on response from community or contributor. label May 7, 2020
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, @j-nix! The testing was really close -- just a few minor tweaks and it was good to go. Thanks again for working through this tougher one! 🚀

Output from acceptance testing:

--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachmentAccepter_basic_sameAccount (625.85s)
--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachmentAccepter_basic_differentAccount (628.47s)
--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachmentAccepter_Tags_sameAccount (630.60s)

bflad added a commit that referenced this pull request May 8, 2020
@bflad bflad merged commit 98efe4b into hashicorp:master May 8, 2020
@zenvdeluca
Copy link

the end-user community certainly appreciates all the work put in here. cheers!

@ghost
Copy link

ghost commented May 8, 2020

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

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Jun 7, 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 Jun 7, 2020
@j-nix j-nix deleted the om_aws_ec2_transit_gateway_peering_attachment_accepter branch February 25, 2021 14:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. new-resource Introduces a new resource. provider Pertains to the provider itself, rather than any interaction with AWS. service/ec2 Issues and PRs that pertain to the ec2 service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inter-region peering for Transit Gateways
7 participants