terraform-aws-ecs-cluster icon indicating copy to clipboard operation
terraform-aws-ecs-cluster copied to clipboard

Missing EC2 ebs device size

Open EnSec4Git opened this issue 2 years ago • 0 comments

When trying to create an ECS cluster using this module and the latest ECS-optimized AMI (currently ami-037d203e54a0a9c14), the Auto Scaling group, created by the module fails to reach capacity due to missing EBS volume size, resulting in this relatively opaque error:

Error: "test": Waiting up to 10m0s: Need at least 1 healthy instances in ASG, have 0. ...

Description: "Launching a new EC2 instance. Status Reason: The request must contain the parameter size or snapshotId. Launching EC2 instance failed."

Versions: TF 1.0.6, terraform-aws-ecs-cluster 3.1.0 Tested with TF 0.12 and TAEC 2.0 as well (same result)

Steps to reproduce: Follow the README and on Usage, replace "amzn-ami-*-amazon-ecs-optimized" with "amzn2-ami-ecs-hvm-*-x86_64-ebs".

Expected: An ECS cluster is created Actual result: An error is thrown, the AutoScaling Group is created, but not populated.

EnSec4Git avatar Sep 09 '21 14:09 EnSec4Git