PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, September 5, 2022

[FIXED] how to remove double quotes of a variable using trim in terraform

 September 05, 2022     terraform, trim     No comments   

Issue

  locals {
   check_list ="test" 
   trimoutput = trim(local.check_list, "")
} 

currently, the trim output value is still "test"

Expected output is just test. I need this value inside terraform code itself


Solution

if you want to include a literal quote mark then you must use a backslash key

locals {
   check_list ="test" 
   trimoutput = trim(local.check_list, "\"")


Answered By - Pedro Barreto
Answer Checked By - Katrina (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing