Skip to content

0.7.0 Convert to TF 0.12. Add tests. Add Codefresh test pipeline

Compare
Choose a tag to compare
@aknysh aknysh released this 29 Oct 01:44
122667e

what

  • Port module to Terraform 0.12
  • Pin all providers
  • Add example for testing
  • Add bats and terratest for the example
  • Add Codefresh badge to point to the test pipeline in terraform-modules project
  • Update README

why

  • Module currently does not work with 0.12. Much easier syntax
  • Better regression control
  • Automatically test the example on every commit and pull request
  • Provision resources on AWS in the test account and check the outputs for the correct values
  • terraform-modules project contains pipelines for all terraform modules

related

test

TestExamplesComplete 2019-10-28T20:50:49Z command.go:121:                                                                                                                                
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121: Outputs:                                                                                                                       
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121:                                                                                                                                
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121: access_logs_bucket_id = eg-test-alb-alb-access-logs                                                                            
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121: alb_arn = arn:aws:elasticloadbalancing:us-east-2:126450723953:loadbalancer/app/eg-test-alb/b92e250a8b058197                    
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121: alb_arn_suffix = app/eg-test-alb/b92e250a8b058197                                                                              
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121: alb_dns_name = eg-test-alb-156051963.us-east-2.elb.amazonaws.com                                                               
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121: alb_name = eg-test-alb                                                                                                         
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121: alb_zone_id = Z3AADJGX6KTTL2                                                                                                   
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121: default_target_group_arn = arn:aws:elasticloadbalancing:us-east-2:126450723953:targetgroup/eg-test-alb-default/32409af35000497b
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121: http_listener_arn = arn:aws:elasticloadbalancing:us-east-2:126450723953:listener/app/eg-test-alb/b92e250a8b058197/9474dbfc7fa05
4d3                                                                                                                                                                                      
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121: listener_arns = [                                                                                                              
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121:   "arn:aws:elasticloadbalancing:us-east-2:126450723953:listener/app/eg-test-alb/b92e250a8b058197/9474dbfc7fa054d3",            
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121: ]                                                                                                                              
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121: private_subnet_cidrs = [                                                                                                       
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121:   "172.16.0.0/19",                                                                                                             
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121:   "172.16.32.0/19",                                                                                                            
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121: ]                                                                                                                              
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121: public_subnet_cidrs = [                                                                                                        
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121:   "172.16.96.0/19",                                                                                                            
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121:   "172.16.128.0/19",                                                                                                           
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121: ]                                                                                                                              
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121: security_group_id = sg-074013d30de787a58                                                                                       
TestExamplesComplete 2019-10-28T20:50:49Z command.go:121: vpc_cidr = 172.16.0.0/16