-
Notifications
You must be signed in to change notification settings - Fork 69
Add Auto SSL Support to Load Balancers #591
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
base: master
Are you sure you want to change the base?
Conversation
|
optik-aper
left a comment
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.
This is currently getting a dirty plan on a basic load balancer that doesn't even define auto_ssl
vultr_load_balancer.foo: Refreshing state... [id=a9323cf7-df24-4ff2-9058-e783f9e0e278]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# vultr_load_balancer.foo will be updated in-place
~ resource "vultr_load_balancer" "foo" {
id = "a9323cf7-df24-4ff2-9058-e783f9e0e278"
# (12 unchanged attributes hidden)
- auto_ssl {
# (2 unchanged attributes hidden)
}
# (2 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.Debug log:
2025-05-21T17:21:20.566-0400 [WARN] Provider "vultr.com/dev/vultr" produced an unexpected new value for vultr_load_balancer.foo during refresh.
- .auto_ssl: actual set element cty.ObjectVal(map[string]cty.Value{"domain_zone":cty.StringVal(""), "sub_domain":cty.StringVal("")}) does not correlate with any element in plan
How you're doing the reads is not producing a consistent terraform state for the auto_ssl schema
ad88b56 to
58a227e
Compare
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
Description
Related Issues
Checklist:
PR Type
Enhancement
Description
Add Auto SSL support to load balancer resource
Expose auto_ssl_domain in data source and resource
Update documentation for auto SSL domain usage
Add domain parsing and validation helper
Diagram Walkthrough
File Walkthrough
data_source_vultr_load_balancer.go
Expose auto SSL domain in data sourcevultr/data_source_vultr_load_balancer.go
auto_ssl_domaincomputed string field to schemaauto_ssl_domainfrom API responseresource_vultr_load_balancer.go
Add Auto SSL domain to load balancer resourcevultr/resource_vultr_load_balancer.go
auto_ssl_domainoptional string field to schemaAutoSSLin create and update requestsgenerateAutoSSLhelper for domain parsingload_balancer.html.markdown
Document auto SSL domain in data source docswebsite/docs/d/load_balancer.html.markdown
auto_ssl_domainattributeload_balancer.html.markdown
Document auto SSL domain in resource docswebsite/docs/r/load_balancer.html.markdown
auto_ssl_domainargumentauto_ssl_domainexported attribute