Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
aws secretsmanager create-secret \
--name test \
--secret-string '{"ConnectionStrings:DATABASE": "YOUR_AWESOME_CONNECTION_STRINGS"}'
resource "aws_secretsmanager_secret" "rds_connectionstrings" {
name = "test"
recovery_window_in_days = 30
resource "aws_secretsmanager_secret_version" "rds_connectionstrings" {
secret_id = "${}"
secret_string = "${jsonencode(map("ConnectionStrings:DATABASE", "YOUR_AWESOME_CONNECTION_STRINGS"))}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.