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

[bug]: perpdiff duplicate tags #31826

Merged
merged 6 commits into from
Jun 7, 2023
Merged

[bug]: perpdiff duplicate tags #31826

merged 6 commits into from
Jun 7, 2023

Conversation

johnsonaj
Copy link
Contributor

Description

When duplicate tags are moved from from tags to default_tags, and vice versa, the state fails to update correctly. This causes a perpetual diff.

Relations

Closes #31695

References

Output from Acceptance Testing

$ make testacc TESTARGS='-run=TestAccVPC_ -short' PKG=vpc

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20  -run=TestAccVPC_ -short -timeout 180m
    vpc_test.go:1015: skipping long-running test in short mode
--- SKIP: TestAccVPC_IPAMIPv4BasicNetmask (0.00s)
    vpc_test.go:1042: skipping long-running test in short mode
--- SKIP: TestAccVPC_IPAMIPv4BasicExplicitCIDR (0.00s)
    vpc_test.go:1070: skipping long-running test in short mode
--- SKIP: TestAccVPC_IPAMIPv6 (0.00s)
=== NAME  TestAccVPC_assignGeneratedIPv6CIDRBlockWithNetworkBorderGroup
    ec2_availability_zone_data_source_test.go:219: skipping since no Local Zones are available
--- SKIP: TestAccVPC_assignGeneratedIPv6CIDRBlockWithNetworkBorderGroup (1.05s)
--- PASS: TestAccVPC_disappears (39.96s)
--- PASS: TestAccVPC_DefaultTagsProviderAndResource_duplicateTag (43.17s)
--- PASS: TestAccVPC_tags_null (44.91s)
--- PASS: TestAccVPC_tags_computed (46.10s)
--- PASS: TestAccVPC_basic (54.50s)
--- PASS: TestAccVPC_enableNetworkAddressUsageMetrics (64.78s)
--- PASS: TestAccVPC_disabledDNSSupport (65.09s)
--- PASS: TestAccVPC_bothDNSOptionsSet (64.32s)
--- PASS: TestAccVPC_DefaultTags_updateToResourceOnly (77.44s)
--- PASS: TestAccVPC_DefaultTags_updateToProviderOnly (78.58s)
--- PASS: TestAccVPC_DynamicResourceTags_ignoreChanges (79.03s)
--- PASS: TestAccVPC_defaultAndIgnoreTags (82.45s)
--- PASS: TestAccVPC_updateDNSHostnames (83.52s)
--- PASS: TestAccVPC_DefaultTags_zeroValue (91.08s)
--- PASS: TestAccVPC_DefaultTagsProviderAndResource_overlappingTag (91.80s)
--- PASS: TestAccVPC_DefaultTagsProviderAndResource_moveDuplicateTags (92.47s)
--- PASS: TestAccVPC_DefaultTags_providerOnlyTestAccVPC_DefaultTags_providerOnly (93.20s)
--- PASS: TestAccVPC_DefaultTagsProviderAndResource_nonOverlappingTag (95.36s)
--- PASS: TestAccVPC_DynamicResourceTagsMergedWithLocals_ignoreChanges (58.45s)
--- PASS: TestAccVPC_tags (98.73s)
--- PASS: TestAccVPC_ignoreTags (57.67s)
--- PASS: TestAccVPC_tenancy (75.30s)
--- PASS: TestAccVPC_assignGeneratedIPv6CIDRBlock (119.43s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	122.660s

@github-actions
Copy link

github-actions bot commented Jun 7, 2023

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added service/vpc Issues and PRs that pertain to the vpc service. tags Pertains to resource tagging. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/M Managed by automation to categorize the size of a PR. labels Jun 7, 2023
@johnsonaj johnsonaj marked this pull request as ready for review June 7, 2023 16:49
@johnsonaj johnsonaj changed the title B perpdiff duplicate tags [bug]: perpdiff duplicate tags Jun 7, 2023
@johnsonaj johnsonaj force-pushed the b-perpdiff-duplicate-tags branch from 4147aae to 86c04b5 Compare June 7, 2023 17:46
@johnsonaj johnsonaj added the bug Addresses a defect in current functionality. label Jun 7, 2023
@johnsonaj johnsonaj merged commit 1831fed into main Jun 7, 2023
@johnsonaj johnsonaj deleted the b-perpdiff-duplicate-tags branch June 7, 2023 18:57
@github-actions github-actions bot added this to the v5.2.0 milestone Jun 7, 2023
github-actions bot pushed a commit that referenced this pull request Jun 7, 2023
@github-actions
Copy link

github-actions bot commented Jun 9, 2023

This functionality has been released in v5.2.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. Thank you!

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 11, 2023
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/vpc Issues and PRs that pertain to the vpc service. size/M Managed by automation to categorize the size of a PR. tags Pertains to resource tagging. 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.

[Bug]: terraform apply failed to remove resource's tag from state
1 participant