-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Migrate ram
resources to AWS Go SDKv2
#37450
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Thank you for your contribution! 🚀 Please note that typically Go dependency changes are handled in this repository by dependabot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the Additional details:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccRAM' PKG=ram ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.2 test ./internal/service/ram/... -v -count 1 -parallel 3 -run=TestAccRAM -timeout 360m
=== RUN TestAccRAMPrincipalAssociation_basic
=== PAUSE TestAccRAMPrincipalAssociation_basic
=== RUN TestAccRAMPrincipalAssociation_AccountID
=== PAUSE TestAccRAMPrincipalAssociation_AccountID
=== RUN TestAccRAMPrincipalAssociation_disappears
=== PAUSE TestAccRAMPrincipalAssociation_disappears
=== RUN TestAccRAMPrincipalAssociation_duplicate
=== PAUSE TestAccRAMPrincipalAssociation_duplicate
=== RUN TestAccRAMResourceAssociation_basic
=== PAUSE TestAccRAMResourceAssociation_basic
=== RUN TestAccRAMResourceAssociation_disappears
=== PAUSE TestAccRAMResourceAssociation_disappears
=== RUN TestAccRAMResourceAssociation_duplicate
=== PAUSE TestAccRAMResourceAssociation_duplicate
=== RUN TestAccRAMResourceShareAccepter_basic
=== PAUSE TestAccRAMResourceShareAccepter_basic
=== RUN TestAccRAMResourceShareAccepter_disappears
=== PAUSE TestAccRAMResourceShareAccepter_disappears
=== RUN TestAccRAMResourceShareAccepter_resourceAssociation
=== PAUSE TestAccRAMResourceShareAccepter_resourceAssociation
=== RUN TestAccRAMResourceShareDataSource_basic
=== PAUSE TestAccRAMResourceShareDataSource_basic
=== RUN TestAccRAMResourceShareDataSource_tags
=== PAUSE TestAccRAMResourceShareDataSource_tags
=== RUN TestAccRAMResourceShareDataSource_resources
=== PAUSE TestAccRAMResourceShareDataSource_resources
=== RUN TestAccRAMResourceShareDataSource_status
=== PAUSE TestAccRAMResourceShareDataSource_status
=== RUN TestAccRAMResourceShare_basic
=== PAUSE TestAccRAMResourceShare_basic
=== RUN TestAccRAMResourceShare_permission
=== PAUSE TestAccRAMResourceShare_permission
=== RUN TestAccRAMResourceShare_allowExternalPrincipals
=== PAUSE TestAccRAMResourceShare_allowExternalPrincipals
=== RUN TestAccRAMResourceShare_name
=== PAUSE TestAccRAMResourceShare_name
=== RUN TestAccRAMResourceShare_tags
=== PAUSE TestAccRAMResourceShare_tags
=== RUN TestAccRAMResourceShare_disappears
=== PAUSE TestAccRAMResourceShare_disappears
=== RUN TestAccRAMSharingWithOrganization_serial
=== PAUSE TestAccRAMSharingWithOrganization_serial
=== CONT TestAccRAMPrincipalAssociation_basic
=== CONT TestAccRAMResourceShareDataSource_tags
=== CONT TestAccRAMResourceShare_allowExternalPrincipals
=== NAME TestAccRAMPrincipalAssociation_basic
principal_association_test.go:139: Sharing with AWS Organization not found, skipping acceptance test: reading IAM Role (AWSServiceRoleForResourceAccessManager): couldn't find resource
--- SKIP: TestAccRAMPrincipalAssociation_basic (0.57s)
=== CONT TestAccRAMSharingWithOrganization_serial
=== RUN TestAccRAMSharingWithOrganization_serial/basic
--- PASS: TestAccRAMResourceShareDataSource_tags (23.72s)
=== CONT TestAccRAMResourceShare_disappears
--- PASS: TestAccRAMResourceShare_allowExternalPrincipals (24.45s)
=== CONT TestAccRAMResourceShare_tags
=== RUN TestAccRAMSharingWithOrganization_serial/disappears
--- PASS: TestAccRAMResourceShare_disappears (12.95s)
=== CONT TestAccRAMResourceShare_name
--- PASS: TestAccRAMSharingWithOrganization_serial (45.95s)
--- PASS: TestAccRAMSharingWithOrganization_serial/basic (24.39s)
--- PASS: TestAccRAMSharingWithOrganization_serial/disappears (21.55s)
=== CONT TestAccRAMResourceShare_basic
--- PASS: TestAccRAMResourceShare_tags (32.01s)
=== CONT TestAccRAMResourceShare_permission
--- PASS: TestAccRAMResourceShare_name (23.20s)
=== CONT TestAccRAMResourceShareDataSource_status
--- PASS: TestAccRAMResourceShare_basic (14.27s)
=== CONT TestAccRAMResourceAssociation_duplicate
principal_association_test.go:139: Sharing with AWS Organization not found, skipping acceptance test: reading IAM Role (AWSServiceRoleForResourceAccessManager): couldn't find resource
--- SKIP: TestAccRAMResourceAssociation_duplicate (0.04s)
=== CONT TestAccRAMResourceShareDataSource_basic
--- PASS: TestAccRAMResourceShare_permission (14.79s)
=== CONT TestAccRAMResourceShareAccepter_resourceAssociation
--- PASS: TestAccRAMResourceShareDataSource_status (14.03s)
=== CONT TestAccRAMResourceShareDataSource_resources
principal_association_test.go:139: Sharing with AWS Organization not found, skipping acceptance test: reading IAM Role (AWSServiceRoleForResourceAccessManager): couldn't find resource
--- SKIP: TestAccRAMResourceShareDataSource_resources (0.07s)
=== CONT TestAccRAMResourceShareAccepter_disappears
--- PASS: TestAccRAMResourceShareDataSource_basic (14.18s)
=== CONT TestAccRAMResourceShareAccepter_basic
--- PASS: TestAccRAMResourceShareAccepter_basic (27.41s)
=== CONT TestAccRAMPrincipalAssociation_duplicate
principal_association_test.go:139: Sharing with AWS Organization not found, skipping acceptance test: reading IAM Role (AWSServiceRoleForResourceAccessManager): couldn't find resource
--- SKIP: TestAccRAMPrincipalAssociation_duplicate (0.05s)
=== CONT TestAccRAMPrincipalAssociation_disappears
principal_association_test.go:139: Sharing with AWS Organization not found, skipping acceptance test: reading IAM Role (AWSServiceRoleForResourceAccessManager): couldn't find resource
--- SKIP: TestAccRAMPrincipalAssociation_disappears (0.06s)
=== CONT TestAccRAMResourceAssociation_disappears
principal_association_test.go:139: Sharing with AWS Organization not found, skipping acceptance test: reading IAM Role (AWSServiceRoleForResourceAccessManager): couldn't find resource
--- SKIP: TestAccRAMResourceAssociation_disappears (0.05s)
=== CONT TestAccRAMPrincipalAssociation_AccountID
--- PASS: TestAccRAMResourceShareAccepter_resourceAssociation (32.66s)
=== CONT TestAccRAMResourceAssociation_basic
principal_association_test.go:139: Sharing with AWS Organization not found, skipping acceptance test: reading IAM Role (AWSServiceRoleForResourceAccessManager): couldn't find resource
--- SKIP: TestAccRAMResourceAssociation_basic (0.06s)
--- PASS: TestAccRAMPrincipalAssociation_AccountID (20.08s)
--- PASS: TestAccRAMResourceShareAccepter_disappears (142.97s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ram 221.099s
% make testacc TESTARGS='-run=TestAccRAMResourceAssociation_\|TestAccRAMPrincipalAssociation_\|TestAccRAMResourceShareDataSource_resources' PKG=ram ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.2 test ./internal/service/ram/... -v -count 1 -parallel 3 -run=TestAccRAMResourceAssociation_\|TestAccRAMPrincipalAssociation_\|TestAccRAMResourceShareDataSource_resources -timeout 360m
=== RUN TestAccRAMPrincipalAssociation_basic
=== PAUSE TestAccRAMPrincipalAssociation_basic
=== RUN TestAccRAMPrincipalAssociation_AccountID
=== PAUSE TestAccRAMPrincipalAssociation_AccountID
=== RUN TestAccRAMPrincipalAssociation_disappears
=== PAUSE TestAccRAMPrincipalAssociation_disappears
=== RUN TestAccRAMPrincipalAssociation_duplicate
=== PAUSE TestAccRAMPrincipalAssociation_duplicate
=== RUN TestAccRAMResourceAssociation_basic
=== PAUSE TestAccRAMResourceAssociation_basic
=== RUN TestAccRAMResourceAssociation_disappears
=== PAUSE TestAccRAMResourceAssociation_disappears
=== RUN TestAccRAMResourceAssociation_duplicate
=== PAUSE TestAccRAMResourceAssociation_duplicate
=== RUN TestAccRAMResourceShareDataSource_resources
=== PAUSE TestAccRAMResourceShareDataSource_resources
=== CONT TestAccRAMPrincipalAssociation_basic
=== CONT TestAccRAMResourceAssociation_basic
=== CONT TestAccRAMPrincipalAssociation_disappears
--- PASS: TestAccRAMPrincipalAssociation_disappears (18.73s)
=== CONT TestAccRAMPrincipalAssociation_duplicate
--- PASS: TestAccRAMPrincipalAssociation_basic (20.88s)
=== CONT TestAccRAMPrincipalAssociation_AccountID
--- PASS: TestAccRAMResourceAssociation_basic (23.30s)
=== CONT TestAccRAMResourceAssociation_duplicate
--- PASS: TestAccRAMPrincipalAssociation_duplicate (13.08s)
=== CONT TestAccRAMResourceShareDataSource_resources
--- PASS: TestAccRAMResourceAssociation_duplicate (14.26s)
=== CONT TestAccRAMResourceAssociation_disappears
--- PASS: TestAccRAMPrincipalAssociation_AccountID (22.42s)
--- PASS: TestAccRAMResourceShareDataSource_resources (23.29s)
--- PASS: TestAccRAMResourceAssociation_disappears (20.66s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ram 62.269s
@DanielRieske Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.50.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! |
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. |
Description
This PR migrates
ram
resources to AWS SDKv2Also fixes #37320
Note: I don't have access to an AWS account that is able to run the remainder of tests.
Note (2): Please double-check the approach for the validation fix I made on the ARN.
ValidARNCheck
incorrectly accepted an empty value and didn't append an error for it, therefore an empty value would be accepted by the validator.Because this is used for many resources, I'd like to double-check if this is the right approach.
Relations
Closes #36199
Closes #37320
References
Output from Acceptance Testing