addition of policies for roles
This commit is contained in:
parent
c007896a55
commit
971cf38a5f
|
@ -270,15 +270,19 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "LAMBDA_TASK",
|
||||
"taskReferenceName": "extract_accountimgmanager_role_id",
|
||||
"type": "LAMBDA",
|
||||
"inputParameters": {
|
||||
"role_location" : "${create_role_accountingmanager.output.headers.location}",
|
||||
"scriptExpression": "var role_id = $.role_location.split('/').pop(); return {'role_id' : role_id}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name" : "pyrest",
|
||||
"taskReferenceName" : "get_back_role_accountingmanager",
|
||||
"type" : "SIMPLE",
|
||||
"inputParameters" : {
|
||||
"url" : "${create_role_accountingmanager.output.headers.location}",
|
||||
"method" : "GET",
|
||||
"headers" : {
|
||||
"Authorization" : "Bearer ${authorize.output.body.access_token}",
|
||||
"Accept" : "application/json"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name" : "pyrest",
|
||||
"taskReferenceName" : "create_role_policy_accountingmanager",
|
||||
|
@ -293,7 +297,7 @@
|
|||
"decisionStrategy": "UNANIMOUS",
|
||||
"roles" : [
|
||||
{
|
||||
"id" : "${extract_accountimgmanager_role_id.output.result.role_id}",
|
||||
"id" : "${get_back_role_accountingmanager.output.body.id}",
|
||||
"required" : true
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue