Skip to content

Commit

Permalink
chore: checkov
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavkumarsph committed Jul 10, 2024
1 parent 839b57a commit c882d00
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/opensearch/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ data "aws_cloudformation_export" "web_subnet_b" {
name = var.cf_export_web_subnet_b
}

data "aws_cloudformation_export" "web_subnet_c" {
name = var.cf_export_web_subnet_c
}

data "aws_cloudformation_export" "app_sg_id" {
name = var.cf_export_app_sg_id
}
1 change: 1 addition & 0 deletions examples/opensearch/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module "opensearch" {
vpc_endpoint_subnet_ids = [
data.aws_cloudformation_export.web_subnet_a.value,
data.aws_cloudformation_export.web_subnet_b.value,
data.aws_cloudformation_export.web_subnet_c.value,
]
vpc_endpoint_security_group_ids = [
data.aws_cloudformation_export.app_sg_id.value,
Expand Down
6 changes: 6 additions & 0 deletions examples/opensearch/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ variable "cf_export_web_subnet_b" {
default = "subnetIDWebB-ap-southeast-1"
}

variable "cf_export_web_subnet_c" {
description = "cf_export_web_subnet_c"
type = string
default = "subnetIDWebC-ap-southeast-1"
}

variable "cf_export_app_sg_id" {
description = "app security group id"
type = string
Expand Down

0 comments on commit c882d00

Please sign in to comment.