-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
feat: Mark name arg as optional to match AWS API for aws_ram_resource_share data source #36062
feat: Mark name arg as optional to match AWS API for aws_ram_resource_share data source #36062
Conversation
Community NoteVoting for Prioritization
For Submitters
|
…_share data source
b7e7f76
to
39b240b
Compare
% make testacc TESTARGS='-run=TestAccRAMResourceShareDataSource_' PKG=ram ACCTEST_PARALLELISM=2 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.21.8 test ./internal/service/ram/... -v -count 1 -parallel 2 -run=TestAccRAMResourceShareDataSource_ -timeout 360m === RUN TestAccRAMResourceShareDataSource_basic === PAUSE TestAccRAMResourceShareDataSource_basic === RUN TestAccRAMResourceShareDataSource_tags === PAUSE TestAccRAMResourceShareDataSource_tags === RUN TestAccRAMResourceShareDataSource_resources === PAUSE TestAccRAMResourceShareDataSource_resources === RUN TestAccRAMResourceShareDataSource_status === PAUSE TestAccRAMResourceShareDataSource_status === CONT TestAccRAMResourceShareDataSource_basic === CONT TestAccRAMResourceShareDataSource_resources --- PASS: TestAccRAMResourceShareDataSource_basic (22.08s) === CONT TestAccRAMResourceShareDataSource_status --- PASS: TestAccRAMResourceShareDataSource_resources (31.19s) === CONT TestAccRAMResourceShareDataSource_tags --- PASS: TestAccRAMResourceShareDataSource_status (20.36s) --- PASS: TestAccRAMResourceShareDataSource_tags (33.33s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/ram 71.779s
% make testacc TESTARGS='-run=TestAccRAMSharingWithOrganization_serial' PKG=ram ACCTEST_PARALLELISM=2 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.21.8 test ./internal/service/ram/... -v -count 1 -parallel 2 -run=TestAccRAMSharingWithOrganization_serial -timeout 360m === RUN TestAccRAMSharingWithOrganization_serial === PAUSE TestAccRAMSharingWithOrganization_serial === CONT TestAccRAMSharingWithOrganization_serial === RUN TestAccRAMSharingWithOrganization_serial/basic === RUN TestAccRAMSharingWithOrganization_serial/disappears --- PASS: TestAccRAMSharingWithOrganization_serial (62.85s) --- PASS: TestAccRAMSharingWithOrganization_serial/basic (33.02s) --- PASS: TestAccRAMSharingWithOrganization_serial/disappears (29.83s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/ram 69.848s
% make testacc TESTARGS='-run=TestAccRAMPrincipalAssociation_duplicate' PKG=ram ACCTEST_PARALLELISM=2 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.21.8 test ./internal/service/ram/... -v -count 1 -parallel 2 -run=TestAccRAMPrincipalAssociation_duplicate -timeout 360m === RUN TestAccRAMPrincipalAssociation_duplicate === PAUSE TestAccRAMPrincipalAssociation_duplicate === CONT TestAccRAMPrincipalAssociation_duplicate --- PASS: TestAccRAMPrincipalAssociation_duplicate (28.71s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/ram 35.841s
% make testacc TESTARGS='-run=TestAccRAMResourceAssociation_duplicate' PKG=ram ACCTEST_PARALLELISM=2 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.21.8 test ./internal/service/ram/... -v -count 1 -parallel 2 -run=TestAccRAMResourceAssociation_duplicate -timeout 360m === RUN TestAccRAMResourceAssociation_duplicate === PAUSE TestAccRAMResourceAssociation_duplicate === CONT TestAccRAMResourceAssociation_duplicate --- PASS: TestAccRAMResourceAssociation_duplicate (27.12s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/ram 34.588s
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=TestAccRAMResourceShareDataSource_' PKG=ram ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.21.8 test ./internal/service/ram/... -v -count 1 -parallel 2 -run=TestAccRAMResourceShareDataSource_ -timeout 360m
=== RUN TestAccRAMResourceShareDataSource_basic
=== PAUSE TestAccRAMResourceShareDataSource_basic
=== RUN TestAccRAMResourceShareDataSource_tags
=== PAUSE TestAccRAMResourceShareDataSource_tags
=== RUN TestAccRAMResourceShareDataSource_resources
=== PAUSE TestAccRAMResourceShareDataSource_resources
=== RUN TestAccRAMResourceShareDataSource_status
=== PAUSE TestAccRAMResourceShareDataSource_status
=== CONT TestAccRAMResourceShareDataSource_basic
=== CONT TestAccRAMResourceShareDataSource_resources
--- PASS: TestAccRAMResourceShareDataSource_basic (22.08s)
=== CONT TestAccRAMResourceShareDataSource_status
--- PASS: TestAccRAMResourceShareDataSource_resources (31.19s)
=== CONT TestAccRAMResourceShareDataSource_tags
--- PASS: TestAccRAMResourceShareDataSource_status (20.36s)
--- PASS: TestAccRAMResourceShareDataSource_tags (33.33s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ram 71.779s
% make testacc TESTARGS='-run=TestAccRAMResourceShare_' PKG=ram ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.21.8 test ./internal/service/ram/... -v -count 1 -parallel 2 -run=TestAccRAMResourceShare_ -timeout 360m
=== 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
=== CONT TestAccRAMResourceShare_basic
=== CONT TestAccRAMResourceShare_name
--- PASS: TestAccRAMResourceShare_basic (23.95s)
=== CONT TestAccRAMResourceShare_allowExternalPrincipals
--- PASS: TestAccRAMResourceShare_name (37.23s)
=== CONT TestAccRAMResourceShare_disappears
--- PASS: TestAccRAMResourceShare_disappears (20.75s)
=== CONT TestAccRAMResourceShare_tags
--- PASS: TestAccRAMResourceShare_allowExternalPrincipals (36.64s)
=== CONT TestAccRAMResourceShare_permission
--- PASS: TestAccRAMResourceShare_permission (22.81s)
--- PASS: TestAccRAMResourceShare_tags (48.71s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ram 113.847s
% make testacc TESTARGS='-run=TestAccRAMSharingWithOrganization_serial' PKG=ram ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.21.8 test ./internal/service/ram/... -v -count 1 -parallel 2 -run=TestAccRAMSharingWithOrganization_serial -timeout 360m
=== RUN TestAccRAMSharingWithOrganization_serial
=== PAUSE TestAccRAMSharingWithOrganization_serial
=== CONT TestAccRAMSharingWithOrganization_serial
=== RUN TestAccRAMSharingWithOrganization_serial/basic
=== RUN TestAccRAMSharingWithOrganization_serial/disappears
--- PASS: TestAccRAMSharingWithOrganization_serial (62.85s)
--- PASS: TestAccRAMSharingWithOrganization_serial/basic (33.02s)
--- PASS: TestAccRAMSharingWithOrganization_serial/disappears (29.83s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ram 69.848s
% make testacc TESTARGS='-run=TestAccRAMResourceShareAccepter_' PKG=ram ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.21.8 test ./internal/service/ram/... -v -count 1 -parallel 2 -run=TestAccRAMResourceShareAccepter_ -timeout 360m
=== RUN TestAccRAMResourceShareAccepter_basic
=== PAUSE TestAccRAMResourceShareAccepter_basic
=== RUN TestAccRAMResourceShareAccepter_disappears
=== PAUSE TestAccRAMResourceShareAccepter_disappears
=== RUN TestAccRAMResourceShareAccepter_resourceAssociation
=== PAUSE TestAccRAMResourceShareAccepter_resourceAssociation
=== CONT TestAccRAMResourceShareAccepter_basic
=== CONT TestAccRAMResourceShareAccepter_resourceAssociation
--- PASS: TestAccRAMResourceShareAccepter_basic (40.32s)
=== CONT TestAccRAMResourceShareAccepter_disappears
--- PASS: TestAccRAMResourceShareAccepter_resourceAssociation (42.29s)
--- PASS: TestAccRAMResourceShareAccepter_disappears (151.63s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ram 198.903s
% make testacc TESTARGS='-run=TestAccRAMResourceAssociation_' PKG=ram ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.21.8 test ./internal/service/ram/... -v -count 1 -parallel 2 -run=TestAccRAMResourceAssociation_ -timeout 360m
=== RUN TestAccRAMResourceAssociation_basic
=== PAUSE TestAccRAMResourceAssociation_basic
=== RUN TestAccRAMResourceAssociation_disappears
=== PAUSE TestAccRAMResourceAssociation_disappears
=== RUN TestAccRAMResourceAssociation_duplicate
=== PAUSE TestAccRAMResourceAssociation_duplicate
=== CONT TestAccRAMResourceAssociation_basic
=== CONT TestAccRAMResourceAssociation_duplicate
--- PASS: TestAccRAMResourceAssociation_duplicate (18.07s)
=== CONT TestAccRAMResourceAssociation_disappears
--- PASS: TestAccRAMResourceAssociation_basic (31.49s)
--- PASS: TestAccRAMResourceAssociation_disappears (27.48s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ram 53.148s
% make testacc TESTARGS='-run=TestAccRAMPrincipalAssociation_' PKG=ram ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.21.8 test ./internal/service/ram/... -v -count 1 -parallel 2 -run=TestAccRAMPrincipalAssociation_ -timeout 360m
=== RUN TestAccRAMPrincipalAssociation_basic
=== PAUSE TestAccRAMPrincipalAssociation_basic
=== RUN TestAccRAMPrincipalAssociation_AccountID
=== PAUSE TestAccRAMPrincipalAssociation_AccountID
=== RUN TestAccRAMPrincipalAssociation_disappears
=== PAUSE TestAccRAMPrincipalAssociation_disappears
=== CONT TestAccRAMPrincipalAssociation_basic
=== CONT TestAccRAMPrincipalAssociation_disappears
--- PASS: TestAccRAMPrincipalAssociation_disappears (23.80s)
=== CONT TestAccRAMPrincipalAssociation_AccountID
principal_association_test.go:58: skipping test because at least one environment variable of [AWS_ALTERNATE_PROFILE AWS_ALTERNATE_ACCESS_KEY_ID] must be set. Usage: credentials for running acceptance testing in alternate AWS account.
--- SKIP: TestAccRAMPrincipalAssociation_AccountID (0.00s)
--- PASS: TestAccRAMPrincipalAssociation_basic (26.39s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ram 33.299s
% make testacc TESTARGS='-run=TestAccRAMPrincipalAssociation_' PKG=ram ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.21.8 test ./internal/service/ram/... -v -count 1 -parallel 2 -run=TestAccRAMPrincipalAssociation_ -timeout 360m
=== RUN TestAccRAMPrincipalAssociation_basic
=== PAUSE TestAccRAMPrincipalAssociation_basic
=== RUN TestAccRAMPrincipalAssociation_AccountID
=== PAUSE TestAccRAMPrincipalAssociation_AccountID
=== RUN TestAccRAMPrincipalAssociation_disappears
=== PAUSE TestAccRAMPrincipalAssociation_disappears
=== CONT TestAccRAMPrincipalAssociation_basic
=== CONT TestAccRAMPrincipalAssociation_disappears
=== NAME TestAccRAMPrincipalAssociation_basic
principal_association_test.go:117: Sharing with AWS Organization not found, skipping acceptance test: reading IAM Role (AWSServiceRoleForResourceAccessManager): couldn't find resource
--- SKIP: TestAccRAMPrincipalAssociation_basic (1.57s)
=== CONT TestAccRAMPrincipalAssociation_AccountID
=== NAME TestAccRAMPrincipalAssociation_disappears
principal_association_test.go:117: Sharing with AWS Organization not found, skipping acceptance test: reading IAM Role (AWSServiceRoleForResourceAccessManager): couldn't find resource
--- SKIP: TestAccRAMPrincipalAssociation_disappears (1.58s)
--- PASS: TestAccRAMPrincipalAssociation_AccountID (30.37s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ram 38.839s
@acwwat Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.41.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 is to set the
name
argument to optional for theaws_ram_resource_share
data source, so that it matches the AWS API spec.Relations
Closes #33153.
Closes #33483.
Closes #36070.
Closes #35296.
References
Referred to GetResourceShares in API reference to confirm specs and behavior.
Output from Acceptance Testing