Skip to content

ceydaduzgec/gcp-terraform-course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To delete cache

find . -type f -name ".terraform*" -exec rm -f {} ; find . -type f -name "terraform*" -prune -exec rm -rf {} ; find . -type d -name ".terraform*" -prune -exec rm -rf {} ;

To initialize project

gcloud services enable compute.googleapis.com

gcloud auth application-default login terraform init

Previous HW:

https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/getting_started

Types and Values: https://developer.hashicorp.com/terraform/language/expressions/types

References to Values: https://developer.hashicorp.com/terraform/language/expressions/references

Hands-on

PART 1:

PART 2:

[X]- Hardcode provider version [X]- Create subnet for VM instance [X]- Add label [ ]- Add firewall to allow 443 and 80 from 0.0.0.0 [ ]- Allow 22 to SSH from 0.0.0.0 [ ]- Install apache2 to serve a basic HTML with metadata_startup_script

PART 3:

[ ]- Seperate configs into new files [ ]- Create bucket with terraform

PART 4:

[ ]- Depends on attribute [ ]- Store state in the bucket

PART 5:

[ ]- Use modules https://github.com/orgs/terraform-google-modules/repositories

Do not forget to delete resources

terraform destroy

About

Terraform introduction for BOUN SWE 590 course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages