in source/lib/efs.py [0:0]
def size(self, efs_id):
# Check the EFS size
try:
client = boto3.client('efs')
self.logger.debug('Checking EFS Size')
response = client.describe_file_systems(
MaxItems=2,
FileSystemId=efs_id
)
return (response['FileSystems'][0]['SizeInBytes']['Value'])
except Exception as e:
self.logger.error("unhandled exception: EFS_size", exc_info=1)
return 'unhandled exception'