Adds EFS support through the new volumes property:
volumes = [
{
volume_name = "${var.app}-${var.environment}-efs"
efs_volume_configuration = [
{
efs_file_system_id = aws_efs_file_system.gf_data.id
root_directory = "/data"
}
]
}
]
Then in the task definition set the mount point and reference the source volume with the same name.
mount_points = [
{
readOnly = false
containerPath = "/var/lib/blah"
sourceVolume = "${var.app}-${var.environment}-efs"
}
]
Permissions to access the EFS mount must be added to the ECS execution role outside of the module.
Added new properties for deployment_maximum_percent and deployment_minimum_healthy_percent to control service deployments.
Bumped up the node version for the lambda that builds the ECS dashboard.
Added output values for the ECS execution role so that it can be referenced and added to outside of the module.