addition of policies for roles

This commit is contained in:
dcore94 2021-03-03 18:34:25 +01:00
parent c007896a55
commit 971cf38a5f
1 changed files with 14 additions and 10 deletions

View File

@ -270,15 +270,19 @@
} }
} }
}, },
{ {
"name": "LAMBDA_TASK", "name" : "pyrest",
"taskReferenceName": "extract_accountimgmanager_role_id", "taskReferenceName" : "get_back_role_accountingmanager",
"type": "LAMBDA", "type" : "SIMPLE",
"inputParameters": { "inputParameters" : {
"role_location" : "${create_role_accountingmanager.output.headers.location}", "url" : "${create_role_accountingmanager.output.headers.location}",
"scriptExpression": "var role_id = $.role_location.split('/').pop(); return {'role_id' : role_id}" "method" : "GET",
} "headers" : {
}, "Authorization" : "Bearer ${authorize.output.body.access_token}",
"Accept" : "application/json"
}
}
},
{ {
"name" : "pyrest", "name" : "pyrest",
"taskReferenceName" : "create_role_policy_accountingmanager", "taskReferenceName" : "create_role_policy_accountingmanager",
@ -293,7 +297,7 @@
"decisionStrategy": "UNANIMOUS", "decisionStrategy": "UNANIMOUS",
"roles" : [ "roles" : [
{ {
"id" : "${extract_accountimgmanager_role_id.output.result.role_id}", "id" : "${get_back_role_accountingmanager.output.body.id}",
"required" : true "required" : true
} }
] ]