commit 7cd41f5f42087b4e5ed07f1af1c4ceea1aaa73d8 Author: Ric Harvey Date: Sun Apr 14 17:03:51 2024 +0100 Initial commit diff --git a/1-getting-started/README.md b/1-getting-started/README.md new file mode 100644 index 0000000..b8bc67f --- /dev/null +++ b/1-getting-started/README.md @@ -0,0 +1,44 @@ +Log into AWS + +Open Cloud Shell + +Install Terraform + +``` +git clone https://github.com/tfutils/tfenv.git ~/.tfenv +mkdir ~/bin +ln -s ~/.tfenv/bin/* ~/bin/ +``` + +Find the latest version and install it: + +``` +tfenv list-remote +tfenv install 1.8.0 +tfenv use 1.8.0 +``` + +Now test it's all working: + +``` +terraform --version +``` + +Install Tofu + +``` +# Download the installer script: +curl --proto '=https' --tlsv1.2 -fsSL https://get.opentofu.org/install-opentofu.sh -o install-opentofu.sh +# Alternatively: wget --secure-protocol=TLSv1_2 --https-only https://get.opentofu.org/install-opentofu.sh -O install-opentofu.sh + +# Give it execution permissions: +chmod +x install-opentofu.sh + +# Please inspect the downloaded script + +# Run the installer: +./install-opentofu.sh --install-method rpm + +# Remove the installer: +rm install-opentofu.sh +``` diff --git a/2-simple-example/README.md b/2-simple-example/README.md new file mode 100644 index 0000000..6df5f83 --- /dev/null +++ b/2-simple-example/README.md @@ -0,0 +1,11 @@ +1. Create a Stack + +2. Validate + +3. Plan + +4. Apply + +5. Update + +6. Destroy diff --git a/3-remote-states/README.md b/3-remote-states/README.md new file mode 100644 index 0000000..490a741 --- /dev/null +++ b/3-remote-states/README.md @@ -0,0 +1,15 @@ +1. Create a Stack + +2. Configure a remote state + +dynamoDB and S3 + +3. Plan + +4. Apply + +5. Reference Remote State + +6. Apply + +7. Destroy diff --git a/4-modules/README.md b/4-modules/README.md new file mode 100644 index 0000000..e168721 --- /dev/null +++ b/4-modules/README.md @@ -0,0 +1 @@ +https://kodekloud.com/blog/understanding-terraform-modules/ diff --git a/5-estimating-costs/README.md b/5-estimating-costs/README.md new file mode 100644 index 0000000..b1bba07 --- /dev/null +++ b/5-estimating-costs/README.md @@ -0,0 +1,3 @@ +https://www.infracost.io/docs/ + +