Skip to content

Xerataw/T-SEC-902

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

T-SEC-902

Détails de l'infrastructure

Vous pouvez trouver les détails de notre infrastructure ICI

Project setup

  1. Install Terraform -> https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli
  2. Initialize the project
terraform init --upgrade
  1. Init the subscription env variable
export ARM_SUBSCRIPTION_ID="<subscription-ID>" #For mac @ Linux
setx ARM_SUBSCRIPTION_ID "<subscription-ID>" #For Windows
  1. You may need to update the state of the resource group
terraform import azurerm_resource_group.rg-group-16 "/subscriptions/<subscription-id>/resourceGroups/rg-group-16"

Use terraform

  1. Write your config
  2. Create your ssh key
ssh-kegen -t ed25519 -f terraform_azure_key_ssh/sec_azure_key
  1. Validate and plan your config
terraform plan
  1. Format the code
terraform fmt
  1. Apply the code
terraform apply -auto-approve
  1. If you want to delete the infrastructure ⚠️ Be sure no one is using it
terraform destroy -auto-approve

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors