Deployment of functionbeat on AWS

How can we configure the functionbeat on AWS to push sqs data to Elastic? Do we need to install and configure functionbeat on an EC2 to configure the .yml file?