Creating a Group

You can create a group in your account to manage the same set of permissions for a several users.

After creating a group, you need to add users and apply permissions to it. For more information, see Adding or Removing a User from a Group and Managing Policies to Access Your Resources.

Creating a Group Using OSC CLI

See the CreateGroup command sample in the documentation of the EIM API.

Creating a Group Using AWS CLI

To create a group, use the create-group command following this syntax:

Request sample
$ aws iam create-group \
    --profile YOUR_PROFILE \
    --group-name GROUP_NAME \
    [--path NOT_SPECIFIED] \
    --endpoint https://eim.eu-west-2.outscale.com

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • group-name: The name for the group you want to create.

    This name must be unique and must contain between 1 and 128 characters. Allowed characters are a-z, A-Z, 0-9, and +=,.@-_.

  • (optional) path: The path for the group (if you do not specify any value, it is set to a slash /). For more information, see Resource Identifiers.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The create-group command returns the following elements:

  • Group: Information about the newly created group. This element contains the following information:

    • Path: The path for the group.

    • CreateDate: The date and time of creation of the group.

    • GroupId: The ID of the group.

    • Arn: The OUTSCALE Resource Name (ORN) of the group. For more information, see Resource Identifiers.

    • GroupName: The common name of the group.

Result sample
{
    "Group": {
        "Path": "/",
        "CreateDate": "2016-05-12T06:30:24.165Z",
        "GroupId": "LMGPOKFGVV8K6LEXAMPLE",
        "Arn": "arn:aws:iam::123456789012:group/GROUP_NAME",
        "GroupName": "GROUP_NAME
    }
}

The group is created in your account.

Related Pages

Corresponding API Method

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.