I am trying to run aws s3 cp command from within php code using shell exec. Following is the php code.
echo shell_exec(\"sudo aws s3 cp s3:///s
From your terminal, you can then run:
$ cat ~/.aws/config
[profile eb-cli]
aws_access_key_id = XXXXXX
aws_secret_access_key = XXXXXX
$ aws configure
and then you will be asked for 4 values:
- Access Key ID (Access Key) - This is the shorter of the two values.
- Secret Access Key
- Default region name (type in 'us-east-1')
- Output format (type in 'json')
then
$ aws s3 sync s3://