diff --git a/.env b/.env index 72574f5..a771eab 100644 --- a/.env +++ b/.env @@ -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}" diff --git a/Container-Root/cli/ec2/ec2-instance-describe.sh b/Container-Root/cli/ec2/ec2-instance-describe.sh new file mode 100755 index 0000000..4752ddd --- /dev/null +++ b/Container-Root/cli/ec2/ec2-instance-describe.sh @@ -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 " + echo +} + +if [ "$1" == "" ]; then + usage +else + CMD="aws ec2 describe-instances --instance-id $1" + echo "$CMD" + eval "$CMD" +fi diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..77b98eb --- /dev/null +++ b/start.sh @@ -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} +