Skip to content

Commit 158dc34

Browse files
committed
unordered list bullets and trailing whitespace
1 parent 0e57467 commit 158dc34

122 files changed

Lines changed: 1101 additions & 1101 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tuts/001-lightsail-gs/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ You can either run the automated script `lightsail-gs.sh` to execute all operati
88

99
The script creates the following AWS resources in order:
1010

11-
Lightsail instance (nano_3_0 bundle with Amazon Linux 2023)
12-
Lightsail disk (8 GB block storage disk)
13-
Lightsail instance snapshot (backup of the instance)
11+
- Lightsail instance (nano_3_0 bundle with Amazon Linux 2023)
12+
- Lightsail disk (8 GB block storage disk)
13+
- Lightsail instance snapshot (backup of the instance)
1414

1515
The script prompts you to clean up resources when you run it, including if there's an error part way through. If you need to clean up resources later, you can use the script log as a reference point for which resources were created.

tuts/002-vpc-gs/README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ You can either run the automated script `vpc-gs.sh` to execute all operations au
88

99
The script creates the following AWS resources in order:
1010

11-
EC2 VPC (10.0.0.0/16 CIDR block with DNS support and hostnames enabled)
12-
EC2 subnet (public subnet in AZ1 - 10.0.0.0/24)
13-
EC2 subnet (public subnet in AZ2 - 10.0.1.0/24)
14-
EC2 subnet (private subnet in AZ1 - 10.0.2.0/24)
15-
EC2 subnet (private subnet in AZ2 - 10.0.3.0/24)
16-
EC2 internet gateway (for public internet access)
17-
EC2 route table (public route table with internet gateway route)
18-
EC2 route table association (public subnet AZ1 to public route table)
19-
EC2 route table association (public subnet AZ2 to public route table)
20-
EC2 route table (private route table)
21-
EC2 route table association (private subnet AZ1 to private route table)
22-
EC2 route table association (private subnet AZ2 to private route table)
23-
EC2 elastic IP (for NAT gateway)
24-
EC2 NAT gateway (in public subnet AZ1 for private subnet internet access)
25-
EC2 security group (web server security group allowing HTTP/HTTPS)
26-
EC2 security group (database security group allowing MySQL from web servers)
11+
- EC2 VPC (10.0.0.0/16 CIDR block with DNS support and hostnames enabled)
12+
- EC2 subnet (public subnet in AZ1 - 10.0.0.0/24)
13+
- EC2 subnet (public subnet in AZ2 - 10.0.1.0/24)
14+
- EC2 subnet (private subnet in AZ1 - 10.0.2.0/24)
15+
- EC2 subnet (private subnet in AZ2 - 10.0.3.0/24)
16+
- EC2 internet gateway (for public internet access)
17+
- EC2 route table (public route table with internet gateway route)
18+
- EC2 route table association (public subnet AZ1 to public route table)
19+
- EC2 route table association (public subnet AZ2 to public route table)
20+
- EC2 route table (private route table)
21+
- EC2 route table association (private subnet AZ1 to private route table)
22+
- EC2 route table association (private subnet AZ2 to private route table)
23+
- EC2 elastic IP (for NAT gateway)
24+
- EC2 NAT gateway (in public subnet AZ1 for private subnet internet access)
25+
- EC2 security group (web server security group allowing HTTP/HTTPS)
26+
- EC2 security group (database security group allowing MySQL from web servers)
2727

2828
The script prompts you to clean up resources when you run it, including if there's an error part way through. If you need to clean up resources later, you can use the script log as a reference point for which resources were created.

tuts/003-s3-gettingstarted/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ You can either run the automated script `s3-gettingstarted.sh` to execute all op
88

99
The script creates the following AWS resources in order:
1010

11-
S3 bucket (primary bucket for tutorial)
12-
S3 bucket (secondary bucket for cross-region replication)
13-
S3 public access block configuration
14-
S3 bucket versioning configuration
15-
S3 bucket encryption configuration
16-
S3 object (sample text file)
17-
S3 object (sample image file)
18-
S3 object (sample document file)
19-
S3 bucket tagging configuration
11+
- S3 bucket (primary bucket for tutorial)
12+
- S3 bucket (secondary bucket for cross-region replication)
13+
- S3 public access block configuration
14+
- S3 bucket versioning configuration
15+
- S3 bucket encryption configuration
16+
- S3 object (sample text file)
17+
- S3 object (sample image file)
18+
- S3 object (sample document file)
19+
- S3 bucket tagging configuration
2020

2121
The script prompts you to clean up resources when you run it, including if there's an error part way through. If you need to clean up resources later, you can use the script log as a reference point for which resources were created.

tuts/004-cloudmap-custom-attributes/README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ You can either run the automated script `cloudmap-custom-attributes.sh` to execu
88

99
The script creates the following AWS resources in order:
1010

