diff --git a/.DS_Store b/.DS_Store index 6b27eb3..b31779f 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/1-getting-started/img/.DS_Store b/1-getting-started/img/.DS_Store index cd12842..99cdfca 100644 Binary files a/1-getting-started/img/.DS_Store and b/1-getting-started/img/.DS_Store differ diff --git a/2-simple-example/.DS_Store b/2-simple-example/.DS_Store new file mode 100644 index 0000000..ca77ff3 Binary files /dev/null and b/2-simple-example/.DS_Store differ diff --git a/2-simple-example/README.md b/2-simple-example/README.md index 3a8ef47..bc1d56a 100644 --- a/2-simple-example/README.md +++ b/2-simple-example/README.md @@ -16,7 +16,8 @@ resource "aws_instance" "test_ami" { user_data = <<-EOF #!/bin/bash - sudo service apache2 start + sudo dnf install -y nginx + sudo systemctl start nginx EOF } ``` @@ -42,7 +43,16 @@ tofu plan tofu apply ``` -Answer yes +Answer yes at the apply prompt and you should end up with a screen like this: + +![Tofu apply output](./img/lab-2-tofu-apply.png) + +Embedded in there you'll see something liek this ```instance_public_ip``` thats out new output, copy the value and head to ```http:///``` and you should get a very similar looking default nginx page. + +![Default nginx page](./img/webpage.png) +(I'm of course in dark mode, don't worry if yours is white with black text!) + + 2. Validate diff --git a/2-simple-example/code/main.tf b/2-simple-example/code/main.tf index 52b4ef2..14dc933 100644 --- a/2-simple-example/code/main.tf +++ b/2-simple-example/code/main.tf @@ -48,6 +48,7 @@ resource "aws_instance" "test_ami" { user_data = <<-EOF #!/bin/bash - sudo service apache2 start + sudo dnf install -y nginx + sudo systemctl start nginx EOF } diff --git a/2-simple-example/img/lab-2-tofu-apply.png b/2-simple-example/img/lab-2-tofu-apply.png new file mode 100644 index 0000000..e604df3 Binary files /dev/null and b/2-simple-example/img/lab-2-tofu-apply.png differ diff --git a/2-simple-example/img/webpage.png b/2-simple-example/img/webpage.png new file mode 100644 index 0000000..e596f32 Binary files /dev/null and b/2-simple-example/img/webpage.png differ