From 06ed88b32f86a9bd1a7f6a4cf05b16b53e859f62 Mon Sep 17 00:00:00 2001 From: Lexxick Date: Fri, 13 Mar 2026 12:38:57 +0800 Subject: [PATCH 1/3] Fix module source path in Terraform configuration --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 5d9649e..e491ec4 100644 --- a/main.tf +++ b/main.tf @@ -7,7 +7,7 @@ terraform { } module "app_config" { - source = "github.com/YOUR_USERNAME/infra-modules//modules/app-config?ref=v1.0.0" + source = "github.com/Lexxick/infra-modules//modules/app-config?ref=v1.0.0" environment = var.environment app_version = var.app_version From 5e045c1116cfb34874c53934257a9d6ba7aa564c Mon Sep 17 00:00:00 2001 From: Lexxick Date: Fri, 13 Mar 2026 12:47:24 +0800 Subject: [PATCH 2/3] Add terraform.tfvars for environment configuration and update .gitignore --- .gitignore | 1 - terraform.tfvars | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 terraform.tfvars diff --git a/.gitignore b/.gitignore index 819b480..9a85f03 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,3 @@ .terraform.lock.hcl **/output/ .DS_Store -*.tfvars \ No newline at end of file diff --git a/terraform.tfvars b/terraform.tfvars new file mode 100644 index 0000000..070058b --- /dev/null +++ b/terraform.tfvars @@ -0,0 +1,7 @@ +environment = "test" +app_version = "1.0.0" +replica_count = 2 +feature_flags = { + dark_mode = true + new_dashboard = true +} \ No newline at end of file From c79e3a8f0bc9997b52e25d4bd45a9cac582d2172 Mon Sep 17 00:00:00 2001 From: Lexxick Date: Tue, 17 Mar 2026 21:25:16 +0800 Subject: [PATCH 3/3] feat: initial test environment setup --- .github/workflows/terraform-apply.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/terraform-apply.yml diff --git a/.github/workflows/terraform-apply.yml b/.github/workflows/terraform-apply.yml new file mode 100644 index 0000000..fdcff1f --- /dev/null +++ b/.github/workflows/terraform-apply.yml @@ -0,0 +1,27 @@ +name: Terraform Apply + +on: + push: + branches: [ main ] + +permissions: + contents: read + +jobs: + apply: + name: Terraform Apply + runs-on: ubuntu-latest + environment: ${{ github.event.repository.name }} + steps: + - uses: actions/checkout@v4 + + - name: Setup Terraform + uses: hashicorp/setup-terraform@v3 + with: + terraform_version: "1.7.0" + + - name: Terraform Init + run: terraform init + + - name: Terraform Apply + run: terraform apply -auto-approve \ No newline at end of file