wp-infrastructure
jhagdu/wp-infrastructure/gcp
Terraform Module
HCL
GCP
This Repository Contains Terraform Code to Deploy WordPress on GCP Infrastructure
Install
module "wp-infrastructure" {
source = "jhagdu/wp-infrastructure/gcp"
version = "1.0.0"
}
README
terraform-gcp-wp-infrastructure This Repository Contains Terraform Code to Deploy WordPress on GCP Infrastructure Usage First Download or Clone this repo to your local system After this, To Initiate Terraform WorkSpace :- terraform init To create infrastructure, run command :- terraform apply -auto-approve To delete infrastructure, run command :- terraform destroy -auto-approve Prerequisites 1) Terraform should be Installed 2) gcloud SDK should be Installed 3) Replace the gcpCreds.json file with Yours Service Account Key file 4) In variables.tf Replace the Project ID with Yours
Inputs (7)
| Name | Type | Description | Default |
|---|---|---|---|
| region2 | string | Region2 Name | "asia-south1" |
| root_pass | string | Root Password For SQL Database | "toor" |
| database | string | SQL Database Name | "wpdb" |
| db_user | string | SQL Database User Name | "wpuser" |
| db_user_pass | string | Passowrd for SQL Database User | "wppass" |
| project_id | string | "---Your Project ID here---" | |
| region1 | string | Region1 Name | "us-central1" |
Outputs (5)
wp_service_urldb_hostdatabase_namedb_user_namedb_user_passwdResources (12)
google_compute_firewallgoogle_compute_networkgoogle_compute_network_peeringgoogle_compute_subnetworkgoogle_container_clustergoogle_container_node_poolgoogle_sql_databasegoogle_sql_database_instancegoogle_sql_userkubernetes_deploymentkubernetes_servicenull_resource
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud
GCP
Total downloads5.2k
Inputs7
Outputs5
Resources12
Namespacejhagdu
Updated