You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Reference - How to handle π΄(Red) and π‘(Yellow) items
62
62
63
-
1.**_Pre-flight check failed: `jq` command is missing_**
63
+
1.**_π΄ Pre-flight check failed: `jq` command is missing_**
64
64
Install the `jq` command. See [the official documentation](https://stedolan.github.io/jq/download/) for the details and how to install.
65
65
66
-
2.**_Pre-flight check failed: `aws` command is missing_**
66
+
2.**_π΄ Pre-flight check failed: `aws` command is missing_**
67
67
Install the latest AWS CLI. See [the official documentation for the AWS CLI v2](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html) or [the official documentation for the AWS CLI v1](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv1.html) for the details and how to install.
68
68
69
-
3.**_Pre-flight check failed: ECS Exec requires the AWS CLI v1.19.28/v2.1.30 or later_**
69
+
3.**_π΄ Pre-flight check failed: ECS Exec requires the AWS CLI v1.19.28/v2.1.30 or later_**
70
70
Upgrade to the latest AWS CLI. See [the official documentation for the AWS CLI v2](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html) or [the official documentation for the AWS CLI v1](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv1.html) for the details and how to upgrade.
71
71
72
-
4.**_Session Manager Plugin | Missing_**
72
+
4.**_π΄ Session Manager Plugin | Missing_**
73
73
Install the Session Manager plugin. See [the official documentation](https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html) for the details and how to install.
74
74
75
-
5.**_Can I ExecuteCommand? | ecs:ExecuteCommand: implicitDeny_**
75
+
4.**_π‘ Cluster Configuration | Audit Logging Not Configured / Disabled_**
76
+
This check item won't block you to use ECS Exec, but we recommend you to enable logging and auditing for your ECS cluster from the security perspective. See [the official documentation](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html#ecs-exec-logging) for the details and how to enable them.
77
+
78
+
5.**_π΄ Can I ExecuteCommand? | ecs:ExecuteCommand: implicitDeny_**
76
79
The IAM user/role you used for the `check-ecs-exec.sh` are not allowed to use the `ecs:ExecuteCommand` API. See the "[Using IAM policies to limit access to ECS Exec](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html#ecs-exec-best-practices-limit-access-execute-command) section in the official documenation to add the required permission to the IAM user/role.
77
80
Note that the `Condition` element of the IAM policy is not currently supported to evaluate by `check-ecs-exec.sh`.
78
81
79
-
6.**_Can I ExecuteCommand? | kms:GenerateDataKey: implicitDeny_**
82
+
6.**_π΄ Can I ExecuteCommand? | kms:GenerateDataKey: implicitDeny_**
80
83
The IAM user/role you used for the `check-ecs-exec.sh` are not allowed to use the `kms:GenerateDataKey` API with the given KMS Key ID which you're using for the logging and auditing configuration for ECS exec. See the "[IAM permissions required for encryption using your own KMS customer master key (CMK)](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html#ecs-exec-logging) section under the "Logging and Auditing using ECS Exec" section in the official documenation to add the required permission to the IAM user/role.
81
84
Note that the `Condition` element of the IAM policy is not currently supported to evaluate by `check-ecs-exec.sh`.
82
85
83
-
7.**_Platform Version | 1.3.0 (Required: >= 1.4.0)_**
86
+
7.**_π΄ Platform Version | 1.3.0 (Required: >= 1.4.0)_**
84
87
On AWS Fargate, `ECS Exec` requires the Platform version 1.4.0 or newer. If your ECS task is part of an ECS service, then you can update the platform version by specifying the `PlatformVersion` parameter for the `UpdateService` API. If your ECS task is a standalone task, then you need to re-run the ECS task with the `PlatformVersion` parameter specified for the `RunTask` API. See also [the migration guide from the previous PVs](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html#platform-version-migration).
85
88
86
-
8.**_ECS Agent Version | x.y.z (Required: >= 1.50.2)_**
89
+
8.**_π΄ ECS Agent Version | x.y.z (Required: >= 1.50.2)_**
87
90
You need to update the version of the ECS Container Agent for your EC2 instance where your ECS task runs. See [the official documentation](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html) for the details and how to update.
88
91
89
-
9.**_Exec Enabled for Task | NO_**
92
+
9.**_π΄ Exec Enabled for Task | NO_**
90
93
You need to enable the ECS Exec feature for your ECS service or your ECS standalone task. If your ECS task is part of an ECS service, then you can update the ECS by specifying the `EnableExecuteCommand` parameter for the `UpdateService` API. If your ECS task is a standalone task, then you need to re-run the ECS task with the `EnableExecuteCommand` parameter specified for the `RunTask` API.
91
94
92
-
10.**_Managed Agent Status | STOPPED (Reason: stopped-reason-here)_**
95
+
10.**_π΄ Managed Agent Status | STOPPED (Reason: stopped-reason-here)_**
93
96
The managed agent for a container in your Task has stopped for some reasons. If you see this error again and again even after re-running your ECS task, then make sure you have other results from `check-ecs-exec.sh` are all green.
94
97
95
-
11.**_EC2 or Task Role | Not Configured"_ or _{serviceName}:{ActionName}: implicitDeny_**
98
+
11.**_π΄ EC2 or Task Role | Not Configured"_ or _{serviceName}:{ActionName}: implicitDeny_**
96
99
Your ECS task needs a task role or an instance role of the underlying EC2 instance with some permissions for using SSM Session Manager at least. See the [IAM permissions required for ECS Exec](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html#ecs-exec-enabling-and-using) section and the [Enabling logging and auditing in your tasks and services](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html#ecs-exec-logging) section in the official documentation for the details.
97
100
Note that the `Condition` element of the IAM policy is not currently supported to evaluate by `check-ecs-exec.sh`.
98
101
99
-
12.**_SSM PrivateLink "com.amazonaws.(region).ssmmessages" not found_**
102
+
12.**_π‘ SSM PrivateLink "com.amazonaws.(region).ssmmessages" not found_**
100
103
The `check-ecs-exec.sh` found one or more VPC endpoints configured in the VPC for your task, so you **may** want to add an additional SSM PrivateLink for your VPC. Make sure your ECS task has proper outbound internet connectivity, and if it doesn't, then you **need** to configure an additional SSM PrivateLink for your VPC.
0 commit comments