-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
execute aws command from the root level
- Loading branch information
1 parent
852f911
commit f2d7fdb
Showing
3 changed files
with
70 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
manageConfigPath=$(pwd) | ||
|
||
usage() { | ||
echo "Usage: $0 credential [command]" | ||
echo "Commands:" | ||
echo " aws - Execute an AWS command" | ||
exit 1 | ||
} | ||
|
||
# Check if at least one argument is provided | ||
if [ $# -eq 0 ]; then | ||
usage | ||
fi | ||
|
||
# Execute the appropriate command | ||
case "$1" in | ||
aws) | ||
source $manageConfigPath/src/aws/load.sh | ||
driver "${@:2}" | ||
;; | ||
*) | ||
echo "Error: Invalid command." | ||
usage | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
#!/bin/bash | ||
manageConfigPath=$(pwd) | ||
source $manageConfigPath/dependencies/config.sh | ||
source $manageConfigPath/dependencies/utilitiyFunction.sh | ||
source $manageConfigPath/dependencies/isBalloonNameValid.sh | ||
source $manageConfigPath/dependencies/jsonOperations.sh | ||
source $manageConfigPath/dependencies/configOperations.sh | ||
source $manageConfigPath/dependencies/configFunctions.sh | ||
source $manageConfigPath/dependencies/getLatestIpAddress.sh | ||
source $manageConfigPath/dependencies/securitygroupFunction.sh | ||
source $manageConfigPath/dependencies/manageConfig.sh | ||
source $manageConfigPath/dependencies/sshtunnelFunction.sh | ||
source $manageConfigPath/dependencies/reverseShell.sh | ||
source $manageConfigPath/src/aws/dependencies/config.sh | ||
source $manageConfigPath/src/aws/dependencies/utilitiyFunction.sh | ||
source $manageConfigPath/src/aws/dependencies/isBalloonNameValid.sh | ||
source $manageConfigPath/src/aws/dependencies/jsonOperations.sh | ||
source $manageConfigPath/src/aws/dependencies/configOperations.sh | ||
source $manageConfigPath/src/aws/dependencies/configFunctions.sh | ||
source $manageConfigPath/src/aws/dependencies/getLatestIpAddress.sh | ||
source $manageConfigPath/src/aws/dependencies/securitygroupFunction.sh | ||
source $manageConfigPath/src/aws/dependencies/manageConfig.sh | ||
source $manageConfigPath/src/aws/dependencies/sshtunnelFunction.sh | ||
source $manageConfigPath/src/aws/dependencies/reverseShell.sh | ||
|
||
source $manageConfigPath/init.sh | ||
source $manageConfigPath/delete.sh | ||
source $manageConfigPath/stop.sh | ||
source $manageConfigPath/restart.sh | ||
source $manageConfigPath/src/aws/init.sh | ||
source $manageConfigPath/src/aws/delete.sh | ||
source $manageConfigPath/src/aws/stop.sh | ||
source $manageConfigPath/src/aws/restart.sh | ||
source $manageConfigPath/src/aws/driver.sh | ||
|