-
-
Save jonathanhle/66459a6471df252bfca5af83b0caa57f to your computer and use it in GitHub Desktop.
Terraform AWS Secrets Manager example with key and value
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_secretsmanager_secret" "IRCSecrets" { | |
name = "irc/client/credentials" | |
description = "My IRC client credentials" | |
} | |
resource "aws_secretsmanager_secret_version" "IRCCredentials" { | |
secret_id = "${aws_secretsmanager_secret.IRCSecrets.id}" | |
secret_string = "{\"username\":\"AzureDiamond\",\"password\":\"hunter2\"}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment