diff --git a/main.tf b/main.tf index 2898552..e87b804 100644 --- a/main.tf +++ b/main.tf @@ -128,13 +128,6 @@ resource "tls_cert_request" "server" { ##----------------------------------------------------------------------------- ## Generates a Certificate Signing Request (CSR) in PEM format, which is the typical format used to request a certificate from a certificate authority. ##----------------------------------------------------------------------------- -#The TLS provider provides utilities for working with Transport Layer Security keys and certificates. It provides resources that allow private keys, certificates and certificate requests to be created as part of a Terraform deployment. -provider "tls" { - proxy { - from_env = true - } -} - resource "tls_locally_signed_cert" "server" { count = var.enabled ? 1 : 0 diff --git a/versions.tf b/versions.tf index c95376a..17bb12b 100644 --- a/versions.tf +++ b/versions.tf @@ -7,5 +7,9 @@ terraform { source = "hashicorp/aws" version = ">= 5.13.1" } + tls = { + source = "hashicorp/tls" + version = ">= 4.0.4" + } } }