Skip to content

Commit

Permalink
Updated Episode 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanda Tan committed Feb 2, 2022
1 parent 22dfdf0 commit db2413b
Showing 1 changed file with 58 additions and 6 deletions.
64 changes: 58 additions & 6 deletions content/AWS/05_intro_to_cli.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
"<img src=\"./images/cli_commands_1.png\" width=720 align=\"center\">"
]
},
Expand All @@ -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": {
Expand Down

0 comments on commit db2413b

Please sign in to comment.