Skip to content

Commit 4aa8d01

Browse files
authored
Merge pull request #21 from aws-samples/markdown-formatting
Markdown formatting
2 parents 982b965 + 0e57467 commit 4aa8d01

21 files changed

Lines changed: 94 additions & 59 deletions

File tree

instra/tutorial-gen/3b-validate-tutorial.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
# validate tutorial
22

33
Validating the content of the AWS CLI tutorial and surface issues about the generated content.
4+
## formatting and style
5+
6+
Review the tutorial markdown for proper formatting:
7+
8+
**Backticks usage:**
9+
- Use backticks for all inline code, commands, file paths, resource IDs, status values, and technical terms
10+
- Examples: `aws s3 ls`, `my-bucket-name`, `ACTIVE`, `~/path/to/file`, `us-east-1`
11+
- Never use double quotes around backticked content (avoid `"~/file"`, use `~/file`)
12+
13+
**Tilde usage:**
14+
- Use tildes (`~`) only in code blocks to represent home directory paths
15+
- Replace tildes meaning "approximately" with the word "approximately"
16+
- Examples: "approximately $0.50/hour" not "~$0.50/hour"
17+
18+
**Quotes usage:**
19+
- Avoid double quotes around technical terms, file names, or commands in descriptive text
20+
- Use backticks instead: `filename.txt` not "filename.txt"
21+
- Keep quotes only for actual quoted speech or JSON string values in code blocks
22+
23+
Document any formatting issues in 3-formatting.md.
424

525
## deprecated features
626

@@ -24,4 +44,4 @@ Check the tutorial for issues from an application architecure standpoint. Consid
2444

2545
## improvements over baseline
2646

27-
Review the baseline tutorial for errors and omissions that were fixed by following the authoring instructions, or caught by validation. Note any issues in 3-baseline.md.
47+
Review the baseline tutorial for errors and omissions that were fixed by following the authoring instructions, or caught by validation. Note any issues in 3-baseline.md.

instra/tutorial-gen/4-address-feedback.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
# address feedback
22

33
Review the instructions for creating a tutorial, and the test results from previous steps. Address issues that arose during testing, as long as they are valid and don't contradict your instructions.
4-
4+
## formatting and style
5+
6+
If the previous step identified any formatting issues, fix them:
7+
8+
**Backticks corrections:**
9+
- Replace double quotes around technical terms with backticks
10+
- Remove redundant quotes around backticked content
11+
- Ensure all commands, file paths, resource IDs, and status values use backticks
12+
13+
**Tilde corrections:**
14+
- Replace tildes meaning "approximately" with the word "approximately"
15+
- Ensure tildes are only used in code blocks for home directory paths
16+
17+
**Quote corrections:**
18+
- Remove unnecessary double quotes around technical terms in descriptive text
19+
- Maintain quotes only for actual quoted content or JSON strings in code blocks
520
## deprecated features
621

722
If the previous step identified any deprecated features, revise the scripts and tutorial to use recommended features that provide the same functionality. If there isn't a newer feature available that provides the same functionality, remove the steps that use the deprecated feature. If the tutorial can't be completed without these steps, generate an error report and ask the user what to do next.
@@ -16,4 +31,4 @@ If the previous step identified any issues with security or architecture best pr
1631

1732
## readme
1833

19-
Generate a readme file that provides a high level overview of the tutorial and a list of the resources within.
34+
Generate a readme file that provides a high level overview of the tutorial and a list of the resources within.

tuts/001-lightsail-gs/lightsail-gs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Before you begin this tutorial, make sure you have the following:
1414
### Cost considerations
1515

1616
The resources you create in this tutorial will incur the following approximate costs if left running:
17-
- Lightsail nano instance: $5.00 USD per month (~$0.0068 per hour)
18-
- 8 GB additional storage: $0.80 USD per month (~$0.0011 per hour)
19-
- Instance snapshot: ~$1.00 USD per month for a 20 GB snapshot (~$0.0014 per hour)
17+
- Lightsail nano instance: $5.00 USD per month (approximately $0.0068 per hour)
18+
- 8 GB additional storage: $0.80 USD per month (approximately $0.0011 per hour)
19+
- Instance snapshot: approximately $1.00 USD per month for a 20 GB snapshot (approximately $0.0014 per hour)
2020

2121
The total cost for running this tutorial for one hour is approximately $0.0093 USD. The tutorial includes cleanup instructions to help you avoid ongoing charges. New Lightsail customers may be eligible for the free tier, which includes the $5 USD plan free for one month (up to 750 hours).
2222

