AWS CloudWatch Integration¶
Starting in release 4.0, Aviatrix Controller and gateway syslog can be exported to AWS CloudWatch Logs.
- Only AWS gateways and Controllers are supported. Other cloud types are not supported.
- AWS gateways created from an access account with AWS secret key and access key are not supported.
Step 1: Prepare on the Collector account for Aviatrix logs¶
In order for Aviatrix controllers and gateways in different AWS accounts to send/update logs to the collector’s AWS account, follow the instructions below to setup IAM role and policies on the collector’s AWS account.
- Go to AWS console, create an IAM role with a name aviatrix-role-cloudwatch.
- Add Trust-Relationships for Aviatrix Controllers’ and all gateways’ AWS accounts. If you are already using CloudWatch for logs from all your AWS accounts, you may have already built the trust relationship between accounts. If this is the case, skip this step.
- Attach AWS IAM Cloudwatch policy to the role aviatrix-role-cloudwatch.
a: Create an IAM role aviatrix-role-cloudwatch, make sure the role name is “aviatrix-role-cloudwatch”.
b: Add Trust-Relationships for controllers and gateways AWS accounts
c: Attach AWS IAM policy for “CloudWatchAgentServerPolicy” to the role
Step 2 Enable CloudWatch log on the Controller¶
- ARN of IAM role: Specify the ARN of the IAM role in the collector’s AWS account.
- Region: Specify which region you wish to store your logs.