secrets.tf 853 B

1234567891011121314151617
  1. # Set up some basic secret configuration. We don't want the secrets themselves in here. They'll have to be hand-entered. But this will set up the scaffolding.
  2. output "secrets_manager_reminder" {
  3. value = "REMINDER: If this is your first time, don't forget to update the secrets in secrets manager."
  4. }
  5. resource "aws_secretsmanager_secret" "codebuild_ghe_key" {
  6. name = "GHE/mdr-aws-codebuild/key"
  7. description = "GitHub Personal Access Key for the mdr-aws-codebuild account"
  8. recovery_window_in_days = 30
  9. tags = merge(var.standard_tags, var.tags)
  10. }
  11. # This just seeds an initial value. It will not be overwritten each update.
  12. resource "aws_secretsmanager_secret_version" "codebuild_ghe_secret_version" {
  13. secret_id = aws_secretsmanager_secret.codebuild_ghe_key.id
  14. secret_string = "SETME"
  15. }