Skip to content

Commit

Permalink
chore: add output for ID of VPC internet gateway (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseFMP authored Dec 3, 2021
1 parent 08c89bc commit 497490f
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 9 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: release
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Release
uses: cycjimmy/semantic-release-action@v2
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
extra_plugins: |
@semantic-release/git@7.0.18
@semantic-release/exec@3.3.8
@semantic-release/changelog@3.0.0
9 changes: 0 additions & 9 deletions .github/workflows/terratest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,3 @@ jobs:
run: |
cd test
go test -v -timeout 30m
- name: Release
uses: cycjimmy/semantic-release-action@v2
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
extra_plugins: |
@semantic-release/git@7.0.18
@semantic-release/exec@3.3.8
@semantic-release/changelog@3.0.0
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ Temporary Items
*.tfstate
*.tfstate.*

# files related to external terraform modules
.external_modules/

# Crash log files
crash.log

Expand Down
10 changes: 10 additions & 0 deletions aws-vpc/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,13 @@ output "vpc_id" {
description = "AWS identifier for the VPC provisioned by this module"
value = module.vpc.vpc_id
}

output "igw_id" {
description = "AWS identifier for the Internet gateway at VPC level"
value = module.vpc.igw_id
}

output "igw_arn" {
description = "AWS ARN for the Internet gateway at VPC level"
value = module.vpc.igw_arn
}
10 changes: 10 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,13 @@ output "vpc_id" {
description = "AWS identifier for the VPC provisioned by this module"
value = module.aws-vpc.vpc_id
}

output "igw_id" {
description = "AWS identifier for the Internet gateway at VPC level"
value = module.aws-vpc.igw_id
}

output "igw_arn" {
description = "AWS ARN for the Internet gateway at VPC level"
value = module.aws-vpc.igw_arn
}

0 comments on commit 497490f

Please sign in to comment.