mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-25 19:01:04 +01:00
* run terraform upgrade tool * fix post upgrade TODOs * use strict typing for variables * upgrade examples, point them at VPC module tf 0.12 PR * remove unnecessary `coalesce()` calls coalesce(lookup(map, key, ""), default) -> lookup(map, key, default) * Fix autoscaling_enabled broken (#1) * always set a value for tags, fix coalescelist calls * always set a value for these tags * fix tag value * fix tag value * default element available * added default value * added a general default without this default - TF is throwing an error when running a destroy * Fix CI * Change vpc module back to `terraform-aws-modules/vpc/aws` in example * Update CHANGELOG.md * Change type of variable `cluster_log_retention_in_days` to number * Remove `xx_count` variables * Actual lists instead of strings with commas * Remove `xx_count` variable from docs * Replace element with list indexing * Change variable `worker_group_tags` to a attribute of worker_group * Fix workers_launch_template_mixed tags * Change override_instance_type_x variables to list. * Update CHANGELOG.md
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
language: ruby
|
|
sudo: required
|
|
dist: trusty
|
|
|
|
services:
|
|
- docker
|
|
|
|
rvm:
|
|
- 2.4.4
|
|
|
|
env:
|
|
global:
|
|
- AWS_REGION='us-east-1'
|
|
- TF_VAR_region=${AWS_REGION}
|
|
- TF_WARN_OUTPUT_ERRORS=1
|
|
|
|
before_install:
|
|
- echo "before_install"
|
|
|
|
install:
|
|
- echo "install"
|
|
- gem install bundler --no-rdoc --no-ri
|
|
- bundle install
|
|
|
|
before_script:
|
|
- export TERRAFORM_VERSION=0.12.2
|
|
- curl --silent --output terraform.zip "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip"
|
|
- unzip terraform.zip ; rm -f terraform.zip; chmod +x terraform
|
|
- mkdir -p ${HOME}/bin ; export PATH=${PATH}:${HOME}/bin; mv terraform ${HOME}/bin/
|
|
- terraform -v
|
|
|
|
script:
|
|
- echo 'script'
|
|
- terraform init
|
|
- terraform fmt -check=true
|
|
- 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"
|
|
- |
|
|
for example in $(find examples -maxdepth 1 -mindepth 1 -type d); do
|
|
cd $example
|
|
terraform init
|
|
terraform fmt -check=true
|
|
terraform validate
|
|
cd -
|
|
done
|
|
- terraform -v
|
|
|
|
notifications:
|
|
email:
|
|
recipients:
|
|
- brandon@atscale.run
|
|
on_success: change
|
|
on_failure: change
|