Install plugins on AWS


I want to install the batch create plugin but is asking me for FTP settings, since im on an EC2-instance on AWS, the only way to access is via SFTP.

After read some forums topics here:

I set on wp-config.php
define('FS_METHOD', 'direct');

and changed the owner of my folders to apache:apache, but still is not working. It keeps saying: " Hang on while we install Batch Create..."

Can you advise?