Invalidate cache cloudfront

I was hoping to not use AWS cli and instead just use serverless as cloud agnostic devops. Not possible?