Skip to content

Commit

Permalink
Merge pull request #1 from developertown/fix/var-create-vpc
Browse files Browse the repository at this point in the history
Fix/var create vpc
  • Loading branch information
pedropinheiro75 authored Jul 13, 2023
2 parents 1fbd4b6 + 63eb2ee commit 80068e7
Show file tree
Hide file tree
Showing 13 changed files with 172 additions and 103 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ jobs:
terraform_version: 1.4.6
terraform_wrapper: false

- name: Setup Terragrunt
uses: autero1/[email protected]
with:
terragrunt_version: 0.43.2
token: ${{ secrets.GITHUB_TOKEN }}

- name: Download Go Modules
working-directory: test/src
run: go mod download
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ jobs:
terraform_version: 1.4.6
terraform_wrapper: false

- name: Setup Terragrunt
uses: autero1/[email protected]
with:
terragrunt_version: 0.43.2
token: ${{ secrets.GITHUB_TOKEN }}

- name: Download Go Modules
working-directory: test/src
run: go mod download
Expand All @@ -26,4 +32,4 @@ jobs:
run: go test -v -timeout 60m -tags=unit
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
15 changes: 15 additions & 0 deletions examples/complete-vpc/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
include {
path = find_in_parent_folders()
}

terraform {
source = "..//modules/complete"
}

inputs = {
name = "example"
region = "us-east-2"
environment = "test"

vpc_cidr = "10.0.0.0/16"
}
7 changes: 0 additions & 7 deletions examples/complete/providers.tf

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ locals {
################################################################################

module "aws_vpc" {
source = "../../"
source = "../../.."

count = var.enabled ? 1 : 0
enabled = var.enabled
Expand Down
Loading

0 comments on commit 80068e7

Please sign in to comment.