What to do when you want to skip processing with Terraform’s Optional attribute

If you set null to Terraform’s Optional attribute value, it will skip the process nicely. Introduction It’s been a long time since i wrote articles for personal reasons, i’ll try to be more active and share my tips with you . When creating Terraform resources, there were cases where you wanted to skip or omit … Lire la suite What to do when you want to skip processing with Terraform’s Optional attribute

Évaluez ceci :

Terrafrom.tfstate file how it’is updated why we shoud use remote_state

By Matt Burgess WHATS TFSTATE ? terraform.tfstate   ctm.tfstate par exemple c le fichier qui régit l’état de l’infrastructure (toute les resource deployés par terraform après un APPLY) donc apres un apply ce fichier là est updaté ) on peut le trouver en local ou bien en remote_state sur un s3 (pour que toute l’équipe ait … Lire la suite Terrafrom.tfstate file how it’is updated why we shoud use remote_state

Évaluez ceci :

Terraform EOF escaped format

This piece of code creates an sqs ressource if we don’t use the EOf we should then give the json payloads with the escaped formats like this resource « aws_sqs_queue » « terraform_queue » { name = « terraform-example-queue » delay_seconds = 90 max_message_size = 2048 message_retention_seconds = 86400 receive_wait_time_seconds = 10 #redrive_policy = « {\ »deadLetterTargetArn\ »:\ »${aws_sqs_queue.terraform_queue_deadletter.arn}\ »,\ »maxReceiveCount\ »:4} » policy= « {\ »Version\ »:\ »2012-10-17\ »,\ »Statement\ »:[{\ »Action\ »:[\ »sqs:*\ »],\ »Effect\ »:\ »Allow\ »,\ »Resource\ »:\ »*\ »}]} » tags { Environment = … Lire la suite Terraform EOF escaped format

Évaluez ceci :