From 6978e07de792f4e1f954483bf1bcd5380a79221e Mon Sep 17 00:00:00 2001 From: roncitrus Date: Mon, 11 Dec 2023 12:04:28 +0000 Subject: [PATCH] added secret --- terraform/environments/cdpt-chaps/secrets.tf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/terraform/environments/cdpt-chaps/secrets.tf b/terraform/environments/cdpt-chaps/secrets.tf index a6a94d9c098..5bbaded674a 100644 --- a/terraform/environments/cdpt-chaps/secrets.tf +++ b/terraform/environments/cdpt-chaps/secrets.tf @@ -1 +1,15 @@ #### This file can be used to store secrets specific to the member account #### + +resource "aws_secretsmanager_secret" "chaps_secret" { + name = "chaps_secret" + description = "Simple secret created through Terraform" +} + +resource "random_password" "password" { + +} + +resource "aws_secretsmanager_secret_version" "chaps_secret" { + secret_id = aws_secretsmanager_secret.chaps_secret.id + secret_string = random_password.password.result +}