GithubHelp home page GithubHelp logo

terraformfirstwebdeploy's Introduction

Website Deployment with Google Cloud Services and Terraform

Overview SERVICES USED (3)

This repository contains Terraform configuration files to deploy a highly available and scalable website on Google Cloud Platform (GCP) using the following services:

Cloud DNS Cloud CDN Load Balancer Cloud Storage

Prerequisite

  1. A Google Cloud Platform account with billing enabled
  2. Terraform installed on your local machine
  3. Google Cloud SDK installed and authenticated

Clone this repository

git clone https://github.com/lakkawardhananjay/terraformfirstwebdeploy.git

Configure Terraform variables:

Create a terraform.tfvars file or set environment variables with the following values:

project_id: Your GCP project ID

region: The GCP region where you want to deploy the resources (e.g., us-central1)

domain_name: The domain name you want to use for your website (e.g., www.example.com)

bucket_name: The name of the Cloud Storage bucket to store your website content

Initialize Terraform

terraform init: prepares a working directory for other commands by setting up plugins, modules, and backend configurations.

terraform plan: creates an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure.

terraform apply: executes the actions proposed in a Terraform plan

Terraform Configuration

The main configuration files in this repository are: main.tf: Contains the core configuration for the website deployment. variables. tf: Defines variables that can be customized for your specific deployment.

Testing: To test your website, access it using the assigned load balancer IP address or domain name. Updating: Make changes to the Terraform configuration files and re-run Terraform apply to update the infrastructure. Destroying: To remove the deployed resources, run terraform destroy.

Best Practices

  1. Refer to the Terraform documentation for troubleshooting assistance.
  2. Check the GCP console for logs and error messages.
  3. Seek help from the Terraform community or GCP support channels if needed.

terraformfirstwebdeploy's People

Contributors

lakkawardhananjay avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.