-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_all_scripts.sh
More file actions
executable file
·67 lines (59 loc) · 1.78 KB
/
create_all_scripts.sh
File metadata and controls
executable file
·67 lines (59 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
# Make scripts executable
chmod +x ./automation/create_dynamodb_table.sh
chmod +x ./automation/create_add_tasks_lambda.sh
chmod +x ./automation/create_delete_task_lambda.sh
chmod +x ./automation/create_view_lambda.sh
chmod +x ./automation/create_auth_function.sh
chmod +x ./automation/create_cognito.sh
# Execute each script
echo "Running create_dynamodb_table.sh..."
./automation/create_dynamodb_table.sh
if [ $? -eq 0 ]; then
echo "DynamoDB table creation script ran successfully."
else
echo "Error running create_dynamodb_table.sh"
exit 1
fi
echo "Running create_add_tasks_lambda.sh..."
./automation/create_add_tasks_lambda.sh
if [ $? -eq 0 ]; then
echo "Add tasks Lambda function creation ran successfully."
else
echo "Error running create_add_tasks_lambda.sh"
exit 1
fi
echo "Running create_delete_task_lambda.sh..."
./automation/create_delete_task_lambda.sh
if [ $? -eq 0 ]; then
echo "Delete task Lambda function creation ran successfully."
else
echo "Error running create_delete_task_lambda.sh"
exit 1
fi
echo "Running create_view_lambda.sh..."
./automation/create_view_lambda.sh
if [ $? -eq 0 ]; then
echo "View Lambda function creation ran successfully."
else
echo "Error running create_view_lambda.sh"
exit 1
fi
echo "Running create_auth_function.sh..."
./automation/create_auth_function.sh
if [ $? -eq 0 ]; then
echo "Auth function creation ran successfully."
else
echo "Error running create_auth_function.sh"
exit 1
fi
# Running the create_cognito.sh script
echo "Running create_cognito.sh..." # Added for Cognito creation
./automation/create_cognito.sh
if [ $? -eq 0 ]; then
echo "Cognito creation script ran successfully."
else
echo "Error running create_cognito.sh"
exit 1
fi
echo "All scripts ran successfully!"