Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: Id762a0848d66a1c1264fdf94be13c3a091bb6d78
# Create Private Key
resource "tls_private_key" "private_key" {
algorithm = var.private_key_algorithm
# Create Private Key
resource "tls_private_key" "private_key" {
algorithm = var.private_key_algorithm
- ecdsa_curve = var.private_key_ecdsa_curve
- rsa_bits = var.private_key_rsa_bits
variable "private_key_algorithm" {
description = "The name of the algorithm to use for the key."
type = string
variable "private_key_algorithm" {
description = "The name of the algorithm to use for the key."
type = string
- default = "RSA"
-}
-
-variable "private_key_ecdsa_curve" {
- description = "When algorithm is ECDSA, the name of the elliptic curve to use."
- type = string
- default = "P521"
-}
-
-variable "private_key_rsa_bits" {
- description = "When algorithm is RSA, the size of the generated RSA key in bits."
- type = number
- default = 4096
}
# Variables for Placement Group
}
# Variables for Placement Group
}
null = {
source = "hashicorp/null"
}
null = {
source = "hashicorp/null"
}
tls = {
source = "hashicorp/tls"
}
tls = {
source = "hashicorp/tls"
}
}
required_version = ">= 1.0.4"
}
}
required_version = ">= 1.0.4"
# Create Private Key
resource "tls_private_key" "private_key" {
algorithm = var.private_key_algorithm
# Create Private Key
resource "tls_private_key" "private_key" {
algorithm = var.private_key_algorithm
- ecdsa_curve = var.private_key_ecdsa_curve
- rsa_bits = var.private_key_rsa_bits
variable "private_key_algorithm" {
description = "The name of the algorithm to use for the key."
type = string
variable "private_key_algorithm" {
description = "The name of the algorithm to use for the key."
type = string
- default = "RSA"
-}
-
-variable "private_key_ecdsa_curve" {
- description = "When algorithm is ECDSA, the name of the elliptic curve to use."
- type = string
- default = "P521"
-}
-
-variable "private_key_rsa_bits" {
- description = "When algorithm is RSA, the size of the generated RSA key in bits."
- type = number
- default = 4096
-}
# Variables for Placement Group
variable "placement_group_strategy" {
# Variables for Placement Group
variable "placement_group_strategy" {
}
null = {
source = "hashicorp/null"
}
null = {
source = "hashicorp/null"
}
tls = {
source = "hashicorp/tls"
}
tls = {
source = "hashicorp/tls"
}
}
required_version = ">= 1.0.4"
}
}
required_version = ">= 1.0.4"