diff --git a/content/AWS/05_intro_to_cli.ipynb b/content/AWS/05_intro_to_cli.ipynb index 2c7ad4b..d66a8d0 100644 --- a/content/AWS/05_intro_to_cli.ipynb +++ b/content/AWS/05_intro_to_cli.ipynb @@ -35,8 +35,60 @@ "\n", "If this is your first time using the cloud console, you may encounter a pop up. It is fine to dismiss it. \n", "\n", - "Once we have launched the CloudShell, we can run some commands. Here a fundamental knowledge of unix commands may be useful but we will utilize the several aws-cli commands to help you get a feel of what the AWS CLI can do. \n", + "Once we have launched the CloudShell, we can run some commands. Here a fundamental knowledge of unix commands may be useful but we will utilize the several aws-cli commands to help you get a feel of what the AWS CLI can do. At the prompt (the prompt is where is says [cloudshell-user@ip-XXXXXXX~]$), we will test out these commands:\n", "\n", + "To list the contents: \n", + "\n", + "``` bash\n", + "ls\n", + "\n", + "```\n", + "\n", + "To check which file directory you are working in:\n", + "\n", + "```bash\n", + "pwd\n", + "\n", + "```\n", + "\n", + "To use the AWS command to list your s3 buckets:\n", + "\n", + "```bash\n", + "aws s3 ls\n", + "\n", + "```\n", + "\n", + "Let's list the contents of your s3 bucket:\n", + "\n", + "```bash\n", + "aws s3 ls s3://bucketname\n", + "\n", + "```\n", + "\n", + "Looks like there is nothing there right now. So let us create a text file called `hemingway.txt` and populate it with a nonsensical quote. \n", + "\n", + "```bash\n", + "cat > hemingway.txt\n", + "The world breaks everyone. \n", + "```\n", + "\n", + "Press ^C to exit edit mode. \n", + "\n", + "Now let's move the file into our s3 bucket. \n", + "\n", + "```bash\n", + "aws s3 mv ./hemingway.txt s3://bucketname\n", + "\n", + "```\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "id": "9ed2bb8f", + "metadata": {}, + "source": [ "" ] }, @@ -53,12 +105,12 @@ ] }, { - "cell_type": "code", - "execution_count": null, - "id": "cba68baf", + "cell_type": "markdown", + "id": "c27cdc13", "metadata": {}, - "outputs": [], - "source": [] + "source": [ + "# Using the CLI to access resources" + ] } ], "metadata": {