Putting it all together – creating a functional IAM user with the AWS CLI
Now that we have created RBI_Admin
as a new IAM user object, let's use the AWS CLI to assign it credentials for both the Management Console and the AWS CLI, and give full administrator access to our AWS account. As I mentioned earlier, identity objects used for authorization decisions (groups, permission boundaries, user policies, and so on), those used for authentication (credentials), and those used for identification (user objects) are all fully independent IAM objects within AWS IAM. What makes them work as we expect them to work is their relationships with each other. This relationship is most readily seen through attributes on one of those objects referencing another. We will be using the AWS CLI to establish those relationships. Before we begin, let's take a moment to map out what it is we want to achieve, as this may help us understand how and why certain AWS CLI commands are invoked...