Skip to content

Commit 54ea734

Browse files
committed
Adding mock plan to the pipeline
1 parent 3a506c2 commit 54ea734

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

.github/workflows/build.yml renamed to .github/workflows/pipeline.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,16 @@ jobs:
2121
- name: Terraform Validate
2222
run: terraform validate
2323
working-directory: examples/test
24+
25+
mock-plan:
26+
runs-on: ubuntu-latest
27+
container: hashicorp/terraform
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v2
31+
- name: Terraform Init
32+
run: terraform init
33+
working-directory: examples/test
34+
- name: Terraform Plan (Mock)
35+
run: terraform plan
36+
working-directory: examples/test

examples/test/main.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
provider "aws" {
2-
region = "us-east-1"
3-
}
4-
51
module "td" {
62
source = "../../"
73
name_prefix = "test"

examples/test/mock_provider.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
provider "aws" {
2+
region = "us-east-1"
3+
skip_credentials_validation = true
4+
skip_requesting_account_id = true
5+
skip_metadata_api_check = true
6+
s3_force_path_style = true
7+
access_key = "mock_access_key"
8+
secret_key = "mock_secret_key"
9+
}

0 commit comments

Comments
 (0)