How can I access the execution role and task role ...
# aws
f
How can I access the execution role and task role of the task definition in an AWSX Fargate service? Prior to 1.0.0 I could do
service.taskDefinition.executionRole!.name
to get the role name for attaching an IAM policy but now I can only access the ARN.
I figured out a solution, I can define the
FargateTaskDefinition
separately and pass that into the
FargateService
and access what I need from the task definition that I created.