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

Fix the lightsail name validation to reflect actual minimum length #10046

Merged
merged 1 commit into from
Sep 10, 2019

Conversation

ryndaniels
Copy link
Contributor

As the lightsail API documents, 2 characters is actually the minimum, not 3.

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

Closes #10042

Release note for CHANGELOG:

BUG FIXES:
* resource/aws_lightsail_instance: Fixes an issue where 2-character lightsail instance names didn't get validated properly

Output from acceptance testing:

$ make testacc TESTARGS="-run=TestAccAWSLightsailInstance_"        
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -parallel 20 -run=TestAccAWSLightsailInstance_ -timeout 120m
?       github.com/terraform-providers/terraform-provider-aws   [no test files]
=== RUN   TestAccAWSLightsailInstance_basic
=== PAUSE TestAccAWSLightsailInstance_basic
=== RUN   TestAccAWSLightsailInstance_Name
=== PAUSE TestAccAWSLightsailInstance_Name
=== RUN   TestAccAWSLightsailInstance_Tags
=== PAUSE TestAccAWSLightsailInstance_Tags
=== RUN   TestAccAWSLightsailInstance_disapear
=== PAUSE TestAccAWSLightsailInstance_disapear
=== CONT  TestAccAWSLightsailInstance_basic
=== CONT  TestAccAWSLightsailInstance_disapear
=== CONT  TestAccAWSLightsailInstance_Name
=== CONT  TestAccAWSLightsailInstance_Tags
--- PASS: TestAccAWSLightsailInstance_disapear (81.48s)
--- PASS: TestAccAWSLightsailInstance_basic (83.75s)
--- PASS: TestAccAWSLightsailInstance_Tags (117.23s)
--- PASS: TestAccAWSLightsailInstance_Name (151.58s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       152.726s

@ryndaniels ryndaniels requested review from aeschright and a team September 9, 2019 16:10
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. service/lightsail Issues and PRs that pertain to the lightsail service. labels Sep 9, 2019
Copy link
Contributor

@aeschright aeschright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌟

--- PASS: TestAccAWSLightsailInstance_disapear (60.66s)
--- PASS: TestAccAWSLightsailInstance_basic (61.49s)
--- PASS: TestAccAWSLightsailInstance_Tags (71.99s)
--- PASS: TestAccAWSLightsailInstance_Name (105.44s)

@ryndaniels ryndaniels added this to the v2.28.0 milestone Sep 10, 2019
@ryndaniels ryndaniels merged commit 80b2994 into master Sep 10, 2019
@ryndaniels ryndaniels deleted the rfd-lightsail-name branch September 10, 2019 07:38
@ghost
Copy link

ghost commented Sep 12, 2019

This has been released in version 2.28.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 for triage. Thanks!

@ghost
Copy link

ghost commented Nov 1, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Nov 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/lightsail Issues and PRs that pertain to the lightsail service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws_lightsail_instance name validation is overly restrictive
2 participants