11-
Service Discovery http namespace
12-
Service Discovery http namespace (b)
13-
DynamoDB table
14-
Service Discovery service
15-
Service Discovery instance
16-
Service Discovery instance (b)
17-
IAM role
18-
IAM policy
19-
IAM role policy
20-
IAM role policy (b)
21-
Service Discovery service (b)
22-
Lambda function
23-
Service Discovery instance (c)
24-
Service Discovery instance (d)
25-
Lambda function (b)
26-
Service Discovery instance (e)
27-
Service Discovery instance (f)
11+
- Service Discovery http namespace
12+
- Service Discovery http namespace (b)
13+
- DynamoDB table
14+
- Service Discovery service
15+
- Service Discovery instance
16+
- Service Discovery instance (b)
17+
- IAM role
18+
- IAM policy
19+
- IAM role policy
20+
- IAM role policy (b)
21+
- Service Discovery service (b)
22+
- Lambda function
23+
- Service Discovery instance (c)
24+
- Service Discovery instance (d)
25+
- Lambda function (b)
26+
- Service Discovery instance (e)
27+
- Service Discovery instance (f)
2828

2929
The script prompts you to clean up resources when you run it, including if there's an error part way through. If you need to clean up resources later, you can use the script log as a reference point for which resources were created.

tuts/004-cloudmap-custom-attributes/cloudmap-custom-attributes.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -203,38 +203,38 @@ import random
203203
def lambda_handler(event, context):
204204
try:
205205
serviceclient = boto3.client('servicediscovery')
206-
206+
207207
response = serviceclient.discover_instances(
208208
NamespaceName='cloudmap-tutorial',
209209
ServiceName='data-service')
210-
210+
211211
if not response.get("Instances"):
212212
return {
213213
'statusCode': 500,
214214
'body': json.dumps({"error": "No instances found"})
215215
}
216-
216+
217217
tablename = response["Instances"][0]["Attributes"].get("tablename")
218218
if not tablename:
219219
return {
220220
'statusCode': 500,
221221
'body': json.dumps({"error": "Table name attribute not found"})
222222
}
223-
223+
224224
dynamodbclient = boto3.resource('dynamodb')
225-
225+
226226
table = dynamodbclient.Table(tablename)
227-
227+
228228
# Validate input
229229
if not isinstance(event, str):
230230
return {
231231
'statusCode': 400,
232232
'body': json.dumps({"error": "Input must be a string"})
233233
}
234-
234+
235235
response = table.put_item(
236236
Item={ 'id': str(random.randint(1,100)), 'todo': event })
237-
237+
238238
return {
239239
'statusCode': 200,
240240
'body': json.dumps(response)
@@ -318,32 +318,32 @@ def lambda_handler(event, context):
318318
serviceclient = boto3.client('servicediscovery')
319319
320320
response = serviceclient.discover_instances(
321-
NamespaceName='cloudmap-tutorial',
321+
NamespaceName='cloudmap-tutorial',
322322
ServiceName='data-service')
323-
323+
324324
if not response.get("Instances"):
325325
return {
326326
'statusCode': 500,
327327
'body': json.dumps({"error": "No instances found"})
328328
}
329-
329+
330330
tablename = response["Instances"][0]["Attributes"].get("tablename")
331331
if not tablename:
332332
return {
333333
'statusCode': 500,
334334
'body': json.dumps({"error": "Table name attribute not found"})
335335
}
336-
336+
337337
dynamodbclient = boto3.resource('dynamodb')
338-
338+
339339
table = dynamodbclient.Table(tablename)
340-
340+
341341
# Use pagination for larger tables
342342
response = table.scan(
343343
Select='ALL_ATTRIBUTES',
344344
Limit=50 # Limit results for demonstration purposes
345345
)
346-
346+
347347
# For production, you would implement pagination like this:
348348
# items = []
349349
# while 'LastEvaluatedKey' in response:
@@ -417,33 +417,33 @@ try:
417417
418418
print("Discovering write function...")
419419
response = serviceclient.discover_instances(
420-
NamespaceName='cloudmap-tutorial',
421-
ServiceName='app-service',
420+
NamespaceName='cloudmap-tutorial',
421+
ServiceName='app-service',
422422
QueryParameters={ 'action': 'write' }
423423
)
424424
425425
if not response.get("Instances"):
426426
print("Error: No instances found")
427427
exit(1)
428-
428+
429429
functionname = response["Instances"][0]["Attributes"].get("functionname")
430430
if not functionname:
431431
print("Error: Function name attribute not found")
432432
exit(1)
433-
433+
434434
print(f"Found function: {functionname}")
435435
436436
lambdaclient = boto3.client('lambda')
437437
438438
print("Invoking Lambda function...")
439439
resp = lambdaclient.invoke(
440-
FunctionName=functionname,
440+
FunctionName=functionname,
441441
Payload='"This is a test data"'
442442
)
443443
444444
payload = resp["Payload"].read()
445445
print(f"Response: {payload.decode('utf-8')}")
446-
446+
447447
except Exception as e:
448448
print(f"Error: {str(e)}")
449449
EOF
@@ -463,33 +463,33 @@ try:
463463
464464
print("Discovering read function...")
465465
response = serviceclient.discover_instances(
466-
NamespaceName='cloudmap-tutorial',
467-
ServiceName='app-service',
466+
NamespaceName='cloudmap-tutorial',
467+
ServiceName='app-service',
468468
QueryParameters={ 'action': 'read' }
469469
)
470470
471471
if not response.get("Instances"):
472472
print("Error: No instances found")
473473
exit(1)
474-
474+
475475
functionname = response["Instances"][0]["Attributes"].get("functionname")
476476
if not functionname:
477477
print("Error: Function name attribute not found")
478478
exit(1)
479-
479+
480480
print(f"Found function: {functionname}")
481481
482482
lambdaclient = boto3.client('lambda')
483483
484484
print("Invoking Lambda function...")
485485
resp = lambdaclient.invoke(
486-
FunctionName=functionname,
486+
FunctionName=functionname,
487487
InvocationType='RequestResponse'
488488
)
489489
490490
payload = resp["Payload"].read()
491491
print(f"Response: {payload.decode('utf-8')}")
492-
492+
493493
except Exception as e:
494494
print(f"Error: {str(e)}")
495495
EOF

tuts/005-cloudfront-gettingstarted/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ You can either run the automated script `cloudfront-gettingstarted.sh` to execut
88

99
The script creates the following AWS resources in order:
1010

11-
CloudFront origin access control
12-
CloudFront distribution
13-
S3 bucket policy
11+
- CloudFront origin access control
12+
- CloudFront distribution
13+
- S3 bucket policy
1414

1515
The script prompts you to clean up resources when you run it, including if there's an error part way through. If you need to clean up resources later, you can use the script log as a reference point for which resources were created.

tuts/005-cloudfront-gettingstarted/cloudfront-gettingstarted.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ This tutorial shows you how to use the AWS CLI to set up a basic CloudFront dist
44

55
## Topics
66

7-
* [Prerequisites](#prerequisites)
8-
* [Create an Amazon S3 bucket](#create-an-amazon-s3-bucket)
9-
* [Upload content to the bucket](#upload-content-to-the-bucket)
10-
* [Create a CloudFront distribution with OAC](#create-a-cloudfront-distribution-with-oac)
11-
* [Access your content through CloudFront](#access-your-content-through-cloudfront)
12-
* [Clean up resources](#clean-up-resources)
13-
* [Going to production](#going-to-production)
14-
* [Next steps](#next-steps)
7+
- [Prerequisites](#prerequisites)
8+
- [Create an Amazon S3 bucket](#create-an-amazon-s3-bucket)
9+
- [Upload content to the bucket](#upload-content-to-the-bucket)
10+
- [Create a CloudFront distribution with OAC](#create-a-cloudfront-distribution-with-oac)
11+
- [Access your content through CloudFront](#access-your-content-through-cloudfront)
12+
- [Clean up resources](#clean-up-resources)
13+
- [Going to production](#going-to-production)
14+
- [Next steps](#next-steps)
1515

1616
## Prerequisites
1717

tuts/007-chimesdk-routingcalls/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ You can either run the automated script `chimesdk-routingcalls.sh` to execute al
88

99
The script creates the following AWS resources in order:
1010

11-
IAM role
12-
IAM role policy
13-
Lambda function
14-
Lambda function (b)
15-
Chime SDK Voice sip media application
16-
Chime SDK Voice sip media application (b)
17-
Chime SDK Voice sip rule
11+
- IAM role
12+
- IAM role policy
13+
- Lambda function
14+
- Lambda function (b)
15+
- Chime SDK Voice sip media application
16+
- Chime SDK Voice sip media application (b)
17+
- Chime SDK Voice sip rule
1818

1919
The script prompts you to clean up resources when you run it, including if there's an error part way through. If you need to clean up resources later, you can use the script log as a reference point for which resources were created.

tuts/007-chimesdk-routingcalls/chimesdk-routingcalls.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ mkdir -p lambda
136136
cat > lambda/index.js << EOF
137137
exports.handler = async (event) => {
138138
console.log('Received event:', JSON.stringify(event, null, 2));
139-
139+
140140
// Simple call handling logic
141141
const response = {
142142
SchemaVersion: '1.0',
@@ -157,7 +157,7 @@ exports.handler = async (event) => {
157157
}
158158
]
159159
};
160-
160+
161161
return response;
162162
};
163163
EOF
@@ -289,7 +289,7 @@ First, create a backup Lambda function in the same region.
289289
cat > lambda/backup-index.js << EOF
290290
exports.handler = async (event) => {
291291
console.log('Received event in backup handler:', JSON.stringify(event, null, 2));
292-
292+
293293
// Simple call handling logic for backup
294294
const response = {
295295
SchemaVersion: '1.0',
@@ -310,7 +310,7 @@ exports.handler = async (event) => {
310310
}
311311
]
312312
};
313-
313+
314314
return response;
315315
};
316316
EOF

0 commit comments

Comments
 (0)