Skip to content

raymondandreassen/AzureApplicationSolution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

About Azure Application Solution

I need a setup for my applications, containing:

  1. Private network
  2. Protected by a Web Application Gateway
  3. Private DNS
  4. VPN for network access to inner parts
  5. SQL Server
  6. Setup (template) for every web application I make

All this using Terraform

  1. Credentials
  2. Nice and clean
  3. Every major step in it's own file
  4. Wize .gitignore file

Setup

Git stuff

Default .gitignore file for terraform. Avoid:

  • Secrets (*.tfvars)
  • tfstate (how to keep it is not covered)

Design, pr resource groups

  1. Backend-Logging
    1. Log Analytics
    2. Application Insights
    3. And anything releated to logging
  2. Backend-Network
    1. vNet
    2. DNS => Azure Provided DNS

Secrets

credentials.tfvars

tenant_id = "xx-x-x-x-xx" subscription_id = "xx-x-x-x-xx"
client_id = "xx-x-x-x-xx" client_secret = "xxx" sql_administrator_login = "xxx" sql_administrator_password = "xxx"

And the show can start

terraform init
terraform validate
terraform plan -var-file .\credentials.tfvars

Links

  1. Hashicorp Terraform
  2. Overview of Terraform on Azure
  3. Hashicorp Developer
  4. Terrafy Github

About

Terraform build setup for web applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published