Skip to content

Commit 045b441

Browse files
committed
Feat: Updated the tfcheck workflow
1 parent 0855cff commit 045b441

File tree

5 files changed

+20
-17
lines changed

5 files changed

+20
-17
lines changed

.github/workflows/tf-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ jobs:
88
example:
99
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master
1010
with:
11-
working_directory: './_example/vpc'
11+
working_directory: './_example/public'

_example/public/example.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ module "sftp" {
124124
s3_bucket_name = module.s3_bucket.id
125125
endpoint_type = "PUBLIC"
126126
workflow_details = {
127-
on_upload = {
128-
execution_role = "arn:aws:iam::1234567890:role/test-sftp-transfer-role"
129-
workflow_id = "w-12345XXXX6da"
130-
}
131-
}
127+
on_upload = {
128+
execution_role = "arn:aws:iam::1234567890:role/test-sftp-transfer-role"
129+
workflow_id = "w-12345XXXX6da"
130+
}
131+
}
132132
}

_example/vpc/example.tf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ module "subnets" {
4949
module "security_group-sftp" {
5050
source = "clouddrove/security-group/aws"
5151
version = "2.0.0"
52-
name = "sftp-sg"
53-
environment = "test"
54-
label_order = ["environment", "name"]
55-
vpc_id = module.vpc.vpc_id
52+
name = "sftp-sg"
53+
environment = "test"
54+
label_order = ["environment", "name"]
55+
vpc_id = module.vpc.vpc_id
5656
## INGRESS Rules
5757
new_sg_ingress_rules_with_cidr_blocks = [{
5858
rule_count = 1
@@ -104,7 +104,7 @@ module "s3_bucket" {
104104
label_order = ["environment", "name"]
105105

106106
versioning = true
107-
logging = true
107+
logging = true
108108
acl = "private"
109109
force_destroy = true
110110
}
@@ -126,9 +126,9 @@ module "sftp" {
126126
restricted_home = true
127127
vpc_security_group_ids = [module.security_group-sftp.security_group_ids]
128128
workflow_details = {
129-
on_upload = {
130-
execution_role = "arn:aws:iam::1234567890:role/test-sftp-transfer-role"
131-
workflow_id = "w-12345XXXX6da"
132-
}
129+
on_upload = {
130+
execution_role = "arn:aws:iam::1234567890:role/test-sftp-transfer-role"
131+
workflow_id = "w-12345XXXX6da"
132+
}
133133
}
134134
}

_example/vpc/versions.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
# Terraform version
12
terraform {
3+
required_version = ">= 1.5.0"
4+
25
required_providers {
36
aws = {
47
source = "hashicorp/aws"
5-
version = "~> 4.0"
8+
version = ">= 5.9.0"
69
}
710
}
811
}

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,6 @@ variable "workflow_details" {
183183
}
184184

185185
variable "enable_workflow" {
186-
type = bool
186+
type = bool
187187
default = false
188188
}

0 commit comments

Comments
 (0)