orange-openSource--aws-terr.../get-starter-kit.sh

27 lines
699 B
Bash
Raw Permalink Normal View History

2023-06-21 12:41:43 +00:00
#!/usr/bin/env bash
#
# // Software Name : AWSTerraformStarterKit
# // SPDX-FileCopyrightText: Copyright (c) 2023 Orange Business
# // SPDX-License-Identifier: BSD-3-Clause
# //
# // This software is distributed under the BSD License;
# // see the LICENSE file for more details.
# //
# // Author: AWS Practice Team <awspractice.core@orange.com>
#
set -o errexit -o nounset -o pipefail
# Set Starterkit version
2023-06-21 14:12:55 +00:00
STARTER_KIT_VERSION="v0.0.1"
2023-06-21 12:41:43 +00:00
2023-06-21 14:12:55 +00:00
curl -L\
"https://github.com/Orange-OpenSource/AWSTerraformStarterKit/archive/refs/tags/${STARTER_KIT_VERSION}.zip" \
2023-06-21 12:41:43 +00:00
-o /tmp/archive.zip
unzip /tmp/archive.zip -d .
2023-06-21 14:12:55 +00:00
cp -r AWSTerraformStarterKit-*/. .
rm -rf AWSTerraformStarterKit-*
2023-06-21 12:41:43 +00:00
rm /tmp/archive.zip