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 & Data Source aws_ec2_transit_gateway_peering_attachment #11162

Merged
merged 33 commits into from
Apr 30, 2020

Conversation

Omarimcblack
Copy link
Contributor

@Omarimcblack Omarimcblack commented Dec 5, 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

Related to #11117

Release note for CHANGELOG:

New Data Source: aws_ec2_transit_gateway_peering_attachment (#11162)
New Resource: aws_ec2_transit_gateway_peering_attachment (#11162)

Output from acceptance

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSEc2TransitGatewayPeeringAttachment_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -count 1 -parallel 20 -run=TestAccAWSEc2TransitGatewayPeeringAttachment_ -timeout 120m
=== RUN   TestAccAWSEc2TransitGatewayPeeringAttachment_basic
=== PAUSE TestAccAWSEc2TransitGatewayPeeringAttachment_basic
=== RUN   TestAccAWSEc2TransitGatewayPeeringAttachment_disappears
=== PAUSE TestAccAWSEc2TransitGatewayPeeringAttachment_disappears
=== RUN   TestAccAWSEc2TransitGatewayPeeringAttachment_Tags_sameAccount
=== PAUSE TestAccAWSEc2TransitGatewayPeeringAttachment_Tags_sameAccount
=== RUN   TestAccAWSEc2TransitGatewayPeeringAttachment_differentAccount
=== PAUSE TestAccAWSEc2TransitGatewayPeeringAttachment_differentAccount
=== CONT  TestAccAWSEc2TransitGatewayPeeringAttachment_basic
=== CONT  TestAccAWSEc2TransitGatewayPeeringAttachment_differentAccount
=== CONT  TestAccAWSEc2TransitGatewayPeeringAttachment_Tags_sameAccount
=== CONT  TestAccAWSEc2TransitGatewayPeeringAttachment_disappears
--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachment_disappears (295.35s)
--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachment_basic (396.29s)
--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachment_differentAccount (430.52s)
--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachment_Tags_sameAccount (453.62s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	453.725s


$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource -timeout 120m
=== RUN   TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource_Filter
=== PAUSE TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource_Filter
=== RUN   TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource_ID
=== PAUSE TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource_ID
=== RUN   TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource_Tags
=== PAUSE TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource_Tags
=== CONT  TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource_Filter
=== CONT  TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource_Tags
=== CONT  TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource_ID
--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource_Filter (422.58s)
--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource_ID (425.54s)
--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource_Tags (427.97s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	428.898s

Joe Horner and others added 2 commits December 5, 2019 19:20
Create and read functions implemented to interact with the AWS GO SDK
for transit gateway peering attachments.

waitFor functions added for Create/Read terraform operations.

Describe function added for transit gateway peering attachments.
Create Update/Delete/refresh functions implemented to interact with the AWS GO SDK
for transit gateway peering attachments

waitFor functions added for Update/Delete terraform operations.

Add provider resource mapping to provider.go
@Omarimcblack Omarimcblack requested a review from a team December 5, 2019 20:08
@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 5, 2019
Work for transit_gateway_peering_attachment_accepter has now been moved into its own pr hashicorp#11185.
@ghost ghost added size/L Managed by automation to categorize the size of a PR. size/XL Managed by automation to categorize the size of a PR. and removed size/XL Managed by automation to categorize the size of a PR. size/L Managed by automation to categorize the size of a PR. labels Dec 6, 2019
@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 Dec 7, 2019
Joe Horner and others added 4 commits December 7, 2019 11:49
Create and read functions implemented to interact with the AWS GO SDK
for transit gateway peering attachments.

waitFor functions added for Create/Read terraform operations.

Describe function added for transit gateway peering attachments.
Create Update/Delete/refresh functions implemented to interact with the AWS GO SDK
for transit gateway peering attachments

waitFor functions added for Update/Delete terraform operations.

Add provider resource mapping to provider.go
Work for transit_gateway_peering_attachment_accepter has now been moved into its own pr hashicorp#11185.
@ghost ghost added service/mediaconvert Issues and PRs that pertain to the mediaconvert service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/XXL Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. and removed size/L Managed by automation to categorize the size of a PR. labels Dec 7, 2019
@Omarimcblack Omarimcblack changed the base branch from master to transport-logging December 7, 2019 15:06
@Omarimcblack Omarimcblack changed the base branch from transport-logging to master December 7, 2019 15:06
@ewbankkit
Copy link
Contributor

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

@Omarimcblack
Copy link
Contributor Author

Hi @ewbankkit we have been making use of the resources for our own deployments, we have some test locally - will push up sometime Monday and if you could take a look over that would be great!

@bflad bflad added new-resource Introduces a new resource. new-data-source Introduces a new data source. and removed needs-triage Waiting for first response or review from a maintainer. service/mediaconvert Issues and PRs that pertain to the mediaconvert service. 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 @Omarimcblack 👋 Thank you so much for this contribution. Overall this is looking great. A few little things and we should be able to get this in quickly. Please reach out with any questions or if you 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 and others added 3 commits April 20, 2020 10:09
Local/peer terminology implemented based off the current account

Co-Authored-By: Brian Flad <bflad417@gmail.com>
use `owner_id` attr rather than data source for caller identity

Co-Authored-By: Brian Flad <bflad417@gmail.com>
Docs amended to provide different example & fix links

Co-Authored-By: Brian Flad <bflad417@gmail.com>
@bflad
Copy link
Contributor

bflad commented Apr 23, 2020

Hi @Omarimcblack / @j-nix 👋 Just checking in -- do you have plans to fix up the final review items and CI failure? Please let us know. Thanks!

Joe Horner and others added 3 commits April 24, 2020 23:36
…paginator function

Co-authored-by: Omarimcblack <43746683+Omarimcblack@users.noreply.github.com>
…ther than enum

Co-authored-by: Omarimcblack <43746683+Omarimcblack@users.noreply.github.com>
alternate provider

Since local/peer terminology has been adopted it is important to test that
the correct attributes are returned from a datasource when the
alternate(accepter) provider is used

Co-authored-by: j-nix <34035447+j-nix@users.noreply.github.com>
@jtcressy
Copy link

@bflad is aws/aws-sdk-go#3284 a requirement for this MR or is this in queue for next review? I see the milestone v2.60.0 was added so it sounds like it's on track?

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

bflad commented Apr 30, 2020

@jtcressy this should go out today; just need to track down why cross-account testing is failing.

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.

All set, thanks @Omarimcblack! 🚀 Will handle a small testing fix post-merge.

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)

@bflad bflad merged commit 70279b8 into hashicorp:master Apr 30, 2020
bflad added a commit that referenced this pull request Apr 30, 2020
@Omarimcblack Omarimcblack deleted the add_transit_gw_peering branch April 30, 2020 18:53
@ghost
Copy link

ghost commented May 1, 2020

This has been released in version 2.60.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!

Omarimcblack added a commit to Omarimcblack/terraform-provider-aws that referenced this pull request May 1, 2020
…ng_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 added a commit to Omarimcblack/terraform-provider-aws that referenced this pull request May 1, 2020
… 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)
```
@ghost
Copy link

ghost commented May 31, 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 May 31, 2020
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-data-source Introduces a new data source. 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/XXL 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.

10 participants