Attempting to give user permissions to lamba function to associate it with a CloudFront distro

0

Hi Everyone,

Apologies if this is a stupid question but I am attempting to setup a Lamba function as an origin request handler in a CloudFront distribution. I was reading through https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-edge-permissions.html which seems simple enough that I need to grant my account permissions to call the function to the distro...makes sense.

The problem I am having is just assigning the permissions. We use an external identity provider and I couldn't find the ARN for my account in the IAM Identity Center listed anywhere but I may just be blind. I found when signing up for Repost it displayed my ARN so I attempted to use that to grant myself permission but I just get an error that

"was invalid. Member must satisfy expression: [\w+=,.@-]* Please check your input and try again." so I must have the incorrect ARN.

I am sure I am overlooking something easy but I am a noob and just am looking for help. Thanks Amazon. What's the easiest way to pull my ARN for my account with an external identity provider? Am I formatting something wrong with the submission? Not sure if sharing the ARN has any critical internal data.

1 個回答
1

I figured this out, it needs the principle role ARN from the role instead of from the specific user account. Thanks all.

已回答 5 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南