feat: add api token
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
96782c6cc4
commit
a2c9418765
7 changed files with 60 additions and 49 deletions
20
buckets.tf
20
buckets.tf
|
|
@ -37,7 +37,7 @@ output "restic_application_key_id" {
|
|||
resource "cloudflare_r2_bucket" "attic" {
|
||||
account_id = var.account_id
|
||||
name = "attic"
|
||||
location = "weur"
|
||||
location = "WEUR"
|
||||
storage_class = "Standard"
|
||||
}
|
||||
|
||||
|
|
@ -45,6 +45,22 @@ resource "cloudflare_r2_bucket" "attic" {
|
|||
resource "cloudflare_r2_bucket" "forgejo" {
|
||||
account_id = var.account_id
|
||||
name = "forgejo"
|
||||
location = "weur"
|
||||
location = "WEUR"
|
||||
storage_class = "Standard"
|
||||
}
|
||||
|
||||
module "cloudflare_forgejo_token" {
|
||||
source = "Cyb3r-Jak3/r2-api-token/cloudflare"
|
||||
version = "5.0.1"
|
||||
account_id = var.account_id
|
||||
buckets = [cloudflare_r2_bucket.forgejo.name]
|
||||
}
|
||||
|
||||
output "forgejo_access_key_id" {
|
||||
value = module.cloudflare_forgejo_token.id
|
||||
}
|
||||
|
||||
output "forgejo_secret_access_key" {
|
||||
value = module.cloudflare_forgejo_token.secret
|
||||
sensitive = true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue