This message was deleted.
# typescript
s
This message was deleted.
s
Curious if you are using an IDE. It's easy to inspect the
DefaultRoleWithPolicyArgs
type if you are... it's
Copy code
interface DefaultRoleWithPolicyArgs {
        /**
         * Args to use when creating the role and policies. Can't be specified if `roleArn` is used.
         */
        args?: inputs.awsx.RoleWithPolicyArgs;
        /**
         * ARN of existing role to use instead of creating a new role. Cannot be used in combination with `args` or `opts`.
         */
        roleArn?: pulumi.Input<string>;
        /**
         * Skips creation of the role if set to `true`.
         */
        skip?: boolean;
    }
so basically instead of
Copy code
taskDefinitionArgs: {
        taskRole: fargateTaskRole,
you need
Copy code
taskDefinitionArgs: {
        taskRole: { roleArn: fargateTaskRole.arn },
🎉 1
b
You're right Mike, thanks! I didn't think about inspecting it. Much appreciated!
p 1