VT
Size: a a a
VT
VT
LS
E
Error: Error getting user data: Cannot decode supplied PEM dataКонфиг main.tf
on main.tf line 9, in resource "acme_registration" "reg":
9: resource "acme_registration" "reg" {
provider "acme" {
server_url = "https://acme-staging-v02.api.letsencrypt.org/directory"
}
resource "tls_private_key" "private_key" {
algorithm = "RSA"
}
resource "acme_registration" "reg" {
account_key_pem = "tls_private_key.private_key.private_key_pem"
email_address = "email@email.com"
}
resource "acme_certificate" "certificate" {
account_key_pem = "acme_registration.reg.account_key_pem"
common_name = "*.domain.com"
dns_challenge {
provider = "selectel"
config = {
VSCALE_API_TOKEN = "TOKEN"
VSCALE_BASE_URL = "https://api.vscale.io/v1/"
VSCALE_TTL = 60
VSCALE_PROPAGATION_TIMEOUT = 1200
}
}
}
Не пойму в чем ошибка. Серт в terraform.tfstate естьV
E
V
V
E
V
S
ZR
ZR
S
S
├── prod
│ ├── env.hcl
│ └── infra
│ └── network
│ ├── backend.tf
│ ├── outputs.tf
│ ├── provider.tf
│ ├── terragrunt.hcl
│ └── vpc.tf
└── region.hcl
ZR
S
module "vpc" {
source = "github.com/terraform-aws-modules/terraform-aws-vpc"
name = "infra-vpc"
cidr = "${local.vpc_cidr}"
azs = ["${local.aws_region}a", "${local.aws_region}b", "${local.aws_region}c"]
...S
ZR
ZR
module "vpc" {
source = "github.com/terraform-aws-modules/terraform-aws-vpc"
name = "infra-vpc"
cidr = "${local.vpc_cidr}"
azs = ["${local.aws_region}a", "${local.aws_region}b", "${local.aws_region}c"]
...