Giter Site home page Giter Site logo

terraform-project's Introduction

image

Terraform Installing

We have to use a terraform platform and let's get practice first with a simple hands on manual

https://learn.hashicorp.com/tutorials/terraform/install-cli?in=terraform/azure-get-started

https://docs.microsoft.com/en-us/azure/developer/terraform/create-linux-virtual-machine-with-infrastructure

Instructions

first you will need to install "Terraform" and connect it to your azure account.

Terraform Installation

We have to use a terraform platform and let's get practice first with a simple hands on manual

https://learn.hashicorp.com/tutorials/terraform/install-cli?in=terraform/azure-get-started

https://docs.microsoft.com/en-us/azure/developer/terraform/create-linux-virtual-machine-with-infrastructure

Setting things up

  1. After cloning this repository you will need to set up all the needed variables mantion bellow in the documentation under "Requierments".

  2. You will need to run "terraform init" to make sure you have versions and providers in line with the one on the project

terraform init
  1. After that you can use "terraform plan" / "terraform apply"
terraform apply

Requirements

Name Version
terraform >= 1.2.2
azurerm ~> 3.0.2

Providers

Name Version
azurerm 3.0.2

Modules

Name Source Version
store_to_blob ../modules/blob_create_update_module n/a
weight_app_vmss ../modules/vmss_module n/a

Resources

Name Type
azurerm_lb.app_load_balancer resource
azurerm_lb_backend_address_pool.bpepool resource
azurerm_lb_nat_pool.lbnatpool resource
azurerm_lb_probe.app_lb_prob resource
azurerm_lb_rule.lb_rule_8080 resource
azurerm_network_security_group.app_nsg resource
azurerm_network_security_group.db_nsg resource
azurerm_postgresql_flexible_server.postgres_server resource
azurerm_postgresql_flexible_server_configuration.db-config-no-ssl resource
azurerm_private_dns_zone.private_dns_zone resource
azurerm_private_dns_zone_virtual_network_link.private_dns_zone_vnl resource
azurerm_public_ip.my_lb_ip resource
azurerm_resource_group.terraform_rg resource
azurerm_ssh_public_key.my_key resource
azurerm_subnet.app-subnet resource
azurerm_subnet.database-subnet resource
azurerm_subnet_network_security_group_association.app_nsg_association resource
azurerm_subnet_network_security_group_association.db_nsg_association resource
azurerm_virtual_network.terraform_vnet resource

Inputs

Name Description Type Default Required
admin_password Vmss password string n/a yes
admin_user Vmss admin user name string n/a yes
app_subnet_address_range The vmss subnet ip ranges - format x.x.x.x/x string n/a yes
authorized_ip_address The ip that can access vmss via port 22 string n/a yes
database_subnet_address_range The database subnet ip rages -format x.x.x.x/x -cannot overlap with vmss subnet- string n/a yes
postgres_admin_username Posgress admin user name string n/a yes
postgres_password Postgres password string n/a yes
postgres_sku_name Holds the machine type for posgtres service string n/a yes
resource_group_location The location of the resource group - location name string n/a yes
resource_group_name The name of the resource group string n/a yes
vnet_address_range The virtual network range format: x.x.x.x/x string n/a yes
weight_app_image_gallery_name ami gallery name string n/a yes
weight_app_image_name ami name string n/a yes
weight_app_image_resource_group_name Name of the resource group that holds the ami string n/a yes
weight_app_image_version_name ami version string n/a yes
weight_app_key Public key to be created string n/a yes
weight_app_name_prefix Variable that hold the prefixed name of the project string n/a yes

Outputs

Name Description
vmss_password taking vmss password output from vmss module and making it root output so it can be viewed

terraform-project's People

Contributors

eladjmc avatar

Watchers

 avatar  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.