Initial commit

This commit is contained in:
Ric Harvey 2024-04-14 17:03:51 +01:00
commit 7cd41f5f42
Signed by: ric
GPG key ID: CD63CE502B962F16
5 changed files with 74 additions and 0 deletions

View file

@ -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
```

View file

@ -0,0 +1,11 @@
1. Create a Stack
2. Validate
3. Plan
4. Apply
5. Update
6. Destroy

15
3-remote-states/README.md Normal file
View file

@ -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

1
4-modules/README.md Normal file
View file

@ -0,0 +1 @@
https://kodekloud.com/blog/understanding-terraform-modules/

View file

@ -0,0 +1,3 @@
https://www.infracost.io/docs/