CloudWatch

  • To get Memory and disk related metric install cloudwatch agent.

    • Ex: SwapUtilization

  • You can configure an Amazon CloudWatch alarm that triggers the recovery of the EC2 instance if it becomes impaired (Instance check fails only not system check fails)

CloudTrail

https://docs.aws.amazon.com/awscloudtrail/latest/userguide/best-practices-security.html

  • To share CloudTrail log files between multiple AWS accounts

  1. Create an IAM role for each account that you want to share log files with.

  2. For each of these IAM roles, create an access policy that grants read-only access to the account you want to share the log files with.

  3. Have an IAM user in each account programmatically assume the appropriate role and retrieve the log files.

https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-sharing-logs.html