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

tags: duplicate and computed tags on framework #30973

Merged
merged 4 commits into from
Apr 26, 2023

Conversation

johnsonaj
Copy link
Contributor

@johnsonaj johnsonaj commented Apr 25, 2023

Description

  • Allow duplicate tags on framework resources
  • properly sets ignore_config on SDK and Framework resources

Relations

Relates #29747
Relates #19583
Relates #19204
Relates #18311

References

Output from Acceptance Testing

SDK

$ 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:942: skipping long-running test in short mode
--- SKIP: TestAccVPC_IPAMIPv4BasicNetmask (0.00s)
    vpc_test.go:969: skipping long-running test in short mode
--- SKIP: TestAccVPC_IPAMIPv4BasicExplicitCIDR (0.00s)
    vpc_test.go:997: skipping long-running test in short mode
--- SKIP: TestAccVPC_IPAMIPv6 (0.00s)
=== NAME  TestAccVPC_assignGeneratedIPv6CIDRBlockWithNetworkBorderGroup
    ec2_availability_zone_data_source_test.go:211: skipping since no Local Zones are available
--- SKIP: TestAccVPC_assignGeneratedIPv6CIDRBlockWithNetworkBorderGroup (0.79s)
--- PASS: TestAccVPC_disappears (24.10s)
--- PASS: TestAccVPC_DefaultTagsProviderAndResource_duplicateTag (26.79s)
--- PASS: TestAccVPC_tags_computed (30.59s)
--- PASS: TestAccVPC_basic (33.86s)
--- PASS: TestAccVPC_bothDNSOptionsSet (41.41s)
--- PASS: TestAccVPC_enableNetworkAddressUsageMetrics (41.61s)
--- PASS: TestAccVPC_DefaultTags_updateToResourceOnly (44.95s)
--- PASS: TestAccVPC_DefaultTags_updateToProviderOnly (48.31s)
--- PASS: TestAccVPC_DynamicResourceTags_ignoreChanges (48.40s)
--- PASS: TestAccVPC_DynamicResourceTagsMergedWithLocals_ignoreChanges (48.80s)
--- PASS: TestAccVPC_ignoreTags (50.52s)
--- PASS: TestAccVPC_defaultAndIgnoreTags (51.33s)
--- PASS: TestAccVPC_DefaultTags_zeroValue (54.30s)
--- PASS: TestAccVPC_DefaultTagsProviderAndResource_overlappingTag (54.46s)
--- PASS: TestAccVPC_updateDNSHostnames (55.16s)
--- PASS: TestAccVPC_disabledDNSSupport (33.35s)
--- PASS: TestAccVPC_DefaultTagsProviderAndResource_nonOverlappingTag (58.05s)
--- PASS: TestAccVPC_DefaultTags_providerOnlyTestAccVPC_DefaultTags_providerOnly (58.08s)
--- PASS: TestAccVPC_tags (62.43s)
--- PASS: TestAccVPC_tenancy (64.32s)
--- PASS: TestAccVPC_assignGeneratedIPv6CIDRBlock (87.10s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	90.181s
...

Framework

$ make testacc TESTARGS='-run=TestAccVPCSecurityGroupIngressRule_' PKG=vpc

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20  -run=TestAccVPCSecurityGroupIngressRule_ -timeout 180m
--- PASS: TestAccVPCSecurityGroupIngressRule_DefaultTagsProviderAndResource_duplicateTag (31.91s)
--- PASS: TestAccVPCSecurityGroupIngressRule_disappears (37.61s)
--- PASS: TestAccVPCSecurityGroupIngressRule_tags_computed (38.09s)
--- PASS: TestAccVPCSecurityGroupIngressRule_basic (41.36s)
--- PASS: TestAccVPCSecurityGroupIngressRule_ReferencedSecurityGroupID_peerVPC (50.09s)
--- PASS: TestAccVPCSecurityGroupIngressRule_DefaultTags_updateToProviderOnly (56.44s)
--- PASS: TestAccVPCSecurityGroupIngressRule_DefaultTags_updateToResourceOnly (57.47s)
--- PASS: TestAccVPCSecurityGroupIngressRule_referencedSecurityGroupID (60.08s)
--- PASS: TestAccVPCSecurityGroupIngressRule_description (60.16s)
--- PASS: TestAccVPCSecurityGroupIngressRule_cidrIPv6 (60.17s)
--- PASS: TestAccVPCSecurityGroupIngressRule_cidrIPv4 (60.17s)
--- PASS: TestAccVPCSecurityGroupIngressRule_updateSourceType (61.45s)
--- PASS: TestAccVPCSecurityGroupIngressRule_defaultAndIgnoreTags (62.26s)
--- PASS: TestAccVPCSecurityGroupIngressRule_ignoreTags (63.06s)
--- PASS: TestAccVPCSecurityGroupIngressRule_DefaultTagsProviderAndResource_nonOverlappingTag (65.21s)
--- PASS: TestAccVPCSecurityGroupIngressRule_prefixListID (66.34s)
--- PASS: TestAccVPCSecurityGroupIngressRule_DefaultTagsProviderAndResource_overlappingTag (67.40s)
--- PASS: TestAccVPCSecurityGroupIngressRule_DefaultTags_providerOnly (67.89s)
--- PASS: TestAccVPCSecurityGroupIngressRule_updateTagsKnownAtApply (67.89s)
--- PASS: TestAccVPCSecurityGroupIngressRule_tags (72.75s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	75.916s

@github-actions
Copy link

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 size/XS Managed by automation to categorize the size of a PR. provider Pertains to the provider itself, rather than any interaction with AWS. tags Pertains to resource tagging. size/S Managed by automation to categorize the size of a PR. service/vpc Issues and PRs that pertain to the vpc service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/M Managed by automation to categorize the size of a PR. and removed size/XS Managed by automation to categorize the size of a PR. size/S Managed by automation to categorize the size of a PR. labels Apr 25, 2023
@johnsonaj johnsonaj added this to the v5.0.0 milestone Apr 26, 2023
@johnsonaj johnsonaj marked this pull request as ready for review April 26, 2023 01:52
@johnsonaj johnsonaj merged commit ec9ea3b into prerelease/5.x Apr 26, 2023
@johnsonaj johnsonaj deleted the f-default_tags_v5_framework branch April 26, 2023 16:07
@github-actions github-actions bot modified the milestones: v5.0.0, v4.65.0 Apr 26, 2023
@johnsonaj johnsonaj modified the milestones: v4.65.0, v5.0.0 Apr 26, 2023
@github-actions
Copy link

This functionality has been released in v5.0.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 Jun 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
provider Pertains to the provider itself, rather than any interaction with AWS. 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.

1 participant