-
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
TechDebt: Move lightsail_domain_entry
to common separator
#30820
TechDebt: Move lightsail_domain_entry
to common separator
#30820
Conversation
…functions to allow for blank parts when expected
…to provide "allowEmpty" argument
…ions to provide "allowEmpty" argument
…n, add test coverage for legacy separator
…lowEmpty" parameter
…rator and update import docs
Community NoteVoting for Prioritization
For Submitters
|
@justinretzolk This change will not be a breaking change as the old id and new id are both supported. |
Hey @brittandeyoung 👋 Sorry about that! I pulled the label over based on the linked issue. Will remove it now! |
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 🎉
$ go test -count=1 ./internal/flex/...
ok github.com/hashicorp/terraform-provider-aws/internal/flex 0.168s
$ make testacc TESTARGS='-run=TestAccLightsailDomainEntry' PKG=lightsail
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/lightsail/... -v -count 1 -parallel 20 -run=TestAccLightsailDomainEntry -timeout 180m
--- PASS: TestAccLightsailDomainEntry_disappears (28.13s)
--- PASS: TestAccLightsailDomainEntry_underscore (30.74s)
--- PASS: TestAccLightsailDomainEntry_apex (31.18s)
--- PASS: TestAccLightsailDomainEntry_basic (31.90s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/lightsail 38.535s
$ make testacc TESTARGS='-run=TestAccLightsailBucketAccessKey' PKG=lightsail
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/lightsail/... -v -count 1 -parallel 20 -run=TestAccLightsailBucketAccessKey -timeout 180m
--- PASS: TestAccLightsailBucketAccessKey_disappears (43.86s)
--- PASS: TestAccLightsailBucketAccessKey_basic (47.16s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/lightsail 51.890
$ make testacc TESTARGS='-run=TestAccLightsailBucketResourceAccess' PKG=lightsail
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/lightsail/... -v -count 1 -parallel 20 -run=TestAccLightsailBucketResourceAccess -timeout 180m
--- PASS: TestAccLightsailBucketResourceAccess_basic (79.21s)
--- PASS: TestAccLightsailBucketResourceAccess_disappears (80.16s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/lightsail 83.543s
Proceeding with merge. Failing dead link check will be fixed with #31337. |
Thanks for your contribution, @brittandeyoung! 👏 |
This functionality has been released in v4.67.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 pull request moves the
lightsail_domain_entry
resource to use the standard resource id separator while still allowing imports and reading of existing resources using the legacy separator. Any instance of the legacy separator will be updated to the new separator on state refresh.The
ExpandResourceId
andFlattenResourceId
common functions have been expanded to require a boolean to determine if empty parts should be allowed. Added test cases for verify this new functionality.Added the
ResourceIdPartCount
function to get the part count of an Id utilizing the standard resource separator. Added test cases to validate function.Relations
Relates #27843
References
Output from Acceptance Testing