Skip to content

Commit d5086ff

Browse files
giving a subnet to the mock command for validation in CI
1 parent dfe77af commit d5086ff

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ script:
2626
- echo 'script'
2727
- terraform init
2828
- terraform fmt -check=true
29-
- terraform validate -var "region=${AWS_REGION}" -var "vpc_id=vpc-123456" -var "subnets=[]" -var "workers_ami_id=ami-123456" -var "cluster_ingress_cidrs=[]" -var "cluster_name=test_cluster"
29+
- terraform validate -var "region=${AWS_REGION}" -var "vpc_id=vpc-123456" -var "subnets=['subnet-12345a']" -var "workers_ami_id=ami-123456" -var "cluster_ingress_cidrs=[]" -var "cluster_name=test_cluster"
3030
- docker run --rm -v $(pwd):/app/ --workdir=/app/ -t wata727/tflint --error-with-issues
3131
- cd examples/eks_test_fixture
3232
- terraform init

examples/eks_test_fixture/main.tf

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ provider "random" {
1212
}
1313

1414
provider "http" {}
15+
provider "local" {}
1516

1617
data "aws_ami" "eks_worker" {
1718
filter {
@@ -68,14 +69,6 @@ module "vpc" {
6869
tags = "${merge(local.tags, map("kubernetes.io/cluster/${local.cluster_name}", "shared"))}"
6970
}
7071

71-
module "security_group" {
72-
source = "terraform-aws-modules/security-group/aws"
73-
version = "1.12.0"
74-
name = "test-sg-https"
75-
vpc_id = "${module.vpc.vpc_id}"
76-
tags = "${local.tags}"
77-
}
78-
7972
module "eks" {
8073
source = "../.."
8174
cluster_name = "${local.cluster_name}"

0 commit comments

Comments
 (0)