Open HubertMajewski opened 1 year ago
it looks like the acme_certificate resource expects DNS providers to be configured via environment variables, so config {}
block is used otherwise:
resource "acme_certificate" "certificate" {
#...
dns_challenge {
provider = "route53"
config = {
AWS_ACCESS_KEY_ID = var.aws_access_key
AWS_SECRET_ACCESS_KEY = var.aws_secret_key
AWS_SESSION_TOKEN = var.aws_security_token
AWS_DEFAULT_REGION = "us-east-1" # OPTIONAL
}
}
#...
}
When setting up the Namecheap Provider, the following options are provided to set the API user and API key:
api_user
,api_key
. Yet, they do not seem to be used in the actual configuration of the provider per this error:Following example config: