Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

terraform for loop json

locals {
    json_files = fileset("../ses_templates/*.JSON")   
    json_data  = [ for f in local.json_files : jsondecode(file("${path.module}/${f}")) ]  
}

resource "aws_ses_template" "template" {
    for_each = { for f in local.json_data : f.name => f }
    name     = each.value.name
    subject  = each.value.subject
    html     = each.value.html
    text     = each.value.text
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: copy array using spread operator 
Javascript :: dynamic call function 
Javascript :: (state.isLoggedIn = function() {return false}) react redux 
Javascript :: js how to shuffle array algoritm. The Fisher-Yates algorith 
Javascript :: mongoose auto delete after time 
Javascript :: create index with multiple fields mongo 
Javascript :: json format in .net core 
Javascript :: conditional ternary statement only one return 
Javascript :: Javascript shows me TypeError saying my variable is undefined 
Javascript :: dependent drop down list in jquery 
Javascript :: Angularjs different dependency injection for factories inside controller 
Javascript :: angularjs No alignment and missing item in a vertical menu 
Javascript :: Angularjs $on called twice 
Javascript :: object Promise showing instead of data pulled from API call 
Javascript :: Angular Nx Nrwl - Cannot parse tsconfig.base.json: PropertyNameExpected in JSON when try to create a new lib 
Javascript :: Delete a field from Firebase Firestore where the field/key has a period/punctuation (".") - modular v9 JavaScript SDK 
Javascript :: RegEx Pattern Validations failing on html input 
Javascript :: I have a dataframe with a json substring in 1 of the columns. i want to extract variables and make columns for them 
Javascript :: Express.js View "globals" 
Javascript :: TypeError: table.fnFilter is not a function 
Javascript :: mustache tutorial javascript 
Javascript :: chat v2 msg and time good 
Javascript :: phaser asteroid movement 
Javascript :: yoptascript 
Javascript :: underscore js filter array of objects 
Javascript :: kendo grid set page number 
Javascript :: node-red function string to int 
Javascript :: how to get mempool transactions and decode with ethers js 
Javascript :: readmore 
Javascript :: javascript enter key 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =