Skip to content

Commit

Permalink
Add instance details script and aws-do-cli start script
Browse files Browse the repository at this point in the history
  • Loading branch information
iankouls-aws committed Oct 5, 2021
1 parent b31066c commit 8ab7cb8
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fi
export IMAGE=aws-do-cli
## VERSION: [optional] - Version tag for this Docker image. Example: v20180302
#export VERSION=v$(date +%Y%m%d)
export VERSION=latest
export VERSION=v20211005
export TAG=$(if [ -z "${VERSION}" ]; then echo ""; else echo ":${VERSION}"; fi)
## BUILD_OPTS: [optional] - arguments for the docker image build command
export BUILD_OPTS="--progress=plain --build-arg http_proxy=${http_proxy} --build-arg https_proxy=${https_proxy} --build-arg no_proxy=${no_proxy}"
Expand Down
22 changes: 22 additions & 0 deletions Container-Root/cli/ec2/ec2-instance-describe.sh
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
11 changes: 11 additions & 0 deletions start.sh
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}

0 comments on commit 8ab7cb8

Please sign in to comment.