Skip to content

Commit

Permalink
ipv4 secrets (#1683)
Browse files Browse the repository at this point in the history
* ipv4 secrets
[review]

* fixing repo name
[review]

* newline
[review]
  • Loading branch information
ben851 authored Nov 28, 2024
1 parent fc12b61 commit 3e91b6e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
13 changes: 13 additions & 0 deletions aws/github/ipv4-geolocate-secrets.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
resource "github_actions_secret" "ipv4_maxmind_license_key" {
count = var.env == "production" ? 1 : 0
repository = data.github_repository.ipv4_geolocate.name
secret_name = "MAXMIND_LICENSE_KEY"
plaintext_value = var.ipv4_maxmind_license_key
}

resource "github_actions_secret" "ipv4_op_service_account_token" {
count = var.env == "production" || var.env == "staging" ? 1 : 0
repository = data.github_repository.ipv4_geolocate.name
secret_name = "${upper(var.env)}_OP_SERVICE_ACCOUNT_TOKEN"
plaintext_value = var.op_service_account_token
}
6 changes: 5 additions & 1 deletion aws/github/respositories.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ data "github_repository" "notification_documentation" {

data "github_repository" "notification_document_download" {
name = "notification-document-download-api"
}
}

data "github_repository" "ipv4_geolocate" {
name = "ipv4-geolocate-webservice"
}
5 changes: 5 additions & 0 deletions env/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1060,3 +1060,8 @@ variable "admin_a11y_tracker_key" {
default = "prodonly"
}

variable "ipv4_maxmind_license_key" {
type = string
sensitive = true
default = "prodonly"
}

0 comments on commit 3e91b6e

Please sign in to comment.