tuts/003-s3-gettingstarted/s3-gettingstarted.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ aws s3api put-object \
114114
--metadata "author=AWSDocumentation,purpose=tutorial"
115115
```
116116

117-
Notice that we used "documents/" in the key name. This creates a logical folder structure in your bucket, even though S3 is actually a flat object store.
117+
Notice that we used `documents/` in the key name. This creates a logical folder structure in your bucket, even though S3 is actually a flat object store.
118118

119119
## Download and verify objects
120120

@@ -127,7 +127,7 @@ aws s3api get-object \
127127
"downloaded-sample-file.txt"
128128
```
129129

130-
The command downloads the object and saves it as "downloaded-sample-file.txt" in your current directory. The output provides metadata about the object:
130+
The command downloads the object and saves it as `downloaded-sample-file.txt` in your current directory. The output provides metadata about the object:
131131

132132
```
133133
{

tuts/008-vpc-private-servers-gs/vpc-private-servers-gs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ Before you begin this tutorial, you need:
2020
* At least 1 Application Load Balancer
2121

2222
**Estimated cost**: The resources created in this tutorial will incur charges in your AWS account:
23-
* NAT Gateways: ~$0.045 per hour, plus data processing charges
24-
* Elastic IP addresses: Free when associated with running instances, ~$0.005 per hour when not associated
23+
* NAT Gateways: approximately $0.045 per hour, plus data processing charges
24+
* Elastic IP addresses: Free when associated with running instances, approximately $0.005 per hour when not associated
2525
* EC2 instances: Varies by instance type (t3.micro used in this tutorial)
26-
* Application Load Balancer: ~$0.0225 per hour, plus data processing charges
26+
* Application Load Balancer: approximately $0.0225 per hour, plus data processing charges
2727

2828
## Create the VPC and subnets
2929

tuts/018-ecs-ec2/ecs-ec2-getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Output:
7575
}
7676
```
7777

78-
The response shows that your cluster has been created successfully and is in the "ACTIVE" status. You can now launch container instances and run tasks in this cluster.
78+
The response shows that your cluster has been created successfully and is in the `ACTIVE` status. You can now launch container instances and run tasks in this cluster.
7979

8080
**Verify cluster creation**
8181

tuts/028-sagemaker-featurestore/sagemaker-featurestore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ These commands first remove all objects from the S3 bucket and then delete the b
625625

626626
The following commands delete the SageMaker execution role that's created for this tutorial.
627627

628-
Note: Replace "123456789012" with your account ID.
628+
Note: Replace `123456789012` with your account ID.
629629
```
630630
# Delete the custom policy
631631
aws iam detach-role-policy \

tuts/030-marketplace-buyer-gs/marketplace-buyer-getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ aws marketplace-catalog list-entities \
5555
--query "WordPress"
5656
```
5757

58-
This command searches for WordPress-related AMI products in AWS Marketplace. You can replace "WordPress" with any keyword relevant to your needs.
58+
This command searches for WordPress-related AMI products in AWS Marketplace. You can replace `WordPress` with any keyword relevant to your needs.
5959

6060
**Get details about a specific product**
6161

tuts/035-workspaces-personal/workspaces-personal.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ Before you begin this tutorial, make sure you have the following:
2828
Running resources created in this tutorial will incur costs in your AWS account. Approximate costs include:
2929

3030
- **WorkSpaces Personal (Standard bundle with Windows)**:
31-
- AlwaysOn mode: ~$35/month
32-
- AutoStop mode: ~$9.75/month + $0.26/hour of usage
31+
- AlwaysOn mode: approximately $35/month
32+
- AutoStop mode: approximately $9.75/month + $0.26/hour of usage
3333

3434
- **Directory Services** (if you need to create one):
35-
- AWS Simple AD (Small): ~$36.50/month
36-
- AWS Managed Microsoft AD (Standard): ~$292/month
37-
- AD Connector: ~$36.50/month
35+
- AWS Simple AD (Small): approximately $36.50/month
36+
- AWS Managed Microsoft AD (Standard): approximately $292/month
37+
- AD Connector: approximately $36.50/month
3838

