mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-03-15 18:41:24 -04:00
bootstrap terraform tfstate into s3 bucket
This commit is contained in:
parent
181fffb6ac
commit
5efdecc4b2
2 changed files with 56 additions and 10 deletions
|
|
@ -1,16 +1,39 @@
|
|||
{...}: {
|
||||
terraform.required_providers = {
|
||||
digitalocean = {
|
||||
source = "digitalocean/digitalocean";
|
||||
version = "2.48.2";
|
||||
terraform = {
|
||||
required_providers = {
|
||||
digitalocean = {
|
||||
source = "digitalocean/digitalocean";
|
||||
version = "2.48.2";
|
||||
};
|
||||
aws = {
|
||||
source = "hashicorp/aws";
|
||||
version = "5.86.0";
|
||||
};
|
||||
};
|
||||
backend."s3" = {
|
||||
bucket = "wce-20250207201121178400000001";
|
||||
key = "terraform.tfstate";
|
||||
region = "us-east-1";
|
||||
};
|
||||
};
|
||||
|
||||
resource."digitalocean_droplet"."do-wce-lighthouse1" = {
|
||||
image = "177939596"; # nixos-digitalocean
|
||||
name = "do-wce-lighthouse1";
|
||||
region = "nyc3";
|
||||
size = "s-1vcpu-1gb";
|
||||
ssh_keys = ["45378200"];
|
||||
provider."aws" = {
|
||||
region = "us-east-1";
|
||||
profile = "wce";
|
||||
};
|
||||
|
||||
resource."aws_s3_bucket"."state" = {
|
||||
bucket_prefix = "wce-";
|
||||
tags = {
|
||||
Name = "WCE State Bucket";
|
||||
};
|
||||
};
|
||||
|
||||
#resource."digitalocean_droplet"."do-wce-lighthouse1" = {
|
||||
# image = "177939596"; # nixos-digitalocean
|
||||
# name = "do-wce-lighthouse1";
|
||||
# region = "nyc3";
|
||||
# size = "s-1vcpu-1gb";
|
||||
# ssh_keys = ["45378200"];
|
||||
#};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue