|
| 1 | +## Setup |
| 2 | + |
| 3 | +### AWS Account |
| 4 | + |
| 5 | +In order to complete this workshop, you'll need an AWS account and access to |
| 6 | +create AWS Identity and Access Management (IAM), Amazon Cognito, AWS Lambda, |
| 7 | +Amazon S3, Amazon API Gateway, AWS Amplify Console, Amazon DynamoDB, and AWS |
| 8 | +Cloud9 resources within that account. |
| 9 | + |
| 10 | +The code and instructions in this workshop assume only one participant is using |
| 11 | +a given AWS account at a time. If you attempt sharing an account with another |
| 12 | +participant, you will encounter naming conflicts for certain resources. You can |
| 13 | +work around this by either using a suffix in your resource names or using |
| 14 | +distinct Regions, but the instructions do not provide details on the changes |
| 15 | +required to make this work. |
| 16 | + |
| 17 | +Use a personal account or create a new AWS account for this workshop rather than |
| 18 | +using an organization's account to ensure you have full access to the necessary |
| 19 | +services and to ensure you do not leave behind any resources from the workshop. |
| 20 | + |
| 21 | +### AWS Cloud9 IDE |
| 22 | + |
| 23 | +AWS Cloud9 is a cloud-based integrated development environment (IDE) that lets |
| 24 | +you write, run, and debug your code with just a browser. It includes a code |
| 25 | +editor, debugger, and terminal. Cloud9 comes pre-packaged with essential tools |
| 26 | +for popular programming languages and the AWS Command Line Interface (CLI) |
| 27 | +pre-installed so you don’t need to install files or configure your laptop for |
| 28 | +this workshop. Your Cloud9 environment will have access to the same AWS |
| 29 | +resources as the user with which you logged into the AWS Management Console. |
| 30 | + |
| 31 | +Take a moment now and setup your Cloud9 development environment. |
| 32 | + |
| 33 | +**:white_check_mark: Step-by-step Instructions** |
| 34 | + |
| 35 | +1. Go to the AWS Management Console, click **Services** then select **Cloud9** |
| 36 | + under Developer Tools. |
| 37 | + |
| 38 | +1. Click **Create environment**. |
| 39 | + |
| 40 | +1. Enter `Development` into **Name** and optionally provide a **Description**. |
| 41 | + |
| 42 | +1. Click **Next step**. |
| 43 | + |
| 44 | +1. You may leave **Environment settings** at their defaults of launching a new |
| 45 | + **t2.micro** EC2 instance which will be paused after **30 minutes** of |
| 46 | + inactivity. |
| 47 | + |
| 48 | +1. Click **Next step**. |
| 49 | + |
| 50 | +1. Review the environment settings and click **Create environment**. It will |
| 51 | + take several minutes for your environment to be provisioned and prepared. |
| 52 | + |
| 53 | +1. Once ready, your IDE will open to a welcome screen. Below that, you should |
| 54 | + see a terminal prompt. |
| 55 | + |
| 56 | + You can run AWS CLI commands in here just like you would on your local computer. |
| 57 | + Verify that your user is logged in by running `aws sts get-caller-identity`. |
| 58 | + |
| 59 | + ```console |
| 60 | + aws sts get-caller-identity |
| 61 | + ``` |
| 62 | + |
| 63 | + You'll see output indicating your account and user information: |
| 64 | + |
| 65 | + ```console |
| 66 | + ec2-user:~/environment $ aws sts get-caller-identity |
| 67 | + ``` |
| 68 | + ```json |
| 69 | + { |
| 70 | + "Account": "123456789012", |
| 71 | + "UserId": "AKIAI44QH8DHBEXAMPLE", |
| 72 | + "Arn": "arn:aws:iam::123456789012:user/Alice" |
| 73 | + } |
| 74 | + ``` |
| 75 | + |
| 76 | +Keep your AWS Cloud9 IDE opened in a tab throughout this workshop. |
| 77 | + |
| 78 | +### :star: Tips |
| 79 | + |
| 80 | +:bulb: Keep an open scratch pad in Cloud9 or a text editor on your local computer |
| 81 | +for notes. When the step-by-step directions tell you to note something such as |
| 82 | +an ID or Amazon Resource Name (ARN), copy and paste that into the scratch pad. |
| 83 | + |
| 84 | +### :star: Recap |
| 85 | + |
| 86 | +:key: Use a unique personal or development [AWS account](#aws-account) |
| 87 | + |
| 88 | +:key: Keep your [AWS Cloud9 IDE](#aws-cloud9-ide) opened in a tab |
| 89 | + |
| 90 | +### Next |
| 91 | + |
| 92 | +:white_check_mark: Proceed to the first module, [Static Web Hosting][static-web-hosting], |
| 93 | +wherein you'll deploy a static web site via AWS Amplify Console. |
| 94 | + |
| 95 | +[region-table]: https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/ |
| 96 | +[static-web-hosting]: ../1_StaticWebHosting/ |
0 commit comments