Skip to content

Commit

Permalink
terraform-aws-provider v2.0 support updates
Browse files Browse the repository at this point in the history
* Removed use of current filter in aws region data source [#7]
* Added required owners argument to aws_ami data source [#8]
  • Loading branch information
disaac committed Mar 8, 2019
1 parent 32a57c8 commit 2967943
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
#### 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)

## 0.3.2 (March 9, 2018)

#### BACKWARDS INCOMPATIBILITIES / NOTES:
Expand Down
10 changes: 2 additions & 8 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 Down

0 comments on commit 2967943

Please sign in to comment.