up:: [[AWS MOC]] # ECS Notes - To temporarily stop instances on [[ECS]], set autoscaling group desired instances to 0. - In [[ECS]], you need to add a machine image with the hardware type "GPU" to the cluster definition to ensure [[nVidia Drivers]] are installed - To enable logging in an [[ECS]] task via [[CDK]], pass a new instance of the `aws_log` LoggingDriver to the task via the `logging` parameter. This will set up logging behavior similar to [[Lambda]], allowing you to use the `logging` module or even `print()` statements for logging. ^zsyuw7 ^fmz3fj - `logging=ecs.LogDrivers.aws_logs(stream_prefix=f"analysis-{stage}")` - [Documentation](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-ecs-readme.html#log-drivers)