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

adding Computed :true to id of few data sources #16667

Merged

Conversation

tbugfinder
Copy link
Contributor

@tbugfinder tbugfinder commented Dec 9, 2020

Mark id within given data sources (as figured out by @bflad) as computed:

  • aws_customer_gateway
  • aws_ec2_transit_gateway_peering_attachment
  • aws_ec2_transit_gateway_route_table
  • aws_ec2_transit_gateway_vpc_attachment
  • aws_ec2_transit_gateway
  • aws_guardduty_detector

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" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #11554

Release note for CHANGELOG:

Make the id attribute of given data sources a computed value.
- aws_customer_gateway
- aws_ec2_transit_gateway_peering_attachment
- aws_ec2_transit_gateway_route_table
- aws_ec2_transit_gateway_vpc_attachment
- aws_ec2_transit_gateway
- aws_guardduty_detector

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccXXX'

...

@tbugfinder tbugfinder requested a review from a team as a code owner December 9, 2020 13:11
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. service/ec2 Issues and PRs that pertain to the ec2 service. service/guardduty Issues and PRs that pertain to the guardduty service. labels Dec 9, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Dec 9, 2020
@bflad bflad added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Dec 9, 2020
@bflad bflad added this to the v3.21.0 milestone Dec 9, 2020
@bflad bflad self-assigned this Dec 9, 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.

This looks good, thank you for submitting this, @tbugfinder 🚀

Output from acceptance testing:

--- PASS: TestAccAWSCustomerGatewayDataSource_Filter (31.36s)
--- PASS: TestAccAWSCustomerGatewayDataSource_ID (30.34s)

--- PASS: TestAccAWSEc2TransitGatewayDataSource_Filter (229.70s)
--- PASS: TestAccAWSEc2TransitGatewayDataSource_ID (229.67s)

--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource_Filter_sameAccount (360.45s)
--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource_ID_sameAccount (354.61s)
--- PASS: TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource_Tags (356.09s)

--- PASS: TestAccAWSEc2TransitGatewayRouteTableDataSource_Filter (357.03s)
--- PASS: TestAccAWSEc2TransitGatewayRouteTableDataSource_ID (356.56s)

--- PASS: TestAccAWSEc2TransitGatewayVpcAttachmentDataSource_Filter (370.77s)
--- PASS: TestAccAWSEc2TransitGatewayVpcAttachmentDataSource_ID (371.30s)

@bflad bflad merged commit 33f5ce0 into hashicorp:master Dec 9, 2020
bflad added a commit that referenced this pull request Dec 9, 2020
@ghost
Copy link

ghost commented Dec 11, 2020

This has been released in version 3.21.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 Jan 9, 2021

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 as resolved and limited conversation to collaborators Jan 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service. service/guardduty Issues and PRs that pertain to the guardduty service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
2 participants