Skip to content

Instantly share code, notes, and snippets.

@donhuvy
Forked from anttu/secretsmanager.tf
Created January 19, 2024 08:53
Show Gist options
  • Save donhuvy/5a968b13f6f53b0a4df8a1586af16afd to your computer and use it in GitHub Desktop.
Save donhuvy/5a968b13f6f53b0a4df8a1586af16afd 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