Skip to content

Instantly share code, notes, and snippets.

@anttu
Created May 4, 2018 16:03
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save anttu/6995f20e641d4f30a6003520f70608b3 to your computer and use it in GitHub Desktop.
Save anttu/6995f20e641d4f30a6003520f70608b3 to your computer and use it in GitHub Desktop.
Terraform AWS Secrets Manager example with key and value
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