Git Product home page Git Product logo

workshop-terraform-aks-2days's Introduction

Workshop Industrialisation des déploiements dans Azure avec Terraform

tags: #workshop #aks #github #terraform

Jour 1

Matin

Après midi


Jour 2

Matin

Après midi


Pré requis

Avoir un abonnement (subscription Azure) et les privilèges administrator

/!\ L'ensemble des Labs peuvent être faits en utilisant Azure Cloud Shell.

Informations complémentaires sur Azure Cloud Shell : https://docs.microsoft.com/en-us/azure/cloud-shell/overview

Créer une clé SSH (si vous n'en avez pas déjà)

Ouvrir un Azure Cloud Shell. Si c'est la première utilisation d'Azure Cloud Shell, valider la création d'un compte de stockage (qui contiendra les données du profil).

se placer sur le répertoire home : cd

ssh-keygen -t rsa

Créer un Service Principal dans Azure

az login

az account list -o table

Récupérer l'ID de la subscription Azure puis exécuter la commande suivante :

az ad sp create-for-rbac --name "votrenom-demo-githubaction2022" --role "Contributor" --sdk-auth true --scopes /subscriptions/METTRE_ICI_L_ID_DE_LA_SUBSCRIPTION -o jsonc

cf. https://learn.microsoft.com/en-us/cli/azure/ad/sp?view=azure-cli-latest#az-ad-sp-create-for-rbac

Récupérer le output de la commande et le sauvegarder temporairement dans un fichier


Forker le repo du workshop

Ouvrir un navigateur Web et se connecter sur github.com avec un identifiant

Ouvrir un nouvel onglet web et aller sur ce repo : https://github.com/FrenchBarbusCorp/Workshop-Terraform-AKS-2days

Cliquer le bouton Fork

le repo est forké dans votre environnement github

Mettre la clé SSH (la partie publique dans le fichier id_rsa.pub) dans les paramètres du compte github

Cloner votre fork sur votre poste local

Installation des composants nécessaires pour travailler sur un poste local

Avoir un environnement Bash

Avoir les outils suivants installés dans WSL :

Procédure d'installation de la CLI Terraform pour Linux (WSL Ubuntu 20.04)

sudo apt-get update && sudo apt-get install -y gnupg software-properties-common curl
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt-get update && sudo apt-get install terraform

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.