I'm trying to ssh to my docker container in Elastic Beanstalk via awsebcli. But it always complains Access Denied by the following command:
eb init --profile default1 Microservices-Docker --debug
The debug info is listed below:
2017-04-06 10:15:29,724 (DEBUG) ebcli.lib.aws : Making api call: (elasticbeanstalk, describe_configuration_settings) to region: eu-west-1 with args:{'ApplicationName': 'Microservices-Docker', 'EnvironmentName': 'customer-track-test'}
2017-04-06 10:03:41,541 (DEBUG) ebcli.lib.aws : Response: {'ResponseMetadata':
{'date': 'Thu, 06 Apr 2017 06:03:41 GMT', 'RetryAttempts': 0,
'HTTPStatusCode': 403, 'RequestId': 'c8bce47d-1a8e-1117-92b2-b348ebce885e'},
'Error': {'Message': 'Access Denied', 'Code':
'InsufficientPrivilegesException', 'Type': 'Sender'}}
2017-04-06 10:03:41,541 (DEBUG) ebcli.lib.aws : API call finished, status = 403
2017-04-06 10:03:41,541 (DEBUG) ebcli.lib.aws : Received a 403
NotAuthorizedError: Operation Denied. Access Denied
I add full access policy to Elastic Beanstalk to my current user, what could possibly cause that error, any suggestions? Thanks!