Transcription of AWS Cloud9 - User Guide
1 AWS Cloud9 user GuideAWS Cloud9 : user GuideCopyright 2018 Amazon Web Services, Inc. and/or its affiliates. All rights Cloud9 user GuideAmazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any mannerthat is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks notowned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored Cloud9 user GuideTable of ContentsWhat Is AWS Cloud9 ?
2 1 How Do I Get Started? .. 1 What Can I Do with AWS Cloud9 ? .. 1 Topics in This Guide .. 1 Related Videos .. 2 Related Web Pages .. 2 How Does AWS Cloud9 Work? .. 3 Pricing.. 4 About Cloud9 Versions .. 4I Have Additional Questions or Need Help .. 4 Getting Started .. 5 Express Setup .. 5 Step 1: Create an AWS Account .. 6 Step 2: Sign in to the AWS Cloud9 Console with an AWS Account Root user .. 6 Next Steps .. 7 Team Setup .. 7 Step 1: Create an AWS Account.
3 8 Step 2: Create an IAM Group and user , and Add the user to the Group .. 8 Step 3: Add AWS Cloud9 Access Permissions to the Group .. 11 Step 4: Sign in to the AWS Cloud9 Console .. 13 Next Steps .. 14 Advanced Team Setup .. 14 Step 1: Create a Customer-Managed Policy .. 15 Step 2: Add Customer-Managed Policies to a Group .. 16 Customer-Managed Policy Examples for Teams Using AWS Cloud9 .. 16 Next Steps .. 20 IDE Tutorial .. 20 Prerequisites .. 21 Step 1: Create an Environment .. 21 Step 2: Tour the IDE.
4 26 Step 3: Clean Up.. 46 Next Steps .. 47 AWS Lambda Tutorial .. 47 Prerequisites .. 48 Step 1: Create and Open the Environment .. 48 Step 2: Create the Lambda Function and API .. 50 Step 3: Add Code to the Function .. 52 Step 4: Run the Function Locally .. 54 Step 5: Debug the Function Locally .. 56 Step 6: Run the API Locally.. 57 Step 7: Debug the API Locally.. 58 Step 8: Run the Function in Production .. 59 Step 9: Run the API in Production.
5 59 Step 10: Change the Function Locally .. 60 Step 11: Deploy the Changed Function into Production .. 60 Step 12: Clean Up.. 61 Next Steps .. 62 Advanced AWS Lambda Tutorial .. 62 Prerequisites .. 63 Step 1: Create the Lambda Function and API .. 63 Step 2: Set up Amazon SNS .. 65 Step 3: Run the Function Locally .. 66 Step 4: Debug the Function Locally .. 67 Step 5: Run the API Locally.. 68iiiAWS Cloud9 user GuideStep 6: Debug the API Locally.. 68 Step 7: Deploy and Run the Changed Function in Production.
6 69 Step 8: Clean Up.. 70 Next Steps .. 71 Working with Environments .. 73 Creating an Environment .. 74 Creating an EC2 Environment .. 74 Creating an SSH Environment .. 78 Opening an Environment .. 81 Call AWS Services from an Environment .. 83 Create and Use an Instance Profile to Manage Temporary Credentials .. 84 Create and Store Permanent Access Credentials in an Environment .. 88 Changing Environment Settings .. 89 Change Environment Preferences .. 90 Change Environment Settings with the Console.
7 90 Change Environment Settings with Code .. 93 Working with Shared Environments .. 93 Contents.. 94 Shared Environment Usage Scenarios .. 94 About Environment Member Access Roles .. 94 Invite a user in the Same Account as the Environment .. 96 Have an AWS Cloud9 Administrator in the Same Account as the Environment Invite Themselfor Others.. 97 Invite a user in a Different Account Than the Environment .. 98 Open a Shared Environment .. 101 See a List of Environment Members.
8 101 Open the Active File of an Environment Member .. 102 Open the Open File of an Environment Member .. 103Go to the Active Cursor of an Environment Member .. 103 Chat with Other Environment Members .. 103 View Chat Messages in a Shared Environment .. 104 Delete a Chat Message from a Shared Environment .. 104 Delete All Chat Messages from a Shared Environment .. 104 Change the Access Role of an Environment Member .. 104 Remove Your user From a Shared Environment .. 105 Remove Another Environment Member.
9 106 Environment Sharing Best Practices .. 107 Moving or Resizing an Environment .. 107 Deleting an Environment .. 109 Deleting an Environment with the Console .. 109 Deleting an Environment with Code .. 111 Working with the IDE .. 113 Language Support .. 114 Menu Commands Reference .. 115 AWS Cloud9 Menu .. 115 File Menu.. 116 Edit Menu .. 117 Find Menu.. 119 View Menu.. 120 Goto Menu.. 120 Run Menu.. 121 Tools Menu .. 122 Window Menu .. 122 Support Menu.
10 124 Preview Menu .. 124 Other Menu Bar Commands.. 124 Finding and Replacing Text .. 124ivAWS Cloud9 user GuideFind Text in a Single File .. 125 Replace Text in a Single File .. 125 Find Text in Multiple Files .. 125 Replace Text in Multiple Files .. 126 Find and Replace Options .. 127 Previewing Files .. 127 Open a File for Preview.. 128 Reload a File Preview.. 128 Change the File Preview Type .. 128 Open a File Preview in a Separate Web Browser Tab.