# \#iam

**URL:** https://forum.serverless.com/tag/iam/23.md?page=1

[Latest](https://forum.serverless.com/latest.md) · [Categories](https://forum.serverless.com/categories.md) · [Tags](https://forum.serverless.com/tags.md)

**Page:** 2

---

## [iamRoleStatements for multiple DynamoDB tables](https://forum.serverless.com/t/iamrolestatements-for-multiple-dynamodb-tables/8438)

<div class="topic-metadata">

**Author:** [@dtitov](https://forum.serverless.com/u/dtitov)\
**Replies:** 1\
**Last updated:** [October 19, 2021, 3:19pm UTC](https://forum.serverless.com/t/iamrolestatements-for-multiple-dynamodb-tables/8438 "2021-10-19T15:19:46Z")

</div>

Hi, I’m trying to define iamRoleStatements section for two DynamoDB tables. I’ve found different YAML-styles of defining this on different websites, but neither of them worked. Here’s what I tried. Version 1: iamRol…

---

## [AWS IAM Roles getting altered](https://forum.serverless.com/t/aws-iam-roles-getting-altered/15854)

<div class="topic-metadata">

**Author:** [@QAnders](https://forum.serverless.com/u/QAnders)\
**Replies:** 2\
**Last updated:** [September 29, 2021, 2:50pm UTC](https://forum.serverless.com/t/aws-iam-roles-getting-altered/15854 "2021-09-29T14:50:50Z")

</div>

We’ve recently noticed that IAM roles are getting altered when deploying to AWS using Deploy, e.g. serverless deploy -s qa. The Roles are added in ´serverelss.yml\` and have been in there (and working) in previous versio…

---

## [You're not authorized to access this resource](https://forum.serverless.com/t/youre-not-authorized-to-access-this-resource/11923)

<div class="topic-metadata">

**Author:** [@jengel-rackner](https://forum.serverless.com/u/jengel-rackner)\
**Replies:** 3\
**Last updated:** [September 2, 2021, 12:50am UTC](https://forum.serverless.com/t/youre-not-authorized-to-access-this-resource/11923 "2021-09-02T00:50:30Z")

</div>

I was working on a serverless repository. Everything was working and I was able to deploy properly before, all of the sudden I was met with the error below when I tried to deploy. Now, nothing I do will get the repositor…

---

## [Run all functions in a stage under the same execution role](https://forum.serverless.com/t/run-all-functions-in-a-stage-under-the-same-execution-role/15440)

<div class="topic-metadata">

**Author:** [@jwalkerphonesoap](https://forum.serverless.com/u/jwalkerphonesoap)\
**Replies:** 1\
**Last updated:** [August 19, 2021, 10:43pm UTC](https://forum.serverless.com/t/run-all-functions-in-a-stage-under-the-same-execution-role/15440 "2021-08-19T22:43:02Z")

</div>

Hi there. I have a question about roles. I would like to set up all the functions within an application to run under one execution role. Reading through this page it appears that I can do this by assigning the role AR…

---

## [IamRoleLambdaExecution - Unsupported attribute Arn](https://forum.serverless.com/t/iamrolelambdaexecution-unsupported-attribute-arn/11987)

<div class="topic-metadata">

**Author:** [@naxxfish](https://forum.serverless.com/u/naxxfish)\
**Replies:** 2\
**Last updated:** [July 21, 2021, 12:17pm UTC](https://forum.serverless.com/t/iamrolelambdaexecution-unsupported-attribute-arn/11987 "2021-07-21T12:17:49Z")

</div>

Hi, I’m trying to build an app with serverless which has two services. One service defines a SNS topic which it publishes notifications about items becoming available. The other service (or job, really) picks up those…

---

## [Serverless deploying the Lambda function, but not attaching the VPC](https://forum.serverless.com/t/serverless-deploying-the-lambda-function-but-not-attaching-the-vpc/11999)

<div class="topic-metadata">

**Author:** [@Johnbush](https://forum.serverless.com/u/Johnbush)\
**Replies:** 2\
**Last updated:** [July 14, 2021, 9:23am UTC](https://forum.serverless.com/t/serverless-deploying-the-lambda-function-but-not-attaching-the-vpc/11999 "2021-07-14T09:23:08Z")

</div>

I am facing an issue in attaching vpc for the Lambda function.sls deploy completes sucessfully but vpc not getting attached to the lambda function. service: event-listener provider: name: aws runtime: nodejs12.x …

---

## [Passing accountId](https://forum.serverless.com/t/passing-accountid/15410)

<div class="topic-metadata">

**Author:** [@cleartrevorvossberg](https://forum.serverless.com/u/cleartrevorvossberg)\
**Replies:** 4\
**Last updated:** [July 1, 2021, 7:48am UTC](https://forum.serverless.com/t/passing-accountid/15410 "2021-07-01T07:48:28Z")

</div>

Hey, I’m looking to template on accountId for my role and cfnRole (along with other things). I’ve tried provider: role: arn:aws:iam::${AWS::AccountId}:role/execution-role-name cfnRole: arn:aws:iam::${AWS::AccountId…

---

## [How to pass IAM role to invoke Authorizer lambda w/o modifying resource policy?](https://forum.serverless.com/t/how-to-pass-iam-role-to-invoke-authorizer-lambda-w-o-modifying-resource-policy/15296)

<div class="topic-metadata">

**Author:** [@saintzyo](https://forum.serverless.com/u/saintzyo)\
**Replies:** 0\
**Last updated:** [June 11, 2021, 5:25pm UTC](https://forum.serverless.com/t/how-to-pass-iam-role-to-invoke-authorizer-lambda-w-o-modifying-resource-policy/15296 "2021-06-11T17:25:56Z")

</div>

Hi there! We use an authorizer function per environment (dev/staging/live) and we want all our endpoints have protected. But each new APIGW with auth add a new statement to the Auth lambda resource policy. This policy h…

---

## [Accessing Resources Across Accounts](https://forum.serverless.com/t/accessing-resources-across-accounts/15209)

<div class="topic-metadata">

**Author:** [@serverful](https://forum.serverless.com/u/serverful)\
**Replies:** 0\
**Last updated:** [June 2, 2021, 12:39pm UTC](https://forum.serverless.com/t/accessing-resources-across-accounts/15209 "2021-06-02T12:39:04Z")

</div>

Hi Folks, I am trying to set up access to resources across AWS accounts using serverless. I am using serverless to deploy resources in a child account and need access to services in the parent account. For testing purpo…

---

## [Trying to use AWS SDK S3.getObject within lambda, getting Access Denied](https://forum.serverless.com/t/trying-to-use-aws-sdk-s3-getobject-within-lambda-getting-access-denied/10265)

<div class="topic-metadata">

**Author:** [@thibmaek](https://forum.serverless.com/u/thibmaek)\
**Replies:** 6\
**Last updated:** [April 30, 2021, 1:23pm UTC](https://forum.serverless.com/t/trying-to-use-aws-sdk-s3-getobject-within-lambda-getting-access-denied/10265 "2021-04-30T13:23:35Z")

</div>

I know there are a lot of topics on this forum already with loosely the same issue but I’m not seeing one that actually solves what I am doing. Very simple: Upload something to S3, Lambda triggers, reads content of that…

---

## [EventBridge PutEvents Wildcard Warning](https://forum.serverless.com/t/eventbridge-putevents-wildcard-warning/9477)

<div class="topic-metadata">

**Author:** [@rudijs](https://forum.serverless.com/u/rudijs)\
**Replies:** 1\
**Last updated:** [April 21, 2021, 8:54am UTC](https://forum.serverless.com/t/eventbridge-putevents-wildcard-warning/9477 "2021-04-21T08:54:26Z")

</div>

Hi, I’ve been successfully using the new AWS EventBridge feature with the serverless framework. The only “issue” (maybe) I’m seeing is that I need to use a wildcard for IAM permissions (so far). - Effect: Allow …

---

## [Policy arn:aws:iam::aws:policy/AWSLambdaFullAccess does not exist or is not attachable](https://forum.serverless.com/t/policy-arniam-policy-awslambdafullaccess-does-not-exist-or-is-not-attachable/14537)

<div class="topic-metadata">

**Author:** [@markvitapoly](https://forum.serverless.com/u/markvitapoly)\
**Replies:** 9\
**Last updated:** [April 17, 2021, 10:17pm UTC](https://forum.serverless.com/t/policy-arniam-policy-awslambdafullaccess-does-not-exist-or-is-not-attachable/14537 "2021-04-17T22:17:28Z")

</div>

this used to work a day ago, but now: sls deploy --stage dev2 error: Policy arn:aws:iam::aws:policy/AWSLambdaFullAccess does not exist or is not attachable. it looks like AWSLambdaFullAccess has been deprecated and p…

---

## [S3 Existing Bucket creates IAM role](https://forum.serverless.com/t/s3-existing-bucket-creates-iam-role/14517)

<div class="topic-metadata">

**Author:** [@jcwrightson](https://forum.serverless.com/u/jcwrightson)\
**Replies:** 0\
**Last updated:** [March 26, 2021, 12:00pm UTC](https://forum.serverless.com/t/s3-existing-bucket-creates-iam-role/14517 "2021-03-26T12:00:40Z")

</div>

When trying to create a s3 trigger on an existing bucket, serverless needs to create an IAM role in the background, however there is no way (so it seems) to attach a permission boundary to this new role. Thus how is this…

---

## [SLS not using provider credentials configured via dashboard](https://forum.serverless.com/t/sls-not-using-provider-credentials-configured-via-dashboard/14336)

<div class="topic-metadata">

**Author:** [@Mikko](https://forum.serverless.com/u/Mikko)\
**Replies:** 0\
**Last updated:** [March 10, 2021, 10:56pm UTC](https://forum.serverless.com/t/sls-not-using-provider-credentials-configured-via-dashboard/14336 "2021-03-10T22:56:43Z")

</div>

Hello, I’m using AWS and have different accounts under same organization for prod and dev. I’ve defined providers in Serverless dashboard for both AWS accounts. And I’ve assigned prod AWS provider for production ci/cd a…

---

## [IamRoleLambdaExecution error on deployment, with admin privileges over one region](https://forum.serverless.com/t/iamrolelambdaexecution-error-on-deployment-with-admin-privileges-over-one-region/13614)

<div class="topic-metadata">

**Author:** [@jake](https://forum.serverless.com/u/jake)\
**Replies:** 0\
**Last updated:** [January 6, 2021, 7:50pm UTC](https://forum.serverless.com/t/iamrolelambdaexecution-error-on-deployment-with-admin-privileges-over-one-region/13614 "2021-01-06T19:50:28Z")

</div>

In short, I am receiving a Lambda error that appears to be caused by permissions on sls deploy. I have admin privileges over all of us-east-2. The policy for admin-us-east-2: { "Version": "2012-10-17", "Statement": \[ …

---

## [AWS Lambda and IAM error on deploy: The role defined for the function cannot be assumed by Lambda](https://forum.serverless.com/t/aws-lambda-and-iam-error-on-deploy-the-role-defined-for-the-function-cannot-be-assumed-by-lambda/9034)

<div class="topic-metadata">

**Author:** [@matteoh](https://forum.serverless.com/u/matteoh)\
**Replies:** 2\
**Last updated:** [September 25, 2020, 5:41am UTC](https://forum.serverless.com/t/aws-lambda-and-iam-error-on-deploy-the-role-defined-for-the-function-cannot-be-assumed-by-lambda/9034 "2020-09-25T05:41:10Z")

</div>

In my AWS project, I use the serverless framework to deploy lambda function and IAM roles. So I created 6 lambda functions, all using the same IAM Role below: functions: auto-delete-identity: handler: src/auto-d…

---

## [Permission bounday for internally created resources](https://forum.serverless.com/t/permission-bounday-for-internally-created-resources/11663)

<div class="topic-metadata">

**Author:** [@prabushitha](https://forum.serverless.com/u/prabushitha)\
**Replies:** 2\
**Last updated:** [August 30, 2020, 8:44pm UTC](https://forum.serverless.com/t/permission-bounday-for-internally-created-resources/11663 "2020-08-30T20:44:49Z")

</div>

According to the serverless documentation it allows adding lambda trigger with an existing s3 bucket using the flag existing: true. But, it would create additional resources as mentioned in the document NOTE: Using t…

---

## [IAM permissions boundary support](https://forum.serverless.com/t/iam-permissions-boundary-support/6835)

<div class="topic-metadata">

**Author:** [@doanian](https://forum.serverless.com/u/doanian)\
**Replies:** 3\
**Last updated:** [August 30, 2020, 8:36pm UTC](https://forum.serverless.com/t/iam-permissions-boundary-support/6835 "2020-08-30T20:36:18Z")

</div>

Does Serverless support an easy way to add an IAM permission boundary to the lambda execution roles? I’d love to be able to specify it in the provider similar to iamRoleStatements or on a per function level. Currently I’…

---

## [IAM problem, lambda deployment](https://forum.serverless.com/t/iam-problem-lambda-deployment/12413)

<div class="topic-metadata">

**Author:** [@RomainPhi](https://forum.serverless.com/u/RomainPhi)\
**Replies:** 0\
**Last updated:** [August 28, 2020, 5:15pm UTC](https://forum.serverless.com/t/iam-problem-lambda-deployment/12413 "2020-08-28T17:15:51Z")

</div>

Hi, when trying to deploy serverless from a codebuild pipeline i encounter a message who block me about with right is neccessary to go further. it’s only for deploy some lambdas Serverless: Creating an empty package.js…

---

## [Missing credentials](https://forum.serverless.com/t/missing-credentials/12243)

<div class="topic-metadata">

**Author:** [@jminghe1](https://forum.serverless.com/u/jminghe1)\
**Replies:** 0\
**Last updated:** [August 10, 2020, 10:23pm UTC](https://forum.serverless.com/t/missing-credentials/12243 "2020-08-10T22:23:12Z")

</div>

Missing credentials in config, if using AWS\_CONFIG\_FILE, set AWS\_SDK\_LOAD\_CONFIG =1 Was wondering if anyone can help me fix this issue, I have no idea what it means

---

## [AWS s3 create pre signed post does not work on deploy](https://forum.serverless.com/t/aws-s3-create-pre-signed-post-does-not-work-on-deploy/12170)

<div class="topic-metadata">

**Author:** [@technikhil314](https://forum.serverless.com/u/technikhil314)\
**Replies:** 0\
**Last updated:** [August 1, 2020, 10:20am UTC](https://forum.serverless.com/t/aws-s3-create-pre-signed-post-does-not-work-on-deploy/12170 "2020-08-01T10:20:01Z")

</div>

I am creating presigned url using aws-sdk’s nodejs/createPresignedPost method. Its all working via serverless-offline plugin on my local, cause my personal accesskey has all accesses. But when I deploy it errors out with…

---

## [Azure equivalent to iamRoleStatements](https://forum.serverless.com/t/azure-equivalent-to-iamrolestatements/6432)

<div class="topic-metadata">

**Author:** [@pcullin-ratio](https://forum.serverless.com/u/pcullin-ratio)\
**Replies:** 2\
**Last updated:** [July 31, 2020, 2:56pm UTC](https://forum.serverless.com/t/azure-equivalent-to-iamrolestatements/6432 "2020-07-31T14:56:11Z")

</div>

What is the proper approach to providing to an Azure Function granular, least-privilege access to specific Azure resources in Serverless? For AWS, this is implemented using the iamRoleStatements block in serverless.yml, …

---

## [Is it wrong that how to attach IAM Role to Lambda on the page "AWS Lambda Guide - IAM"?](https://forum.serverless.com/t/is-it-wrong-that-how-to-attach-iam-role-to-lambda-on-the-page-aws-lambda-guide-iam/12068)

<div class="topic-metadata">

**Author:** [@ichoss](https://forum.serverless.com/u/ichoss)\
**Replies:** 0\
**Last updated:** [July 21, 2020, 7:26am UTC](https://forum.serverless.com/t/is-it-wrong-that-how-to-attach-iam-role-to-lambda-on-the-page-aws-lambda-guide-iam/12068 "2020-07-21T07:26:24Z")

</div>

Is it wrong that how to attach IAM Role to Lambda on the section Custom IAM Roles on the page AWS Lambda Guide - IAM? I doubt following sentence is wrong. The role attribute can have a value of the logical name of t…

---

## [Google Cloud Functions Service Account](https://forum.serverless.com/t/google-cloud-functions-service-account/11886)

<div class="topic-metadata">

**Author:** [@Gmoshko](https://forum.serverless.com/u/Gmoshko)\
**Replies:** 0\
**Last updated:** [June 30, 2020, 7:39am UTC](https://forum.serverless.com/t/google-cloud-functions-service-account/11886 "2020-06-30T07:39:18Z")

</div>

When I’m Deploying Cloud Functions With Service Account Credentials Json File in the credentials. the functions deployed but the Service account is App Engine Service Account how can i specify the func which Service ac…

---

## [Error: {"errorMessage":"Your AWS credential for deployment profile Developer is configured to use the IAM role but access to that role was denied by IAM](https://forum.serverless.com/t/error-errormessage-your-aws-credential-for-deployment-profile-developer-is-configured-to-use-the-iam-role-but-access-to-that-role-was-denied-by-iam/9460)

<div class="topic-metadata">

**Author:** [@iosvanyd1](https://forum.serverless.com/u/iosvanyd1)\
**Replies:** 3\
**Last updated:** [June 25, 2020, 4:37pm UTC](https://forum.serverless.com/t/error-errormessage-your-aws-credential-for-deployment-profile-developer-is-configured-to-use-the-iam-role-but-access-to-that-role-was-denied-by-iam/9460 "2020-06-25T16:37:15Z")

</div>

I am getting this error when I use the dashboard to login using “sls login” and fater successful login I do “sls” again and I get: Error: {“errorMessage”:“Your AWS credential for deployment profile Developer is configur…

---

## [Conditionally create IAM role statement](https://forum.serverless.com/t/conditionally-create-iam-role-statement/11228)

<div class="topic-metadata">

**Author:** [@conrad](https://forum.serverless.com/u/conrad)\
**Replies:** 2\
**Last updated:** [June 22, 2020, 10:26pm UTC](https://forum.serverless.com/t/conditionally-create-iam-role-statement/11228 "2020-06-22T22:26:46Z")

</div>

For our application, we have a Kinesis stream that is only supposed to exist in one environment. Then we have an IAM role to allow Lambda to access the stream. Since the stream will not exist in other environments, is i…

---

## [Error deploying to S3 bucket - Access denied](https://forum.serverless.com/t/error-deploying-to-s3-bucket-access-denied/11552)

<div class="topic-metadata">

**Author:** [@sgattani](https://forum.serverless.com/u/sgattani)\
**Replies:** 0\
**Last updated:** [May 26, 2020, 1:19am UTC](https://forum.serverless.com/t/error-deploying-to-s3-bucket-access-denied/11552 "2020-05-26T01:19:35Z")

</div>

Hi, I am getting access denied error while trying to deploy code to S3 bucket. Nothing has changed in the environments and also the permissions have been verified, but still getting access denied error. Below is the l…

---

## [Can't sls deploy](https://forum.serverless.com/t/cant-sls-deploy/7338)

<div class="topic-metadata">

**Author:** [@ngw](https://forum.serverless.com/u/ngw)\
**Replies:** 0\
**Last updated:** [February 11, 2019, 11:38am UTC](https://forum.serverless.com/t/cant-sls-deploy/7338 "2019-02-11T11:38:26Z")

</div>

Hello, I’m having problems deploying a function using serverless. The error I get is: ngw@ohvelveteen ~/Projects/seeker: sls deploy Serverless: Packaging service... Serverless: Excluding development dependencies... S…

---

## [First App - Post request - error in saving](https://forum.serverless.com/t/first-app-post-request-error-in-saving/11458)

<div class="topic-metadata">

**Author:** [@toriacht](https://forum.serverless.com/u/toriacht)\
**Replies:** 3\
**Last updated:** [May 20, 2020, 2:27pm UTC](https://forum.serverless.com/t/first-app-post-request-error-in-saving/11458 "2020-05-20T14:27:52Z")

</div>

Hi I just completed the How to create a REST API in Java using DynamoDB and Serverless tutorial. I associated my aws account to serverless client via commandline serverless config credentials --provider aws --key…

---

## [Error: The CloudFormation template is invalid: Template error: instance of Fn::GetAtt references undefined resource name-of-role](https://forum.serverless.com/t/error-the-cloudformation-template-is-invalid-template-error-instance-of-fn-getatt-references-undefined-resource-name-of-role/11440)

<div class="topic-metadata">

**Author:** [@dir101](https://forum.serverless.com/u/dir101)\
**Replies:** 0\
**Last updated:** [May 14, 2020, 9:18am UTC](https://forum.serverless.com/t/error-the-cloudformation-template-is-invalid-template-error-instance-of-fn-getatt-references-undefined-resource-name-of-role/11440 "2020-05-14T09:18:18Z")

</div>

I am trying to deploy a service to AWS using serverless framework and keep getting the following error: Error: The CloudFormation template is invalid: Template error: instance of Fn::GetAtt references undefined resource…

[Previous page](https://forum.serverless.com/tag/iam/23.md?match_all_tags=true&tags%5B%5D=iam)

[Next page](https://forum.serverless.com/tag/iam/23.md?match_all_tags=true&page=2&tags%5B%5D=iam)
