Test bringing up openstack instance
This commit is contained in:
parent
ea031511cf
commit
748e1763ad
24 changed files with 932 additions and 99 deletions
33
nix/modules/terranix/s3/default.nix
Normal file
33
nix/modules/terranix/s3/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue