CmdID / aws / aws cloud9
aws cloud9 create-environment-membership
Adds an environment member to an Cloud9 development environment. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To add an environment member to an AWS Cloud9 development environment
The following create-environment-membership example adds the specified environment member to the specified AWS Cloud9 development environment.
aws cloud9 create-environment-membership --environment-id 8a34f51ce1e04a08882f1e811bd706EX --user-arn arn:aws:iam::123456789012:user/AnotherDemoUser --permissions read-writeIdentify--environment-idThe ID of the environment that contains the environment member you want to add.--user-arnThe Amazon Resource Name (ARN) of the environment member you want to add.--permissionsThe type of environment member permissions you want to associate with this environment member.Its output
{
"membership": {
"environmentId": "8a34f51ce1e04a08882f1e811bd706EX",
"userId": "AIDAJ3LOROMOUXTBSU6EX",
"userArn": "arn:aws:iam::123456789012:user/AnotherDemoUser",
"permissions": "read-write"
}
}For more information, see Working with shared environment in AWS Cloud9 in the AWS Cloud9 User Guide.
Options
--environment-idThe ID of the environment that contains the environment member you want to add.--permissionsThe type of environment member permissions you want to associate with this environment member.--user-arnThe Amazon Resource Name (ARN) of the environment member you want to add.