Initial commit
This commit is contained in:
commit
7cd41f5f42
5 changed files with 74 additions and 0 deletions
44
1-getting-started/README.md
Normal file
44
1-getting-started/README.md
Normal 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
|
||||
```
|
11
2-simple-example/README.md
Normal file
11
2-simple-example/README.md
Normal 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
15
3-remote-states/README.md
Normal 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
1
4-modules/README.md
Normal file
|
@ -0,0 +1 @@
|
|||
https://kodekloud.com/blog/understanding-terraform-modules/
|
3
5-estimating-costs/README.md
Normal file
3
5-estimating-costs/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
https://www.infracost.io/docs/
|
||||
|
||||
|
Loading…
Reference in a new issue