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

New resource: aws_servicecatalogappregistry_attribute_group_association #38290

Merged
merged 20 commits into from
Dec 9, 2024

Conversation

drewtul
Copy link
Contributor

@drewtul drewtul commented Jul 8, 2024

Description

New resource to associate applications with attribute groups.

Relations

Depends on #38243

References

Output from Acceptance Testing

% make testacc TESTS=TestAccServiceCatalogAppRegistryApplicationAttributeGroupAssociation_ PKG=servicecatalogappregistry
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.4 test ./internal/service/servicecatalogappregistry/... -v -count 1 -parallel 20 -run='TestAccServiceCatalogAppRegistryApplicationAttributeGroupAssociation_'  -timeout 360m
=== RUN   TestAccServiceCatalogAppRegistryApplicationAttributeGroupAssociation_basic
=== PAUSE TestAccServiceCatalogAppRegistryApplicationAttributeGroupAssociation_basic
=== RUN   TestAccServiceCatalogAppRegistryApplicationAttributeGroupAssociation_disappears
=== PAUSE TestAccServiceCatalogAppRegistryApplicationAttributeGroupAssociation_disappears
=== CONT  TestAccServiceCatalogAppRegistryApplicationAttributeGroupAssociation_basic
=== CONT  TestAccServiceCatalogAppRegistryApplicationAttributeGroupAssociation_disappears
--- PASS: TestAccServiceCatalogAppRegistryApplicationAttributeGroupAssociation_disappears (20.01s)
--- PASS: TestAccServiceCatalogAppRegistryApplicationAttributeGroupAssociation_basic (21.67s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/servicecatalogappregistry  26.056s

...

Copy link

github-actions bot commented Jul 8, 2024

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/XL Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. generators Relates to code generators. service/servicecatalogappregistry Issues and PRs that pertain to the servicecatalogappregistry service. labels Jul 8, 2024
@terraform-aws-provider terraform-aws-provider bot added needs-triage Waiting for first response or review from a maintainer. partner Contribution from a partner. labels Jul 8, 2024
@drewtul drewtul marked this pull request as ready for review July 9, 2024 11:43
@drewtul drewtul requested a review from a team as a code owner July 9, 2024 11:43
@drewtul drewtul changed the title New resource: aws_application_attribute_group_association New resource: aws_servicecatalogappregistry_application_attribute_group_association Jul 9, 2024
@justinretzolk justinretzolk added new-resource Introduces a new resource. and removed needs-triage Waiting for first response or review from a maintainer. labels Jul 9, 2024
@drewtul drewtul force-pushed the f-sc-appregistry-app-ag-association branch from e685e66 to 30c605b Compare November 29, 2024 16:02
@drewtul drewtul force-pushed the f-sc-appregistry-app-ag-association branch from 8220636 to 7e1d630 Compare December 6, 2024 18:11
jar-b added 3 commits December 9, 2024 11:06
…esource name

Updates the resource name to `aws_servicecatalogappregistry_attribute_group_association` to correspond with the name of the AWS API, `AssociateAttributeGroup`.
jar-b added 5 commits December 9, 2024 14:19
…ttribute

Removes the `id` attribute in favor of splitting the provided identifier on import into the requisite parts. Also refactors the attribute group association finder function and re-uses it across acceptance test helper functions.

```console
% make testacc PKG=servicecatalogappregistry TESTS=TestAccServiceCatalogAppRegistryAttributeGroupAssociation_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/servicecatalogappregistry/... -v -count 1 -parallel 20 -run='TestAccServiceCatalogAppRegistryAttributeGroupAssociation_'  -timeout 360m
2024/12/09 14:07:58 Initializing Terraform AWS Provider...

--- PASS: TestAccServiceCatalogAppRegistryAttributeGroupAssociation_disappears (14.56s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroupAssociation_basic (15.44s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/servicecatalogappregistry  20.539s
```
jar-b
jar-b previously approved these changes Dec 9, 2024
Copy link
Member

@jar-b jar-b left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

% make testacc PKG=servicecatalogappregistry TESTS=TestAccServiceCatalogAppRegistryAttributeGroupAssociation_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/servicecatalogappregistry/... -v -count 1 -parallel 20 -run='TestAccServiceCatalogAppRegistryAttributeGroupAssociation_'  -timeout 360m
2024/12/09 14:37:32 Initializing Terraform AWS Provider...

--- PASS: TestAccServiceCatalogAppRegistryAttributeGroupAssociation_disappears (13.50s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroupAssociation_basic (15.11s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/servicecatalogappregistry  20.294s

@jar-b
Copy link
Member

jar-b commented Dec 9, 2024

Thanks for your contribution, @drewtul! 👍

I changed the resource name to aws_servicecatalogappregistry_attribute_group_association to correspond with the name of the AWS API, AssociateAttributeGroup.

Copy link
Member

@YakDriver YakDriver left a comment

Choose a reason for hiding this comment

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

% make testacc PKG=servicecatalogappregistry TESTS=TestAccServiceCatalogAppRegistryAttributeGroupAssociation_

make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/servicecatalogappregistry/... -v -count 1 -parallel 20 -run='TestAccServiceCatalogAppRegistryAttributeGroupAssociation_'  -timeout 360m
2024/12/09 15:45:42 Initializing Terraform AWS Provider...
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroupAssociation_basic
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroupAssociation_basic
=== RUN   TestAccServiceCatalogAppRegistryAttributeGroupAssociation_disappears
=== PAUSE TestAccServiceCatalogAppRegistryAttributeGroupAssociation_disappears
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroupAssociation_basic
=== CONT  TestAccServiceCatalogAppRegistryAttributeGroupAssociation_disappears
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroupAssociation_disappears (13.24s)
--- PASS: TestAccServiceCatalogAppRegistryAttributeGroupAssociation_basic (14.76s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/servicecatalogappregistry	18.947s

@jar-b jar-b merged commit 6ca67dc into hashicorp:main Dec 9, 2024
41 checks passed
@github-actions github-actions bot added this to the v5.81.0 milestone Dec 9, 2024
@jar-b jar-b changed the title New resource: aws_servicecatalogappregistry_application_attribute_group_association New resource: aws_servicecatalogappregistry_attribute_group_association Dec 10, 2024
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Introduces or discusses updates to documentation. generators Relates to code generators. new-resource Introduces a new resource. partner Contribution from a partner. service/servicecatalogappregistry Issues and PRs that pertain to the servicecatalogappregistry 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.

4 participants