Using Console
Using CLI
<Instance-ID>
, <S3-Bucket-Name>
, and <Region>
with the appropriate values.Step 5: Repeat Step 4 for all the identified EC2 instances.Step 6: Verify that SSM management is enabled for the EC2 instances by running the following command:Using Python
pip install boto3
INSTANCE_ID
with the ID of the EC2 instance you want to check.INSTANCE_ID
with the ID of the EC2 instance you want to remediate.This command will install the Amazon CloudWatch agent on the EC2 instance and configure it to be managed by SSM. You can monitor the progress of the command using the command_id
returned by the send_command
method.