Code Monkey home page Code Monkey logo

azure_terraform's Introduction

Azure_Terraform

The purpose of this repo is to provide an automated solution for setting up the Datadog agent in various Azure resources.

Getting Started

  • Create a <DIR_NAME>/terraform.tfvars within the same level as the <DIR_NAME>/main.tf

(Note: replace <DIR_NAME> with k8 for example).

This repo assumes you have already created an Azure service principal. More information on how to create a Azure service principal can be found here.

  • Provide the following keys & corresponding values:
    • subscription_id = <AZURE_SUBSCRIPTION_ID>
    • client_id = <AZURE_SERVICE_PRINCIPAL_APP_ID>
    • client_secret = <AZURE_SERVICE_PRINCIPAL_PASSWORD>
    • tenant_id = <AZURE_SERVICE_PRINCIPAL_TENANT_ID>
    • datadog_api_key = <DD_API_KEY>
    • location = <AVAILABILITY_ZONE>

(Note: there are additional values that can be passed in, which depend on the Azure resources being created).

Linux VM:

  • Naivigate to linux_vm directory.
  • Create a SSH key pair for access to the Linux VM.
    • Run the following in on your local shell ssh-keygen -m PEM -t rsa -b 4096 & update the value within the terraform.tfvars to point the created pub file.
  • Apply the Terraform scripts:
    • terraform init
    • terraform plan
    • terraform apply
    • terraform apply -destroy can be used to remove the instance.

Windows VM:

  • Navigate to windows_vm directory.
  • In the install-datadog.ps1 file replace _API_KEY_HERE with your organization's Datadog API key.
  • Apply the Terraform scripts:
    • terraform init
    • terraform plan
    • terraform apply
    • terraform apply -destroy can be used to remove the instance.

azure_terraform's People

Contributors

jaycdave88 avatar jgibbons-cp avatar

Stargazers

 avatar John Richter avatar Alexander Dulmovits avatar

Watchers

James Cloos avatar  avatar

Forkers

jgibbons-cp

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.