https://pulumi.com logo
#typescript
Title
# typescript
b

bland-camera-22041

05/11/2022, 12:51 PM
Have hit an issue around attaching roles to Identity pools in AWS ... Searching the web I've found someone else seems to have encountered this. https://stackoverflow.com/questions/68445645/create-cognito-identity-pool-using-pulumi-roles-arent-attached Would appreciate if someone could give a pointer as to what might be missing or if its a known issue?
m

millions-furniture-75402

05/11/2022, 1:15 PM
I went to check on this and I project we have a similar declaration, but sadly found a comment confirming I had the same issue:
Copy code
new aws.cognito.IdentityPoolRoleAttachment(
  `${appName}-quicksight-role-attachment`,
  {
    identityPoolId: identityPool.id,
    roles: {
      authenticated: poolAuthenticatedRole.arn, // this isn't attaching with IAC; had to attach through the console.
    },
  },
  {
    dependsOn: poolAuthenticatedRole,
  },
);
Not sure if the comment is still valid... What language and are you using the latest version?
b

bland-camera-22041

05/11/2022, 1:17 PM
Hey, Just managed to resolve this. Had to make sure that we included the
roleMappings
and it was okay after that 🙂
👍 1
5 Views