gestion_configuration:terraform:toc
Ceci est une ancienne révision du document !
Table des matières
Terraform Examples
provider "aws" { #Virginia, USA region = "us-east-1" } resource "aws_instance" "example" { #Ubuntu 14.04 AMI (Amazon Machine Image) ami = "ami-2d39803a" instance_type = "t2.micro" tags { #tags WILL CHANGE the state of previous runnings resources. Name = "My Instance Name" } }
Configuration
Backend
Créer un fichier dans le home directory nommé .terraformrc
:
credentials "app.terraform.io" { token = "xxxxxx.atlasv1.zzzzzzzzzzzzz" }
Dans le répertoire de travail de Terraform, créer un fichier de configuration backend.hcl
.
workspaces { name = "workspace" } hostname = "app.terraform.io" organization = "company"
Sources : CLI Configuration File et Backend - Remote.
gestion_configuration/terraform/toc.1570838686.txt.gz · Dernière modification : 2022/02/02 00:43 (modification externe)