-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from OneideLuizSchneider/v1.0
V1.0
- Loading branch information
Showing
5 changed files
with
78 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,52 @@ | ||
name: CI | ||
|
||
# Trigger when a pull request is received | ||
on: | ||
pull_request: | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
#workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
terraform: | ||
runs-on: ubuntu-latest | ||
env: | ||
working-directory: terraform | ||
TF_WORKSPACE: my-workspace | ||
steps: | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Terraform | ||
uses: hashicorp/setup-terraform@v1 | ||
with: | ||
terraform_version: 0.14.6 | ||
|
||
- name: Terraform Fmt | ||
id: fmt | ||
run: cd terraform && terraform fmt -check -diff | ||
continue-on-error: true | ||
|
||
- name: Terraform Init | ||
id: init | ||
run: cd terraform && terraform init | ||
continue-on-error: true | ||
|
||
- name: Terraform Validate | ||
id: validate | ||
run: cd terraform && terraform validate -no-color | ||
continue-on-error: true | ||
|
||
- name: Terraform Plan | ||
id: plan | ||
run: cd terraform && terraform plan -no-color | ||
continue-on-error: true | ||
#name: CI | ||
# | ||
## Trigger when a pull request is received | ||
#on: | ||
# pull_request: | ||
# | ||
# # Allows you to run this workflow manually from the Actions tab | ||
# #workflow_dispatch: | ||
# | ||
## A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
#jobs: | ||
# terraform: | ||
# runs-on: ubuntu-latest | ||
# env: | ||
# working-directory: terraform | ||
# TF_WORKSPACE: my-workspace | ||
# steps: | ||
# - name: Configure AWS Credentials | ||
# uses: aws-actions/configure-aws-credentials@v1 | ||
# with: | ||
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
# aws-region: ${{ secrets.AWS_REGION }} | ||
# | ||
# - name: Check out code | ||
# uses: actions/checkout@v2 | ||
# | ||
# - name: Setup Terraform | ||
# uses: hashicorp/setup-terraform@v1 | ||
# with: | ||
# terraform_version: 0.14.6 | ||
# | ||
# - name: Terraform Fmt | ||
# id: fmt | ||
# run: cd terraform && terraform fmt -check -diff | ||
# continue-on-error: true | ||
# | ||
# - name: Terraform Init | ||
# id: init | ||
# run: cd terraform && terraform init | ||
# continue-on-error: true | ||
# | ||
# - name: Terraform Validate | ||
# id: validate | ||
# run: cd terraform && terraform validate -no-color | ||
# continue-on-error: true | ||
# | ||
# - name: Terraform Plan | ||
# id: plan | ||
# run: cd terraform && terraform plan -no-color | ||
# continue-on-error: true | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
provider "aws" { | ||
version = "~> 3.37" | ||
|
||
region = local.region | ||
access_key = local.access_key | ||
secret_key = local.secret_key | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters