Code Monkey home page Code Monkey logo

azure-terraform-private-endpoints's Introduction

Azure-Terraform Private Network

A showcase project demonstrating private networks and private endpoints on Azure with Terraform.

  • Virtual Network Inbound / Outbound protection (NSG)
  • Cosmos DB Network Restrictions
  • Cosmos DB Private Endpoints + Standard Private DNS Zone
  • App Services

Running it

Log into Azure with your favorite tool:

az login

Deploy the resources:

cd ./infrastructure

terraform init
terraform plan
terraform apply -auto-approve

This will take a long time.

API local development

Begin by entering the API module:

cd ./api

Mongo DB

docker pull mongo

docker run -d --name mongodb -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME="app" \
  -e MONGO_INITDB_ROOT_PASSWORD="p4ssw0rd" mongo

Python API

Setup the .env file environment variables:

cp resources/development.env .env

Start the app

# Dependencies
pipenv shell
pipenv install

# App
export FLASK_ENV=development
export FLASK_APP=src/app

python3 -m flask run

Compose

# pull/build
docker pull mongo
sudo docker build -t big-aztf-app .

# compose up
docker-compose up -d

azure-terraform-private-endpoints's People

Contributors

epomatti avatar

Stargazers

 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.