• HOME
  • TECH BLOG
  • MIGRATING TO AMAZON WEB SERVICES
  • IT PROJECT MANAGEMENT BLOG
  • Q&A
  • INTERACTIVE LEARNING

CREATE IAM group

To set up a group, you need to create the group.

you Then give the group permissions based on the type of work that you expect the users in the group to do. Finally, add users to the group.

You might create an IAM user when someone joins your team, or when you create a new application
that needs to make API calls to AWS.



aws iam create-group - command to create a user in iam


aws iam create-group --group-name testgroup

<aws> - every cli command starts with aws

<iam> - followed by the service which in this case is iam

<create-group> - followed by the command *notice there is 1 dash (-) with no space between create and group

<--group-name> - followed by --group-name*notice that there are 2 dashes (--) before group-name and 1 dash (-) between group

and name

<testgroup> - the name of your group which in this case is "testgroup"




CREATE IAM USER

Creating an IAM User in Your AWS Account
You can create one or more IAM users in your AWS account.

You might create an IAM user when someone joins your team, or when you create a new application that needs to make API calls to AWS.



aws iam create-user command to create a user in iam


aws iam create-user --user-name beatlejuice

<aws> - every cli command starts with aws

<iam> - followed by the service which in this case is iam

<create-user> - followed by the command *notice there is 1 dash (-) with no space between create and user

<--username> - followed by --username *notice that there are 2 dashes (--) before username

<beatlejuice> - the name of your user which in this case is "beatlejuice"




aws iam list-groups

Lists the IAM groups



aws iam list-users

Lists the IAM users



AWS IAM add-user-to-group

adds the specified user to the specified group



aws iam add-user-to-group


aws iam add-user-to-group --user-name beatlejuice --groupname testgroup

<aws> - every cli command starts with aws

<iam> - followed by the service which in this case is iam

<add-user-to-group> - followed by the command *notice there is 1 dash (-) with no space between add and user and to and group

<--username> - followed by --username *notice that there are 2 dashes (--) before username

<beatlejuice> - the name of your user which in this case is "beatlejuice"

<group-name> - followed by --group-name*notice that there are 2 dashes (--) before group-name and 1 dash (-) between group and name

<testgroup> - the name we called our group



CERTIFIED CLOUD EXPERTS | AWS PARTNER NETWORK
CLOUD CONSULTING FIRM | (516) 387-2085 | CONTACT US