Skip to content

Commit 23732d8

Browse files
committed
security and consistency updates
1 parent 3477d1d commit 23732d8

13 files changed

Lines changed: 190 additions & 161 deletions

File tree

tuts/001-lightsail-gs/lightsail-gs.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
# Amazon Lightsail Getting Started CLI Script
44
# This script demonstrates how to create and manage Lightsail resources using the AWS CLI
55

6-
# FIXES APPLIED:
7-
# 1. Added polling mechanism to check disk state before attaching
8-
# 2. Added polling mechanism to check snapshot state before proceeding with cleanup
9-
# 3. Set AWS_REGION variable to us-west-2 for consistent region usage
106

117
# Set AWS region
128
export AWS_REGION="us-west-2"

tuts/011-getting-started-batch-fargate/getting-started-batch-fargate.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
# AWS Batch Fargate Getting Started Script - Fixed Version
44
# This script demonstrates creating AWS Batch resources with Fargate orchestration
55
#
6-
# HIGH SEVERITY FIXES APPLIED:
7-
# 1. Added IAM role propagation delay after role creation
8-
# 2. Added resource state validation before deletion attempts
96

107
set -e # Exit on any error
118

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
# registering a task definition, and creating a service using the EC2 launch type.
66
# Updated to match the tutorial draft with nginx web server and service creation.
77
#
8-
# FIXES APPLIED:
9-
# - HIGH SEVERITY: Improved cleanup error handling with proper logging and retry logic
10-
# - MEDIUM SEVERITY: Dynamic region detection for CloudWatch logs
11-
# - LOW SEVERITY: Enhanced IAM role creation timing
128
# - UPDATED: Changed from sleep task to nginx web server with service
139

1410
set -e # Exit on any error

tuts/025-documentdb-gs/documentdb-gs.md

Lines changed: 119 additions & 104 deletions
Large diffs are not rendered by default.

tuts/037-emr-gs/emr-gs.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# EMR Getting Started Tutorial Script
44
# This script automates the steps in the Amazon EMR Getting Started tutorial
55

6-
# FIXED HIGH SEVERITY ISSUES:
7-
# 1. Added check for jq availability before attempting to use it for JSON parsing
86

97
# Set up logging
108
LOG_FILE="emr-tutorial.log"

tuts/043-amazon-mq-gs/amazon-mq-gs.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Amazon MQ Getting Started Script
44
# This script creates an Amazon MQ broker and demonstrates connecting to it with a Java application
55

6-
# FIXES APPLIED:
76
# - Added checks for Java and Maven installations before creating the Java application
87
# - Generate secure password and store in AWS Secrets Manager instead of hardcoding
98

tuts/059-amazon-datazone-gs/amazon-datazone-gs.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
# Amazon DataZone Getting Started Script
44
# This script automates the steps in the Amazon DataZone Getting Started tutorial
55

6-
# FIXES FOR HIGH SEVERITY ISSUES:
7-
# 1. Enhanced IAM role permissions for DataZone domain execution
8-
# 2. Improved asset type availability verification before asset creation
96

107
# Setup logging
118
LOG_FILE="datazone_script_v3_fixed.log"

tuts/069-aws-fault-injection-service-gs/aws-fault-injection-service-getting-started.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# AWS FIS CPU Stress Test Tutorial Script
44
# This script automates the steps in the AWS FIS CPU stress test tutorial
55

6-
# FIXED HIGH SEVERITY ISSUES:
7-
# 1. Date command compatibility issue - Replaced multiple date command attempts with a more robust
86
# approach using epoch time calculations that work across all Linux distributions
97

108
# Set up logging

tuts/074-amazon-textract-gs/amazon-textract-getting-started.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
# Amazon Textract Getting Started Tutorial Script
44
# This script demonstrates how to use Amazon Textract to analyze document text
55

6-
# FIXES APPLIED:
7-
# 1. Added proper exit code checking for AWS CLI commands
8-
# 2. Included temporary JSON files in cleanup_on_error function
9-
# 3. Added validation for AWS region configuration and Textract service availability
106

117
# Set up logging
128
LOG_FILE="textract-tutorial.log"

tuts/075-aws-database-migration-service-gs/aws-database-migration-service-gs.sh

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,6 @@
44
# This script automates the steps in the AWS DMS Getting Started tutorial
55
# https://docs.aws.amazon.com/dms/latest/userguide/CHAP_GettingStarted.html
66

7-
# FIXES FOR HIGH SEVERITY ISSUES:
8-
# 1. Added creation of a custom DB subnet group for RDS instances instead of using the default one
9-
# 2. Modified the EC2 connection instructions to avoid displaying the password in plain text
10-
# 3. Updated MariaDB version from 10.6.14 to 10.6.22 (latest available in 10.6 series)
11-
# 4. Made data population and migration steps optional to allow infrastructure-only setup
12-
# 5. Added VPC limit checking with option to use existing VPC when limit is reached
13-
# 6. Moved optional step prompts to be contextual (just before each optional step)
14-
# 7. Fixed password generation to exclude RDS-invalid characters (/, @, ", space)
15-
# 8. Fixed PostgreSQL version from 16.1 to 16.9 (available version)
16-
# 9. Improved VPC and subnet selection with numbered menus
17-
# 10. Added EC2 instance type validation and automatic selection based on AZ availability
18-
# 11. Changed default instance type from t2.xlarge to smaller, more available types
197

208
# Set up logging
219
LOG_FILE="dms_tutorial_$(date +%Y%m%d_%H%M%S).log"

0 commit comments

Comments
 (0)