Skip to content

Commit

Permalink
fix: remove tls provider and add in version.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
mamrajyadav committed Sep 7, 2023
1 parent 95ddf21 commit 7fae857
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 0 additions & 7 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ terraform {
source = "hashicorp/aws"
version = ">= 5.13.1"
}
tls = {
source = "hashicorp/tls"
version = ">= 4.0.4"
}
}
}

0 comments on commit 7fae857

Please sign in to comment.