Skip to content

Commit

Permalink
added secret
Browse files Browse the repository at this point in the history
  • Loading branch information
roncitrus committed Dec 11, 2023
1 parent f8c553f commit 6978e07
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions terraform/environments/cdpt-chaps/secrets.tf
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 6978e07

Please sign in to comment.