...
openstack credential create --type ec2 --project <project> <user> '{"access": "<aws_access_key>", "secret": "<aws_secret_key>"}'
Finally, with your aws credentials, you must create the awscli configuration file ~/.aws/config with, for instance, the following content:
...