diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d2cdff6..f55c8dc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -51,14 +51,17 @@ jobs: name: Minimum version check runs-on: ubuntu-latest container: - image: hashicorp/terraform:0.12.0 + image: hashicorp/terraform:latest steps: - uses: actions/checkout@master - name: Validate Code env: AWS_REGION: 'us-east-1' TF_WARN_OUTPUT_ERRORS: 1 + TF_VAR_vpc_id: 'vpc-123456' + TF_VAR_subnets: '["subnet-12345a"]' + TF_VAR_workers_ami_id: 'ami-123456' + TF_VAR_cluster_name: 'test_cluster' run: | - sed -i -e 's/>=/=/' -e 's/ \(\d\+\.\d\+\)"/ \1.0"/' versions.tf terraform init - 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" \ No newline at end of file + terraform validate \ No newline at end of file diff --git a/lambda-slack.tf b/lambda-slack.tf index 2fc78b1..755f085 100644 --- a/lambda-slack.tf +++ b/lambda-slack.tf @@ -60,7 +60,7 @@ resource "random_string" "lambda_suffix" { length = 8 special = false lower = true - number = false + numeric = false } resource "aws_lambda_function" "default" {