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 Resources: aws_lightsail_lb and aws_lightsail_lb_attachment #27339

Merged
merged 42 commits into from
Oct 20, 2022

Conversation

brittandeyoung
Copy link
Collaborator

@brittandeyoung brittandeyoung commented Oct 19, 2022

Description

Adds the following resources to terraform aws_lightsail_lb and aws_lightsail_lb_attachment. This Pull request includes the orriginal commits from this Pull request #11405 and refactors it to bring it up to speed with the new provider layout.

Relations

Closes #11049
Closes #11421

Relates #11405

References

Output from Acceptance Testing

➜ terraform-provider-aws (f-aws_lightsail_lb) ✗ make testacc TESTARGS='-run=TestAccLightsailLoadBalancerAttachment_' PKG=lightsail
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/lightsail/... -v -count 1 -parallel 20  -run=TestAccLightsailLoadBalancerAttachment_ -timeout 180m
=== RUN   TestAccLightsailLoadBalancerAttachment_basic
=== PAUSE TestAccLightsailLoadBalancerAttachment_basic
=== RUN   TestAccLightsailLoadBalancerAttachment_disappears
=== PAUSE TestAccLightsailLoadBalancerAttachment_disappears
=== CONT  TestAccLightsailLoadBalancerAttachment_disappears
=== CONT  TestAccLightsailLoadBalancerAttachment_basic
--- PASS: TestAccLightsailLoadBalancerAttachment_basic (499.02s)
--- PASS: TestAccLightsailLoadBalancerAttachment_disappears (509.77s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/lightsail  511.759s
➜ terraform-provider-aws (f-aws_lightsail_lb) ✗ make testacc TESTARGS='-run=TestAccLightsailLoadBalancer_' PKG=lightsail 
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/lightsail/... -v -count 1 -parallel 20  -run=TestAccLightsailLoadBalancer_ -timeout 180m
=== RUN   TestAccLightsailLoadBalancer_basic
=== PAUSE TestAccLightsailLoadBalancer_basic
=== RUN   TestAccLightsailLoadBalancer_Name
=== PAUSE TestAccLightsailLoadBalancer_Name
=== RUN   TestAccLightsailLoadBalancer_HealthCheckPath
=== PAUSE TestAccLightsailLoadBalancer_HealthCheckPath
=== RUN   TestAccLightsailLoadBalancer_Tags
=== PAUSE TestAccLightsailLoadBalancer_Tags
=== RUN   TestAccLightsailLoadBalancer_disappears
=== PAUSE TestAccLightsailLoadBalancer_disappears
=== CONT  TestAccLightsailLoadBalancer_basic
=== CONT  TestAccLightsailLoadBalancer_Tags
=== CONT  TestAccLightsailLoadBalancer_disappears
=== CONT  TestAccLightsailLoadBalancer_HealthCheckPath
=== CONT  TestAccLightsailLoadBalancer_Name
--- PASS: TestAccLightsailLoadBalancer_disappears (112.94s)
--- PASS: TestAccLightsailLoadBalancer_basic (120.38s)
--- PASS: TestAccLightsailLoadBalancer_HealthCheckPath (134.49s)
--- PASS: TestAccLightsailLoadBalancer_Tags (145.30s)
--- PASS: TestAccLightsailLoadBalancer_Name (236.07s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/lightsail  238.032s

...

akonrath and others added 30 commits December 21, 2019 22:52
Action Required: Removal of website/aws.erb File
This Spelling error is already resolved in the main branch and this change is causing a conflict.
* Added dns_name to Read
Removed conflict, removed SetPartial
* terrafmt issue
* Removed provider from tests
* added missing semgrp.yml config file
Fixed: Linting issues and sync upstream
* old reference to glue
* string reference oid
* waiter import
Feature: Path acctests added
Requested Changes Implemented
* Add acceptance tests for `aws_lightsail_lb` resource.
@github-actions
Copy link

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 documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. service/lightsail Issues and PRs that pertain to the lightsail service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. needs-triage Waiting for first response or review from a maintainer. size/XL Managed by automation to categorize the size of a PR. labels Oct 19, 2022
@ewbankkit ewbankkit added new-resource Introduces a new resource. enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Oct 20, 2022
@brittandeyoung
Copy link
Collaborator Author

Latest test output with most recent changes:

➜ terraform-provider-aws (f-aws_lightsail_lb) ✔ make testacc TESTARGS='-run=TestAccLightsailLoadBalancer' PKG=lightsail ACCTEST_PARALLELISM=5
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/lightsail/... -v -count 1 -parallel 5  -run=TestAccLightsailLoadBalancer -timeout 180m
=== RUN   TestAccLightsailLoadBalancerAttachment_basic
=== PAUSE TestAccLightsailLoadBalancerAttachment_basic
=== RUN   TestAccLightsailLoadBalancerAttachment_disappears
=== PAUSE TestAccLightsailLoadBalancerAttachment_disappears
=== RUN   TestAccLightsailLoadBalancer_basic
=== PAUSE TestAccLightsailLoadBalancer_basic
=== RUN   TestAccLightsailLoadBalancer_Name
=== PAUSE TestAccLightsailLoadBalancer_Name
=== RUN   TestAccLightsailLoadBalancer_HealthCheckPath
=== PAUSE TestAccLightsailLoadBalancer_HealthCheckPath
=== RUN   TestAccLightsailLoadBalancer_Tags
=== PAUSE TestAccLightsailLoadBalancer_Tags
=== RUN   TestAccLightsailLoadBalancer_disappears
=== PAUSE TestAccLightsailLoadBalancer_disappears
=== CONT  TestAccLightsailLoadBalancerAttachment_basic
=== CONT  TestAccLightsailLoadBalancer_HealthCheckPath
=== CONT  TestAccLightsailLoadBalancer_basic
=== CONT  TestAccLightsailLoadBalancer_disappears
=== CONT  TestAccLightsailLoadBalancer_Name
--- PASS: TestAccLightsailLoadBalancer_disappears (113.11s)
=== CONT  TestAccLightsailLoadBalancerAttachment_disappears
=== CONT  TestAccLightsailLoadBalancer_Tags
--- PASS: TestAccLightsailLoadBalancer_basic (118.69s)
--- PASS: TestAccLightsailLoadBalancer_HealthCheckPath (148.38s)
--- PASS: TestAccLightsailLoadBalancer_Name (239.62s)
--- PASS: TestAccLightsailLoadBalancer_Tags (145.05s)
--- PASS: TestAccLightsailLoadBalancerAttachment_basic (509.47s)
--- PASS: TestAccLightsailLoadBalancerAttachment_disappears (505.23s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/lightsail  620.305s

Copy link
Contributor

@ewbankkit ewbankkit 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 TESTARGS='-run=TestAccLightsailLoadBalancer' PKG=lightsail ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/lightsail/... -v -count 1 -parallel 3  -run=TestAccLightsailLoadBalancer -timeout 180m
=== RUN   TestAccLightsailLoadBalancerAttachment_basic
=== PAUSE TestAccLightsailLoadBalancerAttachment_basic
=== RUN   TestAccLightsailLoadBalancerAttachment_disappears
=== PAUSE TestAccLightsailLoadBalancerAttachment_disappears
=== RUN   TestAccLightsailLoadBalancer_basic
=== PAUSE TestAccLightsailLoadBalancer_basic
=== RUN   TestAccLightsailLoadBalancer_Name
=== PAUSE TestAccLightsailLoadBalancer_Name
=== RUN   TestAccLightsailLoadBalancer_HealthCheckPath
=== PAUSE TestAccLightsailLoadBalancer_HealthCheckPath
=== RUN   TestAccLightsailLoadBalancer_Tags
=== PAUSE TestAccLightsailLoadBalancer_Tags
=== RUN   TestAccLightsailLoadBalancer_disappears
=== PAUSE TestAccLightsailLoadBalancer_disappears
=== CONT  TestAccLightsailLoadBalancerAttachment_basic
=== CONT  TestAccLightsailLoadBalancer_HealthCheckPath
=== CONT  TestAccLightsailLoadBalancer_basic
--- PASS: TestAccLightsailLoadBalancer_basic (120.32s)
=== CONT  TestAccLightsailLoadBalancer_Name
--- PASS: TestAccLightsailLoadBalancer_HealthCheckPath (139.60s)
=== CONT  TestAccLightsailLoadBalancer_disappears
--- PASS: TestAccLightsailLoadBalancer_disappears (121.91s)
=== CONT  TestAccLightsailLoadBalancerAttachment_disappears
--- PASS: TestAccLightsailLoadBalancer_Name (234.37s)
=== CONT  TestAccLightsailLoadBalancer_Tags
--- PASS: TestAccLightsailLoadBalancerAttachment_basic (504.03s)
--- PASS: TestAccLightsailLoadBalancer_Tags (164.36s)
--- PASS: TestAccLightsailLoadBalancerAttachment_disappears (499.39s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/lightsail	765.017s

@ewbankkit ewbankkit merged commit 9372a5e into hashicorp:main Oct 20, 2022
@github-actions github-actions bot added this to the v4.36.0 milestone Oct 20, 2022
@github-actions
Copy link

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

@github-actions
Copy link

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. enhancement Requests to existing resources that expand the functionality or scope. new-resource Introduces a new resource. provider Pertains to the provider itself, rather than any interaction with AWS. service/lightsail Issues and PRs that pertain to the lightsail 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.

Add AWS Lightsail Load Balancer Attachment Support Add AWS Lightsail Load Balancer Support
3 participants