diff --git a/.gitignore b/.gitignore index bdd179a..47f378b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,46 @@ _site .jekyll-cache vendor .vscode -.DS_Store \ No newline at end of file +.DS_Store +secrets +secret.tfvars + +# ---> Terraform +# Local .terraform directories +.terraform + +# .tfstate files +*.tfstate +*.tfstate.* + +# Crash log files +crash.log +crash.*.log + +# Exclude all .tfvars files, which are likely to contain sensitive data, such as +# password, private keys, and other secrets. These should not be part of version +# control as they are data points which are potentially sensitive and subject +# to change depending on the environment. +*.tfvars +*.tfvars.json + +# Ignore override files as they are usually used to override resources locally and so +# are not checked in +override.tf +override.tf.json +*_override.tf +*_override.tf.json + +# Include override files you do wish to add to version control using negated pattern +# !example_override.tf + +# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan +# example: *tfplan* + +# Ignore CLI configuration files +*.terraformrc +terraform.rc + +# ---------------------------------------------------------------------------- # + +# Custom ignores. \ No newline at end of file diff --git a/Taskfile.yml b/Taskfile.yml index 79a5883..984cb1f 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -1,5 +1,15 @@ version: 3 + +env: { TF: terraform -chdir=terraform } silent: true tasks: + tf/init: $TF init -backend-config=../secrets/backend.json + tf/plan: $TF plan + tf/destroy: $TF destroy + tf/format: $TF fmt -recursive + tf/apply: + - $TF apply + - $TF output -json > secrets/terraform.json + action: act -W .gitea/workflows --container-architecture linux/amd64 \ No newline at end of file diff --git a/terraform/.terraform.lock.hcl b/terraform/.terraform.lock.hcl new file mode 100644 index 0000000..7eed625 --- /dev/null +++ b/terraform/.terraform.lock.hcl @@ -0,0 +1,24 @@ +# This file is maintained automatically by "terraform init". +# Manual edits may be lost in future updates. + +provider "registry.terraform.io/hashicorp/aws" { + version = "5.83.0" + hashes = [ + "h1:uh/57vwauk96J9HjqvjmWV9sLXbX0YXbYnqUBWooiwQ=", + "zh:03a1d4cb151efd9279a3348ecb5e26fe99eb5d217b254e544c7f768a03020d0e", + "zh:07637e75abd0809454d9b51b4499059e6fd3eb58d4723c99bc71d21595a9b897", + "zh:415868ead3d9b9527418c68468972dd0c9614e69240133d8b1d77641259eb396", + "zh:52f343f08881fc88fcbd731cdf480c02edd6eb335934107bbcfb0d97c2a575df", + "zh:60d19aed16142fce6fd95087d9de8d8f59681db98588f9384112045ce533f3ce", + "zh:62775ba5933b41d00df59fe7ae02027d328ccedc06ff5363ff8d2f48633c4012", + "zh:95c7a13b5ef625a672f0ac94d1a20858f60bf09a6517b180f031b707f37d862d", + "zh:9adf0d9f349e692b9f51375713c316d28d217f72d2b86deb49e48c3834a41539", + "zh:9b12af85486a96aedd8d7984b0ff811a4b42e3d88dad1a3fb4c0b580d04fa425", + "zh:b605deb6d3eff97218b6b16b153038ac8e7bd0b8506ae469f2368281dca46cab", + "zh:b8542b3672bca0c6ed522b8f65d92ef5720786301abc7d7dae07f07296398b4c", + "zh:d975790f409234f9791633adba3ffcfbb2526bc04aed1f379fc8f90370366907", + "zh:e621bd43f3a46f122ec450828d590ee2f34c0be5603120876ddfc218861b1802", + "zh:e87e2989e99aa21bbfdb603e1325afe11af126684c64821eca8d014f8b762ca5", + "zh:f7f6f149d6e1e9d4b979b23b248df14bfe3c497052ec41a6dd40d19bcd9cde9a", + ] +}