Hello like i said on the last topic, terraform is way to solving anything problem with cloud ? Easy way to done job –> So go far with that && Happy with implementation –>
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Reference for full information –> LINK
After install you whill receive and install terraform succesful with version
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
And some extension for VSCode –> Increase productivity like
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Do the lab –> Run by step by step
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
After install the terraform cli for terminal –>
Next step you can read some reference in the document of terraform
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
–> U need to understand which terraform give for us for using to implementation for each script
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
–> After that reach to my script –> I will analysis from each part to part to resolve the problem of script
So i will split the bunch of script of terraform to 3 file for easy management and apply
- So on this script, usually if you implement with terraform –> u need some kind configuration like a library contain API to association with platform you want, terraform have many options:
- azurerm –> association with azure, bucket will storage it on the container on azure account
- local –> This backend status using tfstate have exist on local you can import this path into that kind and use that
- remote –> This backend will use tfstate on remote env kind your server, your drive, you NAS –> Anykind
- aws –> association with AWS
- blah blah
–> Provider, backend depend on your choice, get the suitable for your target
main.tf
It just a bunch of script using for create a VM on Azure –> this just basic script refer with syntax from Terraform doc and using azurerm, just this
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
output.tf
So after create the vm you want to get ip_address to access so –> Get on it
–> Well after create all kind that you just need
terraform init
terraform plan
terraform apply -auto-approve
Just use some command each times to times like
terraform init
Using for create and get provider for terraform –> create 1 folder storage some configuration and api for using with platform –> create hcl and tfstate file if you using local
terraform plan
Using for check the plan before apply into cloud platform mine option or your option
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
terraform apply
Do the stuff about apply plan configuration to platform you want like github, like azure, like aws, …
- After that just wait to get result
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- Quite easy huh
So i have some script about my teammate implement with Nguyen Hoai Bao Nguyen for option to choose do it with terraform
run_terraform.sh
- Script like i said above about do it with manual, script do it automatic for me for instead of –> just add terraform desrtroy it will using to destroy the all configuration you create by terrafrom into platform
- Just it some basic terrafrom quite easy to understand about infra as code
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Reference