Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

mdmourao/consignar-infra

Repository files navigation

Consignar.pt Infra Managed With Terraform

API REST
WEB
WEB 2.0
WEB 3.0

Deployed Infrastructure

GCP Architecture

Costs By Infracost

Note: some units are not correct (real prod costs: 30$)

Project: main-prod

Name Monthly Qty Unit Monthly Cost

module.network.google_compute_global_forwarding_rule.default
├─ Forwarding rules 730 hours $7.30
└─ Ingress data 625 GB $5.00 *

module.network.google_compute_global_forwarding_rule.https_redirect
├─ Forwarding rules 730 hours $7.30
└─ Ingress data 625 GB $5.00 *

module.network.google_compute_router_nat.nat
├─ Assigned VMs (first 32) 2,920 VM-hours $4.09 *
└─ Data processed 111 GB $5.00 *

module.network.google_compute_global_address.default
└─ IP address 730 hours $0.00

module.compute_engine.google_compute_instance.this
├─ Instance usage (Linux/UNIX, on-demand, e2-micro) 730 hours $0.00 (Free Tier)
└─ Standard provisioned storage (pd-standard) 10 GB $0.00 (Free Tier)

module.cloud_build.google_secret_manager_secret.github-secret
├─ Active secret versions 83 versions $4.98 *
├─ Access operations 0.005 10K requests $0.00 *
└─ Rotation notifications 1 rotations $0.05 *

module.network.google_compute_target_http_proxy.https_redirect
└─ Data processed 625 GB $5.00 *

module.network.google_compute_target_https_proxy.default
└─ Data processed 625 GB $5.00 *

module.repository.google_artifact_registry_repository.this
└─ Storage 50 GB $5.00 *

module.cloud_build.google_secret_manager_secret_version.github-secret
├─ Active secret versions 1 versions $0.06
└─ Access operations 0.005 10K requests $0.00 *

*Usage costs were estimated using Infracost Cloud settings

36 cloud resources were detected:
∙ 10 were estimated
∙ 19 were free
∙ 7 are not supported yet

Baseline cost $28
Usage cost $39

Requirements

Name Version
google 5.29.1

Providers

No providers.

Modules

Name Source Version
cloud_build ./modules/cloud_build 0.1.2
cloud_run ./modules/cloud_run 0.1.1
compute_engine ./modules/compute_engine 0.3.2
network ./modules/network 0.2.1
repository ./modules/repository 0.0.1

Resources

No resources.

Inputs

Name Description Type Default Required
consignar_certificate_path Consignar Certificate Path string n/a yes
consignar_domain Consignar Main Domain string "consignar.pt" no
consignar_private_key_path Consignar Private Key Path string n/a yes
consignar_rest_domain Consignar REST Domain string "rest.consignar.pt" no
consignar_web_domain Consignar Web Domain string "web.consignar.pt" no
db_password Database Password string n/a yes
github_app_installation_id GitHub App installation id number n/a yes
github_client_secret_data GitHub Client Secret Data any n/a yes
github_repository_uri GitHub Repository URI string n/a yes
ip_cidr_range IP Range string "10.7.0.0/16" no
irs_api_name Consignar REST API Image Name string "irs-api-internal" no
irs_api_port Port number the IRS API listens on number 50007 no
irs_ui_name Consignar Image Name string "irs-ui-internal" no
irs_ui_port Port number the IRS UI listens on number 8080 no
machine_type DB Machine Type string "e2-micro" no
project_name Name of the project string n/a yes
project_number Project Number number n/a yes
region Deploy region string "us-central1" no
repository_id Repository ID string n/a yes
zone Deploy Zone string "us-central1-a" no

Outputs

Name Description
db_internal_ip The internal IP of the database instance