Skip to content

Commit

Permalink
Merge pull request #9 from unifio/dmi_terraform-provider-aws-v2-support
Browse files Browse the repository at this point in the history
terraform-aws-provider v2.0 support updates
  • Loading branch information
disaac authored Mar 9, 2019
2 parents 32a57c8 + 596f20c commit ef8dd25
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
working_directory: ~/repo

docker:
- image: unifio/ci:3.0.411-ruby-2.4
- image: unifio/ci:3.0.622-ruby-2.5.3

environment:
AWS_REGION: 'us-east-2'
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
#### IMPROVEMENTS / NEW FEATURES:
* Add support for application auto scaling

## 0.3.3 (March 10, 2019)

#### BACKWARDS INCOMPATIBILITIES / NOTES:
##### [terraform-provider-aws v2.0](https://github.com/terraform-providers/terraform-provider-aws/blob/master/CHANGELOG.md) Updates
* The [terraform-provider-aws](https://github.com/terraform-providers/terraform-provider-aws/issues/7697) has deprecated the use of the `current` filter in regions. The `current` filter was removed for [issue#7](https://github.com/unifio/terraform-aws-ecs/issues/8).
* The [terraform-provider-aws](https://github.com/terraform-providers/terraform-provider-aws/issues/5576) now requires an `owners` argument. This was added in place of the owner-alias for [issue#8](https://github.com/unifio/terraform-aws-ecs/issues/8)
* Updated [terraform-aws-asg](https://github.com/unifio/terraform-aws-asg/releases/tag/v0.3.7) to v0.3.7

## 0.3.2 (March 9, 2018)

#### BACKWARDS INCOMPATIBILITIES / NOTES:
Expand Down
12 changes: 3 additions & 9 deletions cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ terraform {
required_version = "> 0.11.0"
}

data "aws_region" "current" {
current = true
}
data "aws_region" "current" {}

## Creates cloud-config data for agent cluster
data "template_file" "user_data" {
Expand All @@ -22,6 +20,7 @@ data "template_file" "user_data" {
## Creates autoscaling cluster
data "aws_ami" "ecs_ami" {
most_recent = true
owners = ["amazon"]

filter {
name = "architecture"
Expand All @@ -33,11 +32,6 @@ data "aws_ami" "ecs_ami" {
values = ["amzn-ami-*-amazon-ecs-optimized"]
}

filter {
name = "owner-alias"
values = ["amazon"]
}

filter {
name = "root-device-type"
values = ["ebs"]
Expand All @@ -50,7 +44,7 @@ data "aws_ami" "ecs_ami" {
}

module "cluster" {
source = "github.com/unifio/terraform-aws-asg?ref=v0.3.1//group"
source = "github.com/unifio/terraform-aws-asg?ref=v0.3.7//group"

# Resource tags
stack_item_fullname = "${var.stack_item_fullname}"
Expand Down
4 changes: 2 additions & 2 deletions examples/prereqs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ provider "aws" {

## Configures base VPC
module "vpc_base" {
source = "github.com/unifio/terraform-aws-vpc?ref=v0.3.3//base"
source = "github.com/unifio/terraform-aws-vpc?ref=v0.4.0//base"

enable_dns = "true"
stack_item_fullname = "${var.stack_item_fullname}"
Expand All @@ -17,7 +17,7 @@ module "vpc_base" {

## Configures VPC availabilty zones
module "vpc_az" {
source = "github.com/unifio/terraform-aws-vpc?ref=v0.3.3//az"
source = "github.com/unifio/terraform-aws-vpc?ref=v0.4.0//az"

azs_provisioned = 2
lans_per_az = 0
Expand Down

0 comments on commit ef8dd25

Please sign in to comment.