Skip to content

Commit

Permalink
Merge pull request #45 from trussworks/replace-circleci-docker-primary
Browse files Browse the repository at this point in the history
Replace circleci docker primary and upgrade to terraform 13
  • Loading branch information
ralren authored Sep 11, 2020
2 parents 6dbba4f + f6e8266 commit ed182b5
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
version: 2.1

references:
circleci_docker_primary: &circleci_docker_primary trussworks/circleci-docker-primary:822fac1c30f3bb7d5d595bed5d2dc86265c4f2f0
circleci: &circleci trussworks/circleci:29ab89fdada1f85c5d8fb685a2c71660f0c5f60c

jobs:
terratest:
docker:
- image: *circleci_docker_primary
- image: *circleci
steps:
- checkout
- restore_cache:
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Creates the following resources:

## Terraform Versions

Terraform 0.12. Pin module version to ~> 2.0.2. Submit pull-requests to master branch.
Terraform 0.13. Pin module version to ~> 4.X. Submit pull-requests to master branch.

Terraform 0.12. Pin module version to ~> 3.X. Submit pull-requests to terraform012 branch.

Terraform 0.11. Pin module version to ~> 1.5.0. Submit pull-requests to terraform011 branch.

Expand Down Expand Up @@ -40,14 +42,14 @@ module "app_nlb" {

| Name | Version |
|------|---------|
| terraform | ~> 0.12.0 |
| aws | ~> 2.70 |
| terraform | ~> 0.13.0 |
| aws | ~> 3.0 |

## Providers

| Name | Version |
|------|---------|
| aws | ~> 2.70 |
| aws | ~> 3.0 |

## Inputs

Expand Down
4 changes: 2 additions & 2 deletions examples/simple/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ module "aws_nlb" {

module "nlb_logs" {
source = "trussworks/logs/aws"
version = "~> 5.2.0"
version = "~> 10"
s3_bucket_name = var.logs_bucket
region = var.region
nlb_logs_prefixes = ["nlb/${var.nlb_name}-${var.environment}"]
allow_nlb = true
}

module "vpc" {
Expand Down
3 changes: 0 additions & 3 deletions examples/simple/providers.tf

This file was deleted.

4 changes: 0 additions & 4 deletions examples/simple/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ variable "logs_bucket" {
type = string
}

variable "region" {
type = string
}

variable "vpc_azs" {
type = list(string)
}
1 change: 0 additions & 1 deletion test/terraform_aws_nlb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func TestTerraformAwsNlb(t *testing.T) {
"environment": environment,
"nlb_name": nlbName,
"logs_bucket": logsBucket,
"region": awsRegion,
"vpc_azs": vpcAzs,
},
EnvVars: map[string]string{
Expand Down
4 changes: 2 additions & 2 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_version = "~> 0.12.0"
required_version = "~> 0.13.0"

required_providers {
aws = "~> 2.70"
aws = "~> 3.0"
}
}

0 comments on commit ed182b5

Please sign in to comment.