cloudposse / terraform-aws-ecs-container-definition

Terraform module to generate well-formed JSON documents (container definitions) that are passed to the aws_ecs_task_definition Terraform resource
https://cloudposse.com/accelerate
Apache License 2.0
339 stars 244 forks source link

Add resourceRequirements key #107

Closed karvounis closed 3 years ago

karvounis commented 3 years ago

what

why

references

maximmi commented 3 years ago

/test all

jamengual commented 3 years ago

/rebuild-readme

jamengual commented 3 years ago

/test all

karvounis commented 3 years ago

hmmmm why is test/bats failing? how can I fix that?

joe-niland commented 3 years ago

@karvounis in versions.tf change the module pinning to use the format shown here: https://www.terraform.io/docs/modules/sources.html#terraform-registry

E.g.

module "consul" {
  source = "hashicorp/consul/aws"
  version = "0.1.0"
}
karvounis commented 3 years ago

Sorry @joe-niland I do not understand why module pinning is going to work and pass the tests. The repo is not using any modules at all just the local provider. https://github.com/cloudposse/terraform-aws-ec2-instance-group/blob/master/versions.tf https://github.com/cloudposse/terraform-aws-vpn-connection/blob/master/versions.tf The above 2 repos do not have module pinning and they still pass the tests.

This is my first contribution to a cloudposse repo and I do not know the drill :)

joe-niland commented 3 years ago

@karvounis sorry for the confusing response. When I wrote module I meant provider.

It needs to be done in the same way as the VPN module. The other one would not pass if a new PR was opened.

If you change versions.tfto that style, the bats test should pass.

karvounis commented 3 years ago

/test all

joe-niland commented 3 years ago

/test all