3939
Additional charges may apply for data transfer, increased storage volumes, and application licensing. For the most current pricing information, see the [Amazon WorkSpaces Pricing page](https://aws.amazon.com/workspaces/pricing/).
4040

@@ -70,7 +70,7 @@ Replace `d-abcd1234` with your actual directory ID. The registration process may
7070
aws workspaces describe-workspace-directories --directory-ids d-abcd1234
7171
```
7272

73-
Look for the `"State": "REGISTERED"` field in the output to confirm that registration is complete.
73+
Look for the `State: REGISTERED` field in the output to confirm that registration is complete.
7474

7575
## List available WorkSpaces bundles
7676

@@ -125,7 +125,7 @@ Creating a WorkSpace can take 20 minutes or more. To check the status of your Wo
125125
aws workspaces describe-workspaces --workspace-ids ws-abcd1234
126126
```
127127

128-
Replace `ws-abcd1234` with your actual WorkSpace ID. Look for the `"State"` field in the output:
128+
Replace `ws-abcd1234` with your actual WorkSpace ID. Look for the `State` field in the output:
129129
- `PENDING`: The WorkSpace is still being created
130130
- `AVAILABLE`: The WorkSpace is ready to use
131131
- `ERROR`: There was a problem creating the WorkSpace

tuts/037-emr-gs/emr-gs.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Before you begin this tutorial, make sure you have the following:
1515

1616
This tutorial creates AWS resources that will incur charges. The estimated cost for running this tutorial for one hour is approximately $0.20 USD (in the US East region), which includes:
1717

18-
- EMR cluster with 3 m5.xlarge instances: ~$0.19/hour
18+
- EMR cluster with 3 m5.xlarge instances: approximately $0.19/hour
1919
- S3 storage and requests: <$0.01/hour
2020

2121
To minimize costs, make sure to follow the cleanup instructions at the end of the tutorial to terminate all resources.
@@ -30,7 +30,7 @@ aws ec2 create-key-pair --key-name emr-tutorial-key --query 'KeyMaterial' --outp
3030
```
3131

3232
This command creates a new key pair named "emr-tutorial-key" and saves the private key to a file called
33-
"emr-tutorial-key.pem".
33+
`emr-tutorial-key.pem`.
3434

3535
**Set proper permissions on the key file**
3636

@@ -159,7 +159,7 @@ aws emr create-cluster \
159159
--log-uri s3://amzndemo-s3-demo-bucket/logs/
160160
```
161161

162-
Replace `your-key-pair-name` with the name of your EC2 key pair. In this tutorial, we use "emr-tutorial-key" as your key pair name.
162+
Replace `your-key-pair-name` with the name of your EC2 key pair. In this tutorial, we use `emr-tutorial-key` as your key pair name.
163163
This command creates a cluster with one primary node and two core nodes, all using m5.xlarge instances. The cluster will have Spark installed and will use the default IAM roles.
164164

165165
The command returns a cluster ID, which you'll need for subsequent operations:
@@ -179,7 +179,7 @@ Check the status of your cluster to see when it's ready:
179179
aws emr describe-cluster --cluster-id j-1234ABCD5678
180180
```
181181

182-
Replace `j-1234ABCD5678` with your actual cluster ID. The cluster is ready when its state changes to "WAITING":
182+
Replace `j-1234ABCD5678` with your actual cluster ID. The cluster is ready when its state changes to `WAITING`:
183183

184184
```json
185185
{
@@ -196,7 +196,7 @@ Replace `j-1234ABCD5678` with your actual cluster ID. The cluster is ready when
196196
}
197197
```
198198

199-
It may take 5-10 minutes for the cluster to reach the "WAITING" state.
199+
It may take 5-10 minutes for the cluster to reach the `WAITING` state.
200200

201201
## Submit work to your cluster
202202

@@ -230,7 +230,7 @@ Monitor the status of your step. Replace `s-1234ABCDEFGH` with your actual step
230230
aws emr describe-step --cluster-id j-1234ABCD5678 --step-id s-1234ABCDEFGH
231231
```
232232

233-
The step is complete when its state changes to "COMPLETED":
233+
The step is complete when its state changes to `COMPLETED`:
234234

235235
```json
236236
{
@@ -267,7 +267,7 @@ You should see output similar to:
267267

268268
**Download and view results**
269269

270-
Download the results file to your local machine. Replace "part-00000-abcd1234-abcd-1234-abcd-abcd1234abcd-c000.csv" with the actual filename from your "aws s3 ls" output.
270+
Download the results file to your local machine. Replace `part-00000-abcd1234-abcd-1234-abcd-abcd1234abcd-c000.csv` with the actual filename from your `aws s3 ls` output.
271271

272272
```bash
273273
aws s3 cp s3://amzndemo-s3-demo-bucket/results/part-00000-abcd1234-abcd-1234-abcd-abcd1234abcd-c000.csv ./results.csv
@@ -307,14 +307,14 @@ Step 1. Get your current IP address:
307307
curl -s https://checkip.amazonaws.com
308308
```
309309

310-
Step 2. Find your cluster's security group. Replace "j-1234ABCD5678" with your cluster ID.
310+
Step 2. Find your cluster's security group. Replace `j-1234ABCD5678` with your cluster ID.
311311

312312
```bash
313313
aws emr describe-cluster --cluster-id j-1234ABCD5678 --query 'Cluster.Ec2InstanceAttributes.EmrManagedMasterSecurityGroup' --output text
314314
```
315315

316316

317-
Step 3. Add SSH access rule to the security group. Replace "sg-xxxxxxxxx" with your security group ID that's returned in Step 2. Replace YOUR_IP_ADDRESS with the IP from
317+
Step 3. Add SSH access rule to the security group. Replace `sg-xxxxxxxxx` with your security group ID that's returned in Step 2. Replace YOUR_IP_ADDRESS with the IP from
318318
Step 1.
319319

320320
```bash
@@ -326,7 +326,7 @@ Step 1.
326326

327327
**Connect via SSH**
328328

329-
Use the following command to connect to the primary node of your cluster. Replace "j-1234ABCD5678" with your actual cluster ID. Replace "~/path/to/your-key-pair.pem" with the path to your key pair file. In this example, we use "~/emr-tutorial-key" as the path to your key pair.
329+
Use the following command to connect to the primary node of your cluster. Replace `j-1234ABCD5678` with your actual cluster ID. Replace `~/path/to/your-key-pair.pem` with the path to your key pair file. In this example, we use `~/emr-tutorial-key` as the path to your key pair.
330330

331331
```bash
332332
aws emr ssh --cluster-id j-1234ABCD5678 --key-pair-file ~/path/to/your-key-pair.pem
@@ -374,7 +374,7 @@ sudo cat /var/log/spark/spark-history-server.out
374374
**Troubleshooting**
375375
376376
**Connection timeout:** Verify that your security group allows SSH (port 22) from your IP
377-
**Permission denied:** Ensure your key pair file has correct permissions. Replace "~/emr-tutorial-key.pem" with the path to your key pair file. In this example, we use "~/emr-tutorial-key" as the path to your key pair.
377+
**Permission denied:** Ensure your key pair file has correct permissions. Replace `~/emr-tutorial-key.pem` with the path to your key pair file. In this example, we use `~/emr-tutorial-key` as the path to your key pair.
378378
```
379379
chmod 400 ~/emr-tutorial-key.pem
380380
```
@@ -387,19 +387,19 @@ When you're finished with the tutorial, clean up your resources to avoid incurri
387387
388388
**Terminate the cluster**
389389
390-
Terminate your EMR cluster. Replace "j-1234ABCD5678" with your cluster ID.
390+
Terminate your EMR cluster. Replace `j-1234ABCD5678` with your cluster ID.
391391
392392
```bash
393393
aws emr terminate-clusters --cluster-ids j-1234ABCD5678
394394
```
395395
396-
Check the termination status. Replace "j-1234ABCD5678" with your cluster ID.
396+
Check the termination status. Replace `j-1234ABCD5678` with your cluster ID.
397397
398398
```bash
399399
aws emr describe-cluster --cluster-id j-1234ABCD5678
400400
```
401401
402-
The cluster is terminated when its state changes to "TERMINATED". An example response is as follows:
402+
The cluster is terminated when its state changes to `TERMINATED`. An example response is as follows:
403403
404404
```json
405405
{
@@ -419,7 +419,7 @@ The cluster is terminated when its state changes to "TERMINATED". An example res
419419
420420
**Delete S3 resources**
421421
422-
Delete the contents of your S3 bucket. Replace "amzndemo-s3-demo-bucket" with the name of your Amazon S3 bucket.
422+
Delete the contents of your S3 bucket. Replace `amzndemo-s3-demo-bucket` with the name of your Amazon S3 bucket.
423423
424424
```bash
425425
aws s3 rm s3://amzndemo-s3-demo-bucket --recursive

0 commit comments

Comments
 (0)