James K.
James K.

Reputation: 364

AWS Elastic Beanstalk aws.push permission denied

I'm new to AWS (and Ubuntu, for that matter), and figured Elastic Beanstalk would be a good place to start. I have a PHP application, in a git repository, that works fine when I test it locally or on other hosts. Following the instructions on the getting started guide (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-reference-get-started.html) everything works until I get to git aws.push.

I get the error:

fatal: cannot exec '.git/AWSDevTools/aws.elasticbeanstalk.push': Permission denied
fatal: While expanding alias 'aws.elasticbeanstalk.push': '.git/AWSDevTools/aws.elasticbeanstalk.push': Success

The same issue arises if I try it as root under sudo, which makes me think it's not a local problem.

I've Googled very extensively, and know little more than the obvious: "permission denied." Is it even a local issue or an AWS authentication issue? Any guidance would be greatly appreciated.

I'm running x64 Ubuntu 13.04.

Upvotes: 1

Views: 856

Answers (1)

Sushil
Sushil

Reputation: 501

You can change permission of the file using the command chmod in ubuntu.

Usage: chmod {options} filename

The various options and details can be found in the file permissions page.

The quick fix would be: chmod -R 777 aws.elasticbeanstalk.push.

Thanks

Upvotes: 1

Related Questions