-
Notifications
You must be signed in to change notification settings - Fork 4
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
platform_reverse_proxy.public_server_name
cannot be parametrized
#186
Comments
The same case is with the
|
@piotrminkina The second issue is unrelated. The error messages are self-explanatory 😄. |
@alexhung The problem I reported is the inability to use variables in the properties of the resource. This applies to all the properties that I mentioned in these two comments. I give another example, this time a full example. variable "artifactory_public_server_name" {
type = string
default = "localhost"
nullable = false
}
variable "ssl_certificate_path" {
type = string
default = "path/to/file.crt"
nullable = false
}
variable "ssl_key_path" {
type = string
default = "path/to/file.key"
nullable = false
}
resource "platform_reverse_proxy" "reverse_proxy" {
public_server_name = var.artifactory_public_server_name
internal_hostname = "artifactory"
server_provider = "NGINX"
docker_reverse_proxy_method = "SUBDOMAIN"
use_https = true
ssl_certificate_path = var.ssl_certificate_path
ssl_key_path = var.ssl_key_path
} With the following result for the
|
@piotrminkina Ah, I see. Let me look into this. |
…s-not-parameterizable Fix reverse_proxy attributes not parameterizable
Describe the bug
Consider the following hcl code:
It seems that probably due to some bug this property cannot be parameterized. Executing the
terraform plan
command on this example ends with an error.Expected behavior
Each property of the
platform_reverse_proxy
resource should be configurable with variables or results of other resources or data.Additional context
Artifactory version: 7.98.9
Terraform version: 1.9.8
Provider version: 2.1.0
The text was updated successfully, but these errors were encountered: