AWS Lambda function for collecting FSX information

Question:

I am trying to collect FSX capacity via lambda function using Python3.9

fsx_connection = boto3.client('fsx', aws_access_key_id=ACCESS_KEY, aws_secret_access_key=SECRET_KEY,aws_session_token = SESSION_TOKEN, region_name="eu-west-1")

How can I collect the fsx storage capacity with fsx_connection components?

Thanks in advance;

Asked By: Bar Elhanati

||

Answers:

From Monitoring with Amazon CloudWatch – Amazon FSx for Windows File Server, the only metrics available for Amazon CloudWatch are:

  • DataReadBytes
  • DataWriteBytes
  • DataReadOperations
  • DataWriteOperations
  • MetadataOperations
  • FreeStorageCapacity: The amount of available storage capacity (in bytes)
Answered By: John Rotenstein