Test bringing up openstack instance
Some checks failed
/ check (push) Failing after 52s
/ dev-shell (push) Successful in 1m8s
/ rust-packages (push) Successful in 1m20s
/ terraform-providers (push) Successful in 57s

This commit is contained in:
Kaare Hoff Skovgaard 2025-07-08 12:22:24 +02:00
parent ea031511cf
commit 748e1763ad
Signed by: khs
GPG key ID: C7D890804F01E9F0
24 changed files with 932 additions and 99 deletions

View file

@ -0,0 +1,33 @@
{ ... }:
{ lib, config, ... }:
let
cfg = config.khscodes.s3;
in
{
options.khscodes.s3 = {
enable = lib.mkEnableOption "Enables the s3 backend";
bucket = {
key = lib.mkOption {
type = lib.types.str;
description = "key for the bucket to use";
};
};
};
config = lib.mkIf cfg.enable {
terraform.backend.s3 = {
bucket = "bw-terraform";
key = cfg.bucket.key;
region = "auto";
endpoints = {
s3 = "https://477b394a6a545699445c40953e40f00b.r2.cloudflarestorage.com";
};
use_path_style = true;
skip_credentials_validation = true;
skip_region_validation = true;
skip_metadata_api_check = true;
skip_requesting_account_id = true;
skip_s3_checksum = true;
};
};
}