-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add instance details script and aws-do-cli start script
- Loading branch information
1 parent
b31066c
commit 8ab7cb8
Showing
3 changed files
with
34 additions
and
1 deletion.
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
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,22 @@ | ||
#!/bin/bash | ||
|
||
###################################################################### | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # | ||
# SPDX-License-Identifier: Apache-2.0 # | ||
###################################################################### | ||
|
||
source ./ec2.conf | ||
|
||
function usage() { | ||
echo "" | ||
echo "Usage: $0 <instance_id>" | ||
echo | ||
} | ||
|
||
if [ "$1" == "" ]; then | ||
usage | ||
else | ||
CMD="aws ec2 describe-instances --instance-id $1" | ||
echo "$CMD" | ||
eval "$CMD" | ||
fi |
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,11 @@ | ||
#!/bin/bash | ||
|
||
###################################################################### | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # | ||
# SPDX-License-Identifier: Apache-2.0 # | ||
###################################################################### | ||
|
||
source .env | ||
|
||
docker container start ${CONTAINER} | ||
|