sparse-intern-71089
12/16/2020, 11:27 AMbrave-planet-10645
12/16/2020, 11:51 AMUserRole
code? (happy to take this out of slack if there is sensitive information there)little-cartoon-10569
12/16/2020, 7:24 PMworried-queen-62794
12/16/2020, 8:05 PMexport class UserRole extends pulumi.ComponentResource {
role: aws.iam.Role;
assumeRolePolicy: aws.iam.Policy;
constructor(name: string, args: UserRoleArgs, opts?: pulumi.InvokeOptions) {
super("allfiguredout:auth:UserRole", name, {}, opts);
const childOpts = { ...opts, parent: this };
this.role = new aws.iam.Role(name, {
path: "/user/",
assumeRolePolicy: accountAssumeRolePolicy(args.accountId),
tags: tags()
}, childOpts);
this.assumeRolePolicy = new aws.iam.Policy(`Assume${name}Role`, {
description: `Allows access to assume the ${name} role.`,
policy: assumeRolePolicy(this.role.arn)
}, childOpts);
this.registerOutputs();
}
}
worried-queen-62794
12/16/2020, 8:07 PMes6
target fixes it.worried-queen-62794
12/16/2020, 8:09 PM