build-infrastructure-with-terraform-on-google-cloud
Build Infrastructure with Terraform on Google Cloud
Terraform Fundamentals
Infrastructure as Code with Terraform
Interact with Terraform Modules
Manage Terraform State
Build Infrastructure with Terraform on Google Cloud: Challenge Lab
1. Create the directory structure
2. Initialize Terraform for the first time
3. List instances to find names and zones
4. Get the specific Numeric IDs (Required for Import)
5. Import the instances into the state file
(Replace [ID] with the numbers from the previous step)
6. Apply to sync the code in instances.tf with the cloud
(Typed 'yes')
7. Apply again to create the storage bucket defined in the storage module
8. Initialize again to migrate local state to GCS
(Typed 'yes')
9. Apply changes after updating machine_type to e2-standard-2
and adding the third instance tf-instance-009698
10. Apply again after deleting the third instance block from the code
11. Attempted init (failed due to version lock)
12. Upgraded the provider and initialized the new VPC module
13. Targeted apply to ensure the Network exists before moving VMs
14. Full apply to move tf-instance-1 and tf-instance-2 into subnets
15. Final apply to create the tf-firewall resource
Last updated