Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
Merge pull request #10 from rackspace-infrastructure-automation/0.13_…
Browse files Browse the repository at this point in the history
…update

CI Updates + Length fixes
  • Loading branch information
cwgem authored Dec 15, 2020
2 parents 1a1ee99 + 024da3b commit ac2c722
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .terraform-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.12.17
0.13.2
19 changes: 10 additions & 9 deletions tests/test1/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
}

provider "aws" {
version = "~> 2.7"
version = "~> 3.0"
region = "us-east-1"
}

Expand All @@ -12,7 +12,7 @@ provider "random" {
}

resource "random_string" "rstring" {
length = 15
length = 8
special = false
min_upper = 1
min_lower = 1
Expand Down Expand Up @@ -40,21 +40,21 @@ data "aws_ami" "amz_linux_2" {
}

module "vpc" {
source = "[email protected]:rackspace-infrastructure-automation/aws-terraform-vpc_basenetwork//?ref=v0.12.0"
source = "[email protected]:rackspace-infrastructure-automation/aws-terraform-vpc_basenetwork//?ref=master"

name = "${random_string.rstring.result}-VPC"
}

module "security_groups" {
source = "[email protected]:rackspace-infrastructure-automation/aws-terraform-security_group//?ref=v0.12.0"
source = "[email protected]:rackspace-infrastructure-automation/aws-terraform-security_group//?ref=master"

environment = "Production"
name = "${random_string.rstring.result}-SG"
vpc_id = module.vpc.vpc_id
}

module "alb" {
source = "[email protected]:rackspace-infrastructure-automation/aws-terraform-alb//?ref=v0.12.0"
source = "[email protected]:rackspace-infrastructure-automation/aws-terraform-alb//?ref=master"

create_logging_bucket = false
http_listeners_count = 1
Expand All @@ -75,13 +75,13 @@ module "alb" {
{
"backend_port" = 80
"backend_protocol" = "HTTP"
"name" = "${random_string.rstring.result}-TargetGroup"
"name" = "${random_string.rstring.result}-TG"
},
]
}

module "clb" {
source = "[email protected]:rackspace-infrastructure-automation/aws-terraform-clb//?ref=v0.12.0"
source = "[email protected]:rackspace-infrastructure-automation/aws-terraform-clb//?ref=master"

connection_draining_timeout = 300
instances = []
Expand All @@ -104,6 +104,7 @@ module "codedeploy" {
source = "../../module"

application_name = "${random_string.rstring.result}-TESTAPP"
environment = "dev"
target_group_name = element(module.alb.target_group_names, 0)
}

Expand All @@ -113,7 +114,7 @@ module "codedeploy_tg" {

application_name = module.codedeploy.application_name
create_application = false
deployment_group_name = "${random_string.rstring.result}-TestDeployGroup-TG"
deployment_group_name = "${random_string.rstring.result}-Test-TG"
target_group_name = element(module.alb.target_group_names, 0)
}

Expand All @@ -123,7 +124,7 @@ module "codedeploy_clb" {
application_name = module.codedeploy.application_name
clb_name = module.clb.name
create_application = false
deployment_group_name = "${random_string.rstring.result}-TestDeployGroup-CLB"
deployment_group_name = "${random_string.rstring.result}-Test-CLB"
}


0 comments on commit ac2c722

Please sign in to comment.