Skip to content

Commit

Permalink
manifests smoke secrets (#1669)
Browse files Browse the repository at this point in the history
* manifests smoke secrets
[review]

* formatting

* fixing secret name
  • Loading branch information
ben851 authored Nov 26, 2024
1 parent 1f097bc commit bcd824e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
14 changes: 14 additions & 0 deletions aws/github/manifest-secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,17 @@ resource "github_actions_secret" "manifests_new_relic_api_key" {
secret_name = "${upper(var.env)}_NEW_RELIC_API_KEY"
plaintext_value = var.new_relic_api_key
}

resource "github_actions_secret" "smoke_admin_client_secret" {
count = var.env == "staging" ? 1 : 0
repository = data.github_repository.notification_manifests.name
secret_name = "SMOKE_ADMIN_CLIENT_SECRET"
plaintext_value = var.manifest_smoke_admin_client_secret
}

resource "github_actions_secret" "smoke_api_key" {
count = var.env == "staging" ? 1 : 0
repository = data.github_repository.notification_manifests.name
secret_name = "SMOKE_API_KEY"
plaintext_value = var.manifest_smoke_api_key
}
12 changes: 12 additions & 0 deletions env/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -976,6 +976,18 @@ variable "manifest_cypress_auth_client_secret" {
sensitive = true
}

variable "manifest_smoke_api_key" {
type = string
sensitive = true
default = "stagingonly"
}

variable "manifest_smoke_admin_client_secret" {
type = string
sensitive = true
default = "stagingonly"
}

variable "github_app_id" {
type = string
sensitive = true
Expand Down

0 comments on commit bcd824e

Please sign in to comment.