Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/satyamsundaram/terraform_demo
We make use of Terraform to automate the creation of GKE clusters, node pools and VPC networks using configurations instead of doing it manually,
https://github.com/satyamsundaram/terraform_demo
gcp hcl infrastructure-as-code terraform terraform-modules
Last synced: 2 days ago
JSON representation
We make use of Terraform to automate the creation of GKE clusters, node pools and VPC networks using configurations instead of doing it manually,
- Host: GitHub
- URL: https://github.com/satyamsundaram/terraform_demo
- Owner: satyamsundaram
- Created: 2023-08-29T16:34:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-07T12:48:42.000Z (over 1 year ago)
- Last Synced: 2024-11-02T22:42:13.647Z (about 2 months ago)
- Topics: gcp, hcl, infrastructure-as-code, terraform, terraform-modules
- Language: HCL
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### About
- /vpc_network contains terraform files for creating a VPC network in GCP
- /gke_node_pool contains terraform files for creating a GKE cluster in GCP with tainted node_pools. It makes use of the gke module.### Create a service account with the following roles:
- roles/compute.viewer
- roles/compute.securityAdmin (only required if add_cluster_firewall_rules is set to true)
- roles/kubernetes_engine.clusterAdmin
- roles/kubernetes_engine.developer
- roles/iam.serviceAccountAdmin
- roles/iam.serviceAccountUser
- roles/resourcemanager.projectIamAdmin (only required if service_account is set to create)### Enable the following APIs:
- compute.googleapis.com
- kubernetesengine.googleapis.com
- iam.googleapis.com
- cloudresourcemanager.googleapis.com### Terraform how to:
- terraform has directory-level granularity, so you need to run terraform commands from within the directory where the terraform files are located
- terraform init: initialize a working directory containing Terraform configuration files
- terraform fmt: format the configuration files in the current directory for readability
- terraform validate: validates the configuration files in a directory, referring only to the configuration and not accessing any remote services such as remote state, provider APIs, etc
- terraform plan: create an execution plan
- terraform apply: apply the changes required to reach the desired state of the configuration
- terraform show: provide human-readable output from a state or plan file
- terraform destroy: destroy Terraform-managed infrastructure