Creating a site page with dynamic external files, use dynamic code blocks and the lifecycle function
Hello! In this video I create a new project of a site page with dynamic external files - templatefile, using Terraform on the AWS platform. I start the web server using a bash script that deploys the Apache web server on a Linux virtual machine and displays the first page of the site with the inscription. Along the way, I create a template file in Terraform and a bash script user_data, as well as how I create dynamic external files - templatefile function, length and so on. We can see the result in the console without deploying the AWS infrastructure using the terraform command console. I also use dynamic code blocks - dynamic for security, an ingress rule for port 22 with a static IP address. I use the lifecycle function - prevent_destroy, and then create the outputs.tf file and view the terraform command output. 05:19 start the site deployment with dynamic external files - templatefile using the terraform comands init, plan, apply commands 07:21 result dynamic external files in site page 07:34 how to testing dynamic external files -function templatefile(file, length and other) without deploing infrostructure AWS with command terraform console 09:24 dynamic blocks of code - dynamic for security 11:19 ingress rule for port 22 with static ip address 13:41 checking of result open ports in AWS 15:07 use function lifecycle 15:17 use function lifecycle -prevent_destroy 17:30 use function lifecycle -ignore_changes 18:00 elastic ip - create resource aws_eip , our static site ip adress 20:30 use function lifecycle - create_before_destroy(zero DownTime) 24:30 create outputs in console visual code studia 26:30 summary of results - Outputs terraform public_ip site 28:13 command terraform output 28:23 create outputs.tf file 28:46 command terraform show and summary of results, after I create outputs.tf file terraform commands: terraform init terraform plan terraform apply terraform console terraform show Terraform code - https://surl.li/cfiovx
Download
0 formatsNo download links available.