Skip to content
This repository was archived by the owner on Feb 4, 2026. It is now read-only.

Commit 8ab7cb8

Browse files
committed
Add instance details script and aws-do-cli start script
1 parent b31066c commit 8ab7cb8

3 files changed

Lines changed: 34 additions & 1 deletion

File tree

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fi
2525
export IMAGE=aws-do-cli
2626
## VERSION: [optional] - Version tag for this Docker image. Example: v20180302
2727
#export VERSION=v$(date +%Y%m%d)
28-
export VERSION=latest
28+
export VERSION=v20211005
2929
export TAG=$(if [ -z "${VERSION}" ]; then echo ""; else echo ":${VERSION}"; fi)
3030
## BUILD_OPTS: [optional] - arguments for the docker image build command
3131
export BUILD_OPTS="--progress=plain --build-arg http_proxy=${http_proxy} --build-arg https_proxy=${https_proxy} --build-arg no_proxy=${no_proxy}"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
######################################################################
4+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. #
5+
# SPDX-License-Identifier: Apache-2.0 #
6+
######################################################################
7+
8+
source ./ec2.conf
9+
10+
function usage() {
11+
echo ""
12+
echo "Usage: $0 <instance_id>"
13+
echo
14+
}
15+
16+
if [ "$1" == "" ]; then
17+
usage
18+
else
19+
CMD="aws ec2 describe-instances --instance-id $1"
20+
echo "$CMD"
21+
eval "$CMD"
22+
fi

start.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
######################################################################
4+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. #
5+
# SPDX-License-Identifier: Apache-2.0 #
6+
######################################################################
7+
8+
source .env
9+
10+
docker container start ${CONTAINER}
11+

0 commit comments

Comments
 (0)