Skip to content

A simple repository implemented with GCP Hasicorp 5.3.0 to automate infrastructure with code

Notifications You must be signed in to change notification settings

aghosh0605/terraform-gcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-gcp

Using terraform-provider-aws_5.3.0

Setup GCloud Env in your system

Run and install Google Cloud SDK curl https://sdk.cloud.google.com | bash

Then run this command and follow the instructions gcloud init

Then follow these below steps in Google Cloud Console:

  1. Create a project and name it whatever you’d like.

  2. Create a service account and specify the compute admin role.

  3. Download the generated JSON file and save it to your project’s directory. After that import that JSON file like this into your terraform project. Be sure not to push that JSON file in Github repositories. Alt text

Terraform commans to remember

terraform validate  #Validates the code for syntax errors
terraform init  #Initializes the configuration
terrraform plan #Check what changes will be made with your code
terraform apply  #Apply the configuration
terraform destroy #Destroy the configuration

About

A simple repository implemented with GCP Hasicorp 5.3.0 to automate infrastructure with code

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages