Skip to content

Commit

Permalink
readme updated, BC checks fixed for example/test module (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximmi authored Jan 30, 2021
1 parent d593144 commit a3d74c4
Show file tree
Hide file tree
Showing 7 changed files with 570 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# .tfstate files
*.tfstate
*.tfstate.*
**/.terraform.lock.hcl

**/.idea
**/*.iml
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ module "ecs_service_alarms" {
|------|---------|
| terraform | >= 0.12.26 |
| aws | >= 2.0 |
| local | >= 1.2 |
| null | >= 2.0 |
| template | >= 2.0 |

## Providers

Expand Down
3 changes: 0 additions & 3 deletions docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
|------|---------|
| terraform | >= 0.12.26 |
| aws | >= 2.0 |
| local | >= 1.2 |
| null | >= 2.0 |
| template | >= 2.0 |

## Providers

Expand Down
19 changes: 12 additions & 7 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ provider "aws" {

module "vpc" {
source = "cloudposse/vpc/aws"
version = "0.18.0"
version = "0.18.2"
cidr_block = var.vpc_cidr_block

context = module.this.context
}

module "subnets" {
source = "cloudposse/dynamic-subnets/aws"
version = "0.31.0"
version = "0.36.0"
availability_zones = var.availability_zones
vpc_id = module.vpc.vpc_id
igw_id = module.vpc.igw_id
Expand All @@ -26,11 +26,15 @@ module "subnets" {
resource "aws_ecs_cluster" "default" {
name = module.this.id
tags = module.this.tags
setting {
name = "containerInsights"
value = "enabled"
}
}

module "container_definition" {
source = "cloudposse/ecs-container-definition/aws"
version = "0.45.2"
version = "0.47.0"
container_name = var.container_name
container_image = var.container_image
container_memory = var.container_memory
Expand All @@ -44,7 +48,7 @@ module "container_definition" {

module "ecs_alb_service_task" {
source = "cloudposse/ecs-alb-service-task/aws"
version = "0.41.0"
version = "0.44.0"
alb_security_group = module.vpc.vpc_default_security_group_id
container_definition_json = module.container_definition.json_map_encoded_list
ecs_cluster_arn = aws_ecs_cluster.default.arn
Expand All @@ -67,9 +71,10 @@ module "ecs_alb_service_task" {
}

resource "aws_sns_topic" "sns_topic" {
name = module.this.id
display_name = "Test terraform-aws-ecs-cloudwatch-sns-alarms"
tags = module.this.tags
name = module.this.id
display_name = "Test terraform-aws-ecs-cloudwatch-sns-alarms"
tags = module.this.tags
kms_master_key_id = "alias/aws/sns"
}

module "ecs_cloudwatch_sns_alarms" {
Expand Down
5 changes: 2 additions & 3 deletions test/src/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ go 1.14

require (
github.com/aws/aws-sdk-go v1.35.33 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-sql-driver/mysql v1.5.0 // indirect
github.com/google/uuid v1.1.2 // indirect
github.com/gruntwork-io/terratest v0.16.0
github.com/gruntwork-io/terratest v0.31.4
github.com/pquerna/otp v1.3.0 // indirect
github.com/stretchr/testify v1.3.0
github.com/stretchr/testify v1.4.0
)
555 changes: 555 additions & 0 deletions test/src/go.sum

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,5 @@ terraform {
source = "hashicorp/aws"
version = ">= 2.0"
}
template = {
source = "hashicorp/template"
version = ">= 2.0"
}
local = {
source = "hashicorp/local"
version = ">= 1.2"
}
null = {
source = "hashicorp/null"
version = ">= 2.0"
}
}
}

0 comments on commit a3d74c4

Please sign in to comment.