The execution of commands is primarily verified in AWS Cloud9. 
If you would like to provide command examples, please submit them through the contact form. 
You may also use this form to request corrections for the listed command examples.
Create an EC2 development environment
aws cloud9 create-environment-ec2 \
--name my-demo-env \
--description "My demonstration development environment." \
--instance-type t2.micro \
--image-id amazonlinux-2023-x86_64 \
--subnet-id subnet-1fab8aEX \
--automatic-stop-time-minutes 60 \
--owner-arn arn:aws:iam::123456789012:user/MyDemoUseroutput
{
    "environmentId": "8a34f51ce1e04a08882f1e811bd706EX"
}by doc
Add environment members to your development environment
aws cloud9 create-environment-membership \
--environment-id 8a34f51ce1e04a08882f1e811bd706EX \
--user-arn arn:aws:iam::123456789012:user/AnotherDemoUser \
--permissions read-writeoutput
{
  "membership": {
    "environmentId": "8a34f51ce1e04a08882f1e811bd706EX",
    "userId": "AIDAJ3LOROMOUXTBSU6EX",
    "userArn": "arn:aws:iam::123456789012:user/AnotherDemoUser",
    "permissions": "read-write"
  }
}by doc
Remove environment members from the development environment
aws cloud9 delete-environment-membership \
--environment-id 8a34f51ce1e04a08882f1e811bd706EX \
--user-arn arn:aws:iam::123456789012:user/AnotherDemoUseroutput
Noneby doc
Delete the development environment
aws cloud9 delete-environment \
--environment-id 8a34f51ce1e04a08882f1e811bd706EXoutput
Noneby doc
 
  
  
  
  
