AWS CLI access
The AWS Command Line Interface (AWS CLI) can be used to access AWS resources
through a command-line utility. To set up the AWS CLI environment, notably the
configuration of credentials, the aws configure command may be used.
The aws configure command will ask for the following information, which will
be stored (in cleartext) in the config and credentials files (by default in
a .aws folder in the current user’s home directory):
-
Access key ID. -
Secret access key. -
AWS default region.
-
Output format.
To create an Access key ID and secret access key, refer to the
AWS official documentation.
ReadOnlyAccess and SecurityAudit managed policies
The ReadOnlyAccess managed policy
and SecurityAudit managed policy
can be attached to the principal used to retrieve the CloudTrail logs and
perform the security review in order to grant the required and necessary
permissions.
Specific tools may also require additional permissions. For example,
Invictus-AWS notably requires
the permissions to write the exported logs to a specific S3 bucket.
View on GitHub