Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
Function: expose referenced role inside nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
fwang committed Oct 9, 2024
1 parent a97c6f9 commit de2a081
Show file tree
Hide file tree
Showing 3 changed files with 192 additions and 192 deletions.
8 changes: 3 additions & 5 deletions platform/src/components/aws/cognito-identity-pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Link } from "../link";
import { physicalName } from "../naming";
import { cognito, getRegionOutput, iam } from "@pulumi/aws";
import { permission } from "./permission";
import { parseIamRoleArn } from "./helpers/arn";
import { parseRoleArn } from "./helpers/arn";

export interface CognitoIdentityPoolArgs {
/**
Expand Down Expand Up @@ -399,14 +399,12 @@ export class CognitoIdentityPool extends Component implements Link.Linkable {
);
const authRole = iam.Role.get(
`${name}AuthRole`,
attachment.roles.authenticated.apply(
(arn) => parseIamRoleArn(arn).roleName,
),
attachment.roles.authenticated.apply((arn) => parseRoleArn(arn).roleName),
);
const unauthRole = iam.Role.get(
`${name}UnauthRole`,
attachment.roles.unauthenticated.apply(
(arn) => parseIamRoleArn(arn).roleName,
(arn) => parseRoleArn(arn).roleName,
),
);
return new CognitoIdentityPool(name, {
Expand Down
Loading

0 comments on commit de2a081

Please sign in to comment.