│ Error: Invalid Configuration for Read-Only Attribute
│
│ with module.ec2_client_vpn.module.self_signed_cert_root.tls_self_signed_cert.default,
│ on .terraform\modules\ec2_client_vpn.self_signed_cert_root\main.tf line 62, in resource "tls_self_signed_cert" "default":
│ 62: key_algorithm = var.private_key_algorithm
│
│ Cannot set value for this attribute as the provider has marked it as read-only. Remove the configuration
│ line setting the value.
Expected Behavior
It make client vpn for my servive
Steps to Reproduce
This is my module configuration:
locals {
Owner = "MehaGami"
}
module "ec2_client_vpn" {
source = "cloudposse/ec2-client-vpn/aws"
version = "0.10.8"
Describe the Bug
│ Error: Invalid Configuration for Read-Only Attribute │ │ with module.ec2_client_vpn.module.self_signed_cert_root.tls_self_signed_cert.default, │ on .terraform\modules\ec2_client_vpn.self_signed_cert_root\main.tf line 62, in resource "tls_self_signed_cert" "default": │ 62: key_algorithm = var.private_key_algorithm │ │ Cannot set value for this attribute as the provider has marked it as read-only. Remove the configuration
│ line setting the value.
Expected Behavior
It make client vpn for my servive
Steps to Reproduce
This is my module configuration: locals { Owner = "MehaGami" }
module "ec2_client_vpn" { source = "cloudposse/ec2-client-vpn/aws" version = "0.10.8"
client_cidr = "10.101.0.0/16" organization_name = local.Owner ca_common_name = "${local.Owner}.vpn.ca" root_common_name = "${local.Owner}.vpn.client" server_common_name = "${local.Owner}.vpn.server" logging_enabled = false retention_in_days = 0 associated_subnets = module.vpc.private_subnets authorization_rules = [] logging_stream_name = local.Owner vpc_id = module.vpc.vpc_id additional_routes = [ { destination_cidr_block = "0.0.0.0/0" description = "Internet Route" target_vpc_subnet_id = element(module.vpc.private_subnets, 0) } ] }
Screenshots
No response
Environment
No response
Additional Context
No response