Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created January 13, 2025 01:45
Show Gist options
  • Select an option

  • Save KyMidd/0b16f697de44f0df1fceca5a3ca29479 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/0b16f697de44f0df1fceca5a3ca29479 to your computer and use it in GitHub Desktop.
###
# Fetch secret ARNs from Secrets Manager
# We don't want to store sensitive information in our codebase (or in terraform's state file),
# so we fetch it from Secrets Manager
###
data "aws_secretsmanager_secret" "devopsbot_secrets_json" {
name = "DEVOPSBOT_SECRETS_JSON"
}
/*
This secret should be formatted like this:
{"SLACK_BOT_TOKEN":"xoxb-xxxxxx-arOa","SLACK_SIGNING_SECRET":"2cxxxxxxxxxxxxda"}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment