Cloud9

We mainly check whether commands can be executed using AWS Cloud9.
If you would like to provide example commands, please submit them using the form below.
Please also provide corrections if the command examples have mistake.

Suggest
The proposed content may be modified. Please be aware of this before making any suggestions.


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/MyDemoUser

output

{
    "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-write

output

{
  "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/AnotherDemoUser

output

None

by doc

Delete the development environment

aws cloud9 delete-environment \
--environment-id 8a34f51ce1e04a08882f1e811bd706EX

output

None

by doc

タイトルとURLをコピーしました