GCP Bucket with Terraform
In these Project, We are learn , How to create the GCP Bucket and upload the index.html on the Bucket using the terraform
Enable the Below API
Cloud DNS API Compute Engine IAM & Admin

Create a New Service Account
Goto the services Account -> Create A Service Account -> fill all the mension Details -> Create -> Assign the role - basic - OWner -> Create the account


NOw, Account Created -

Assign the API Key -
Double click on the Service account -> Keys -> Add Key -> Create New Key -> Choose the key type - JSON (Recommended) -> Create


Then, This API Key Download on the Local Machine.

Installing the terraform -
Use this official Document
https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli
Repository link -
main.tf
Create A Directory and it in the code Editor or VS code -

File Strcture -

GCP-terraform -> Infra -> main.tf , variable.tf , Output.tf , provider.tf

terraform init

terraform validate
terraform plan


terraform apply

OUTPUT -



Last updated