-
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
BugFix and Cleanup: Implement new Lightsail expandOperations
across all Lightsail resources. Additionally fix 3 reported Lightsail Bugs.
#30056
BugFix and Cleanup: Implement new Lightsail expandOperations
across all Lightsail resources. Additionally fix 3 reported Lightsail Bugs.
#30056
Conversation
…e region as provider
… availability_zone outside of provider region
Community NoteVoting for Prioritization
For Submitters
|
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 🚀.
% ACCTEST_TIMEOUT=360m make testacc TESTARGS='-run=TestAccLightsail' PKG=lightsail ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/lightsail/... -v -count 1 -parallel 2 -run=TestAccLightsail -timeout 360m
=== RUN TestAccLightsailBucketAccessKey_basic
=== PAUSE TestAccLightsailBucketAccessKey_basic
=== RUN TestAccLightsailBucketAccessKey_disappears
=== PAUSE TestAccLightsailBucketAccessKey_disappears
=== RUN TestAccLightsailBucketResourceAccess_basic
=== PAUSE TestAccLightsailBucketResourceAccess_basic
=== RUN TestAccLightsailBucketResourceAccess_disappears
=== PAUSE TestAccLightsailBucketResourceAccess_disappears
=== RUN TestAccLightsailBucket_basic
=== PAUSE TestAccLightsailBucket_basic
=== RUN TestAccLightsailBucket_BundleId
=== PAUSE TestAccLightsailBucket_BundleId
=== RUN TestAccLightsailBucket_disappears
=== PAUSE TestAccLightsailBucket_disappears
=== RUN TestAccLightsailBucket_tags
=== PAUSE TestAccLightsailBucket_tags
=== RUN TestAccLightsailCertificate_basic
=== PAUSE TestAccLightsailCertificate_basic
=== RUN TestAccLightsailCertificate_subjectAlternativeNames
=== PAUSE TestAccLightsailCertificate_subjectAlternativeNames
=== RUN TestAccLightsailCertificate_DomainValidationOptions
=== PAUSE TestAccLightsailCertificate_DomainValidationOptions
=== RUN TestAccLightsailCertificate_tags
=== PAUSE TestAccLightsailCertificate_tags
=== RUN TestAccLightsailCertificate_disappears
=== PAUSE TestAccLightsailCertificate_disappears
=== RUN TestAccLightsailContainerServiceDeploymentVersion_Container_Basic
=== PAUSE TestAccLightsailContainerServiceDeploymentVersion_Container_Basic
=== RUN TestAccLightsailContainerServiceDeploymentVersion_Container_Multiple
=== PAUSE TestAccLightsailContainerServiceDeploymentVersion_Container_Multiple
=== RUN TestAccLightsailContainerServiceDeploymentVersion_Container_Environment
=== PAUSE TestAccLightsailContainerServiceDeploymentVersion_Container_Environment
=== RUN TestAccLightsailContainerServiceDeploymentVersion_Container_Ports
=== PAUSE TestAccLightsailContainerServiceDeploymentVersion_Container_Ports
=== RUN TestAccLightsailContainerServiceDeploymentVersion_Container_PublicEndpoint
=== PAUSE TestAccLightsailContainerServiceDeploymentVersion_Container_PublicEndpoint
=== RUN TestAccLightsailContainerServiceDeploymentVersion_Container_EnableService
=== PAUSE TestAccLightsailContainerServiceDeploymentVersion_Container_EnableService
=== RUN TestAccLightsailContainerService_basic
=== PAUSE TestAccLightsailContainerService_basic
=== RUN TestAccLightsailContainerService_disappears
=== PAUSE TestAccLightsailContainerService_disappears
=== RUN TestAccLightsailContainerService_Name
=== PAUSE TestAccLightsailContainerService_Name
=== RUN TestAccLightsailContainerService_IsDisabled
=== PAUSE TestAccLightsailContainerService_IsDisabled
=== RUN TestAccLightsailContainerService_Power
=== PAUSE TestAccLightsailContainerService_Power
=== RUN TestAccLightsailContainerService_PublicDomainNames
=== PAUSE TestAccLightsailContainerService_PublicDomainNames
=== RUN TestAccLightsailContainerService_PrivateRegistryAccess
=== PAUSE TestAccLightsailContainerService_PrivateRegistryAccess
=== RUN TestAccLightsailContainerService_Scale
=== PAUSE TestAccLightsailContainerService_Scale
=== RUN TestAccLightsailContainerService_tags
=== PAUSE TestAccLightsailContainerService_tags
=== RUN TestAccLightsailDatabase_basic
=== PAUSE TestAccLightsailDatabase_basic
=== RUN TestAccLightsailDatabase_relationalDatabaseName
=== PAUSE TestAccLightsailDatabase_relationalDatabaseName
=== RUN TestAccLightsailDatabase_masterDatabaseName
=== PAUSE TestAccLightsailDatabase_masterDatabaseName
=== RUN TestAccLightsailDatabase_masterUsername
=== PAUSE TestAccLightsailDatabase_masterUsername
=== RUN TestAccLightsailDatabase_masterPassword
=== PAUSE TestAccLightsailDatabase_masterPassword
=== RUN TestAccLightsailDatabase_preferredBackupWindow
=== PAUSE TestAccLightsailDatabase_preferredBackupWindow
=== RUN TestAccLightsailDatabase_preferredMaintenanceWindow
=== PAUSE TestAccLightsailDatabase_preferredMaintenanceWindow
=== RUN TestAccLightsailDatabase_publiclyAccessible
=== PAUSE TestAccLightsailDatabase_publiclyAccessible
=== RUN TestAccLightsailDatabase_backupRetentionEnabled
=== PAUSE TestAccLightsailDatabase_backupRetentionEnabled
=== RUN TestAccLightsailDatabase_finalSnapshotName
=== PAUSE TestAccLightsailDatabase_finalSnapshotName
=== RUN TestAccLightsailDatabase_tags
=== PAUSE TestAccLightsailDatabase_tags
=== RUN TestAccLightsailDatabase_ha
=== PAUSE TestAccLightsailDatabase_ha
=== RUN TestAccLightsailDatabase_disappears
=== PAUSE TestAccLightsailDatabase_disappears
=== RUN TestAccLightsailDiskAttachment_basic
=== PAUSE TestAccLightsailDiskAttachment_basic
=== RUN TestAccLightsailDiskAttachment_disappears
=== PAUSE TestAccLightsailDiskAttachment_disappears
=== RUN TestAccLightsailDisk_basic
=== PAUSE TestAccLightsailDisk_basic
=== RUN TestAccLightsailDisk_Tags
=== PAUSE TestAccLightsailDisk_Tags
=== RUN TestAccLightsailDisk_disappears
=== PAUSE TestAccLightsailDisk_disappears
=== RUN TestAccLightsailDomainEntry_basic
=== PAUSE TestAccLightsailDomainEntry_basic
=== RUN TestAccLightsailDomainEntry_underscore
=== PAUSE TestAccLightsailDomainEntry_underscore
=== RUN TestAccLightsailDomainEntry_disappears
=== PAUSE TestAccLightsailDomainEntry_disappears
=== RUN TestAccLightsailDomain_basic
=== PAUSE TestAccLightsailDomain_basic
=== RUN TestAccLightsailDomain_disappears
=== PAUSE TestAccLightsailDomain_disappears
=== RUN TestAccLightsailInstancePublicPorts_basic
=== PAUSE TestAccLightsailInstancePublicPorts_basic
=== RUN TestAccLightsailInstancePublicPorts_multiple
=== PAUSE TestAccLightsailInstancePublicPorts_multiple
=== RUN TestAccLightsailInstancePublicPorts_cidrs
=== PAUSE TestAccLightsailInstancePublicPorts_cidrs
=== RUN TestAccLightsailInstancePublicPorts_cidrListAliases
=== PAUSE TestAccLightsailInstancePublicPorts_cidrListAliases
=== RUN TestAccLightsailInstancePublicPorts_disappears
=== PAUSE TestAccLightsailInstancePublicPorts_disappears
=== RUN TestAccLightsailInstancePublicPorts_disappears_Instance
=== PAUSE TestAccLightsailInstancePublicPorts_disappears_Instance
=== RUN TestAccLightsailInstance_basic
=== PAUSE TestAccLightsailInstance_basic
=== RUN TestAccLightsailInstance_name
=== PAUSE TestAccLightsailInstance_name
=== RUN TestAccLightsailInstance_tags
=== PAUSE TestAccLightsailInstance_tags
=== RUN TestAccLightsailInstance_IPAddressType
=== PAUSE TestAccLightsailInstance_IPAddressType
=== RUN TestAccLightsailInstance_addOn
=== PAUSE TestAccLightsailInstance_addOn
=== RUN TestAccLightsailInstance_availabilityZone
instance_test.go:279: skipping test; environment variable TF_AWS_LIGHTSAIL_AVAILABILITY_ZONE must be set. Usage: The availability zone that is outside the providers current region.
--- SKIP: TestAccLightsailInstance_availabilityZone (0.00s)
=== RUN TestAccLightsailInstance_disappears
=== PAUSE TestAccLightsailInstance_disappears
=== RUN TestAccLightsailKeyPair_basic
=== PAUSE TestAccLightsailKeyPair_basic
=== RUN TestAccLightsailKeyPair_publicKey
=== PAUSE TestAccLightsailKeyPair_publicKey
=== RUN TestAccLightsailKeyPair_encrypted
=== PAUSE TestAccLightsailKeyPair_encrypted
=== RUN TestAccLightsailKeyPair_namePrefix
=== PAUSE TestAccLightsailKeyPair_namePrefix
=== RUN TestAccLightsailLoadBalancer_serial
=== PAUSE TestAccLightsailLoadBalancer_serial
=== RUN TestAccLightsailStaticIPAttachment_basic
=== PAUSE TestAccLightsailStaticIPAttachment_basic
=== RUN TestAccLightsailStaticIPAttachment_disappears
=== PAUSE TestAccLightsailStaticIPAttachment_disappears
=== RUN TestAccLightsailStaticIP_basic
=== PAUSE TestAccLightsailStaticIP_basic
=== RUN TestAccLightsailStaticIP_disappears
=== PAUSE TestAccLightsailStaticIP_disappears
=== CONT TestAccLightsailBucketAccessKey_basic
=== CONT TestAccLightsailDatabase_finalSnapshotName
--- PASS: TestAccLightsailBucketAccessKey_basic (49.43s)
=== CONT TestAccLightsailContainerService_basic
--- PASS: TestAccLightsailContainerService_basic (89.12s)
=== CONT TestAccLightsailDatabase_backupRetentionEnabled
--- PASS: TestAccLightsailDatabase_finalSnapshotName (957.40s)
=== CONT TestAccLightsailDatabase_publiclyAccessible
--- PASS: TestAccLightsailDatabase_backupRetentionEnabled (1089.33s)
=== CONT TestAccLightsailDatabase_preferredMaintenanceWindow
--- PASS: TestAccLightsailDatabase_publiclyAccessible (950.22s)
=== CONT TestAccLightsailDatabase_preferredBackupWindow
--- PASS: TestAccLightsailDatabase_preferredMaintenanceWindow (841.09s)
=== CONT TestAccLightsailDatabase_masterPassword
--- PASS: TestAccLightsailDatabase_masterPassword (4.38s)
=== CONT TestAccLightsailDatabase_masterUsername
--- PASS: TestAccLightsailDatabase_preferredBackupWindow (896.86s)
=== CONT TestAccLightsailDatabase_masterDatabaseName
--- PASS: TestAccLightsailDatabase_masterUsername (1579.06s)
=== CONT TestAccLightsailDatabase_relationalDatabaseName
--- PASS: TestAccLightsailDatabase_masterDatabaseName (1460.82s)
=== CONT TestAccLightsailDatabase_basic
--- PASS: TestAccLightsailDatabase_relationalDatabaseName (764.19s)
=== CONT TestAccLightsailContainerService_tags
--- PASS: TestAccLightsailContainerService_tags (104.82s)
=== CONT TestAccLightsailContainerService_Scale
--- PASS: TestAccLightsailContainerService_Scale (93.64s)
=== CONT TestAccLightsailContainerService_PrivateRegistryAccess
--- PASS: TestAccLightsailContainerService_PrivateRegistryAccess (67.75s)
=== CONT TestAccLightsailContainerService_PublicDomainNames
--- PASS: TestAccLightsailContainerService_PublicDomainNames (7.65s)
=== CONT TestAccLightsailContainerService_Power
--- PASS: TestAccLightsailContainerService_Power (95.54s)
=== CONT TestAccLightsailContainerService_IsDisabled
--- PASS: TestAccLightsailContainerService_IsDisabled (104.76s)
=== CONT TestAccLightsailContainerService_Name
--- PASS: TestAccLightsailContainerService_Name (142.04s)
=== CONT TestAccLightsailContainerService_disappears
--- PASS: TestAccLightsailContainerService_disappears (64.93s)
=== CONT TestAccLightsailDomainEntry_basic
acctest.go:833: skipping tests; AWS_DEFAULT_REGION (us-west-2) not supported. Supported: [us-east-1]
--- SKIP: TestAccLightsailDomainEntry_basic (0.00s)
=== CONT TestAccLightsailInstancePublicPorts_cidrListAliases
--- PASS: TestAccLightsailInstancePublicPorts_cidrListAliases (55.30s)
=== CONT TestAccLightsailInstancePublicPorts_cidrs
--- PASS: TestAccLightsailDatabase_basic (946.59s)
=== CONT TestAccLightsailInstancePublicPorts_disappears
--- PASS: TestAccLightsailInstancePublicPorts_cidrs (55.70s)
=== CONT TestAccLightsailStaticIP_disappears
--- PASS: TestAccLightsailStaticIP_disappears (14.54s)
=== CONT TestAccLightsailStaticIP_basic
--- PASS: TestAccLightsailStaticIP_basic (17.12s)
=== CONT TestAccLightsailStaticIPAttachment_disappears
--- PASS: TestAccLightsailInstancePublicPorts_disappears (55.61s)
=== CONT TestAccLightsailInstancePublicPorts_multiple
--- PASS: TestAccLightsailInstancePublicPorts_multiple (58.20s)
=== CONT TestAccLightsailStaticIPAttachment_basic
--- PASS: TestAccLightsailStaticIPAttachment_disappears (79.15s)
=== CONT TestAccLightsailInstancePublicPorts_basic
--- PASS: TestAccLightsailInstancePublicPorts_basic (55.28s)
=== CONT TestAccLightsailDomain_disappears
acctest.go:833: skipping tests; AWS_DEFAULT_REGION (us-west-2) not supported. Supported: [us-east-1]
--- SKIP: TestAccLightsailDomain_disappears (0.00s)
=== CONT TestAccLightsailDomain_basic
acctest.go:833: skipping tests; AWS_DEFAULT_REGION (us-west-2) not supported. Supported: [us-east-1]
--- SKIP: TestAccLightsailDomain_basic (0.00s)
=== CONT TestAccLightsailDomainEntry_disappears
acctest.go:833: skipping tests; AWS_DEFAULT_REGION (us-west-2) not supported. Supported: [us-east-1]
--- SKIP: TestAccLightsailDomainEntry_disappears (0.00s)
=== CONT TestAccLightsailDomainEntry_underscore
acctest.go:833: skipping tests; AWS_DEFAULT_REGION (us-west-2) not supported. Supported: [us-east-1]
--- SKIP: TestAccLightsailDomainEntry_underscore (0.00s)
=== CONT TestAccLightsailInstance_addOn
--- PASS: TestAccLightsailStaticIPAttachment_basic (79.57s)
=== CONT TestAccLightsailKeyPair_namePrefix
--- PASS: TestAccLightsailKeyPair_namePrefix (27.94s)
=== CONT TestAccLightsailKeyPair_encrypted
--- PASS: TestAccLightsailKeyPair_encrypted (26.47s)
=== CONT TestAccLightsailKeyPair_publicKey
--- PASS: TestAccLightsailKeyPair_publicKey (26.93s)
=== CONT TestAccLightsailLoadBalancer_serial
=== RUN TestAccLightsailLoadBalancer_serial/lb_certificate
=== RUN TestAccLightsailLoadBalancer_serial/lb_certificate/basic
--- PASS: TestAccLightsailInstance_addOn (262.01s)
=== CONT TestAccLightsailKeyPair_basic
=== RUN TestAccLightsailLoadBalancer_serial/lb_certificate/disappears
--- PASS: TestAccLightsailKeyPair_basic (27.13s)
=== CONT TestAccLightsailInstance_IPAddressType
--- PASS: TestAccLightsailInstance_IPAddressType (75.74s)
=== CONT TestAccLightsailInstance_tags
--- PASS: TestAccLightsailInstance_tags (65.86s)
=== CONT TestAccLightsailInstance_name
=== RUN TestAccLightsailLoadBalancer_serial/lb_certificate/domain_validation_records
--- PASS: TestAccLightsailInstance_name (149.54s)
=== CONT TestAccLightsailInstance_basic
=== RUN TestAccLightsailLoadBalancer_serial/lb_certificate/subject_alternative_names
--- PASS: TestAccLightsailInstance_basic (51.29s)
=== CONT TestAccLightsailInstancePublicPorts_disappears_Instance
--- PASS: TestAccLightsailInstancePublicPorts_disappears_Instance (52.26s)
=== CONT TestAccLightsailCertificate_DomainValidationOptions
--- PASS: TestAccLightsailCertificate_DomainValidationOptions (55.79s)
=== CONT TestAccLightsailContainerServiceDeploymentVersion_Container_Multiple
=== RUN TestAccLightsailLoadBalancer_serial/lb_certificate_attachment
=== RUN TestAccLightsailLoadBalancer_serial/lb_certificate_attachment/basic
=== RUN TestAccLightsailLoadBalancer_serial/lb_https_redirection_policy
=== RUN TestAccLightsailLoadBalancer_serial/lb_https_redirection_policy/basic
=== CONT TestAccLightsailContainerServiceDeploymentVersion_Container_Multiple
container_service_deployment_version_test.go:144: Step 1/2 error: Check failed: Check 5/8 error: aws_lightsail_container_service_deployment_version.test: Attribute 'container.0.container_name' expected "tf-acc-test-8263175743951155058", got "tf-acc-test-7044150771276880255"
--- FAIL: TestAccLightsailContainerServiceDeploymentVersion_Container_Multiple (242.54s)
=== CONT TestAccLightsailContainerServiceDeploymentVersion_Container_Basic
=== RUN TestAccLightsailLoadBalancer_serial/lb_stickiness_policy
=== RUN TestAccLightsailLoadBalancer_serial/lb_stickiness_policy/cookie_duration
--- PASS: TestAccLightsailContainerServiceDeploymentVersion_Container_Basic (232.22s)
=== CONT TestAccLightsailCertificate_disappears
=== RUN TestAccLightsailLoadBalancer_serial/lb_stickiness_policy/enabled
--- PASS: TestAccLightsailCertificate_disappears (53.22s)
=== CONT TestAccLightsailCertificate_tags
--- PASS: TestAccLightsailCertificate_tags (97.64s)
=== CONT TestAccLightsailInstance_disappears
=== RUN TestAccLightsailLoadBalancer_serial/lb_stickiness_policy/disappears
--- PASS: TestAccLightsailInstance_disappears (50.57s)
=== CONT TestAccLightsailContainerServiceDeploymentVersion_Container_PublicEndpoint
=== RUN TestAccLightsailLoadBalancer_serial/lb_stickiness_policy/basic
=== RUN TestAccLightsailLoadBalancer_serial/lb
=== RUN TestAccLightsailLoadBalancer_serial/lb/tags
=== RUN TestAccLightsailLoadBalancer_serial/lb/basic
=== RUN TestAccLightsailLoadBalancer_serial/lb/disappears
=== RUN TestAccLightsailLoadBalancer_serial/lb/name
=== RUN TestAccLightsailLoadBalancer_serial/lb/health_check_path
=== RUN TestAccLightsailLoadBalancer_serial/lb_attachment
=== RUN TestAccLightsailLoadBalancer_serial/lb_attachment/basic
--- PASS: TestAccLightsailContainerServiceDeploymentVersion_Container_PublicEndpoint (1139.37s)
=== CONT TestAccLightsailContainerServiceDeploymentVersion_Container_EnableService
--- PASS: TestAccLightsailContainerServiceDeploymentVersion_Container_EnableService (257.22s)
=== CONT TestAccLightsailDiskAttachment_disappears
=== RUN TestAccLightsailLoadBalancer_serial/lb_attachment/disappears
--- PASS: TestAccLightsailDiskAttachment_disappears (185.09s)
=== CONT TestAccLightsailDisk_disappears
--- PASS: TestAccLightsailDisk_disappears (62.75s)
=== CONT TestAccLightsailDisk_Tags
--- PASS: TestAccLightsailDisk_Tags (88.07s)
=== CONT TestAccLightsailDisk_basic
--- PASS: TestAccLightsailDisk_basic (52.48s)
=== CONT TestAccLightsailDatabase_disappears
--- PASS: TestAccLightsailLoadBalancer_serial (3359.35s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb_certificate (701.84s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb_certificate/basic (179.95s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb_certificate/disappears (165.38s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb_certificate/domain_validation_records (169.48s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb_certificate/subject_alternative_names (187.04s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb_certificate_attachment (170.35s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb_certificate_attachment/basic (170.35s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb_https_redirection_policy (115.10s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb_https_redirection_policy/basic (115.10s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb_stickiness_policy (581.02s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb_stickiness_policy/cookie_duration (152.28s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb_stickiness_policy/enabled (162.53s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb_stickiness_policy/disappears (137.63s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb_stickiness_policy/basic (128.59s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb (764.07s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb/tags (159.47s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb/basic (123.60s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb/disappears (120.51s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb/name (221.52s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb/health_check_path (138.96s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb_attachment (1026.96s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb_attachment/basic (515.51s)
--- PASS: TestAccLightsailLoadBalancer_serial/lb_attachment/disappears (511.45s)
=== CONT TestAccLightsailDiskAttachment_basic
--- PASS: TestAccLightsailDiskAttachment_basic (190.43s)
=== CONT TestAccLightsailContainerServiceDeploymentVersion_Container_Environment
--- PASS: TestAccLightsailDatabase_disappears (565.49s)
=== CONT TestAccLightsailContainerServiceDeploymentVersion_Container_Ports
--- PASS: TestAccLightsailContainerServiceDeploymentVersion_Container_Ports (672.21s)
=== CONT TestAccLightsailDatabase_ha
--- PASS: TestAccLightsailContainerServiceDeploymentVersion_Container_Environment (801.99s)
=== CONT TestAccLightsailBucket_BundleId
--- PASS: TestAccLightsailBucket_BundleId (52.83s)
=== CONT TestAccLightsailBucket_tags
--- PASS: TestAccLightsailBucket_tags (62.93s)
=== CONT TestAccLightsailCertificate_basic
--- PASS: TestAccLightsailCertificate_basic (56.02s)
=== CONT TestAccLightsailCertificate_subjectAlternativeNames
--- PASS: TestAccLightsailCertificate_subjectAlternativeNames (55.99s)
=== CONT TestAccLightsailDatabase_tags
--- PASS: TestAccLightsailDatabase_tags (818.19s)
=== CONT TestAccLightsailBucketResourceAccess_disappears
--- PASS: TestAccLightsailBucketResourceAccess_disappears (69.49s)
=== CONT TestAccLightsailBucketResourceAccess_basic
--- PASS: TestAccLightsailBucketResourceAccess_basic (72.24s)
=== CONT TestAccLightsailBucket_disappears
--- PASS: TestAccLightsailBucket_disappears (28.67s)
=== CONT TestAccLightsailBucket_basic
--- PASS: TestAccLightsailBucket_basic (40.15s)
=== CONT TestAccLightsailBucketAccessKey_disappears
--- PASS: TestAccLightsailBucketAccessKey_disappears (46.22s)
--- PASS: TestAccLightsailDatabase_ha (1519.19s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/lightsail 11359.961s
@brittandeyoung Thanks for the contribution 🎉 👏. |
This functionality has been released in v4.59.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 implements a central function for handling Lightsail Operations and its associated errors. This provides a uniform way of checking the operation and providing standard set of errors. Since I was already touching every Lightsail resource, I additionally implemented a fix for a few open bugs reported for Lightsail resources.
Relations
Closes #29884
Moved the error handling of an improperly formatted ID to be before attempting to access the id_parts. This will cause a proper empty resource message instead of a panic when ID is not properly formed.
Closes #28869
Added a check to ensure that the
availability_zone
value is within the current region of the provider and added tests to validate the proper error is returned to the user when this occurs.Closes #27927
Added logic to the id splitting functions that allow for the domain entry to begin with a
_
. Added tests to validate when a domain entry begins with a_
. This is a non breaking changeReferences
Output from Acceptance Testing