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 +}