Skip to content

Fix tls key parameters for terraform 4 #463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 1 addition & 4 deletions workshops/dcms-db/config/terraform/tls.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ resource "tls_private_key" "acme_ca" {
}

resource "tls_self_signed_cert" "acme_ca" {
key_algorithm = "RSA"
private_key_pem = tls_private_key.acme_ca.private_key_pem
is_ca_certificate = true

Expand All @@ -29,7 +28,6 @@ resource "tls_private_key" "example_com" {
}

resource "tls_cert_request" "example_com" {
key_algorithm = "RSA"
private_key_pem = tls_private_key.example_com.private_key_pem

dns_names = ["example.com"]
Expand All @@ -44,7 +42,6 @@ resource "tls_cert_request" "example_com" {

resource "tls_locally_signed_cert" "example_com" {
cert_request_pem = tls_cert_request.example_com.cert_request_pem
ca_key_algorithm = "RSA"
ca_private_key_pem = tls_private_key.acme_ca.private_key_pem
ca_cert_pem = tls_self_signed_cert.acme_ca.cert_pem

Expand All @@ -56,4 +53,4 @@ resource "tls_locally_signed_cert" "example_com" {
"server_auth",
"client_auth",
]
}
}
77 changes: 0 additions & 77 deletions workshops/dcms-db/deploy_old.sh

This file was deleted.

Loading