# Deployment error

**URL:** <https://discourse.sst.dev/t/deployment-error/1784>\
**Category:** General\
**Created:** [April 23, 2020, 4:42am UTC](https://discourse.sst.dev/t/deployment-error/1784 "2020-04-23T04:42:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davemrunal](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@davemrunal](https://discourse.sst.dev/u/davemrunal)\
**Post date:** [April 23, 2020, 4:42am UTC](https://discourse.sst.dev/t/deployment-error/1784/1 "2020-04-23T04:42:58Z")

</div>

Tried to run `serverless deploy` but getting this error:

```
Serverless Error ---------------------------------------

Environment variable iamRoleStatements must contain string

```

Relevant part in my yaml looks like this:

```
# 'iamRoleStatements' defines the permission policy for the Lambda function.
# In this case Lambda functions are granted with permissions to access DynamoDB.
iamRoleStatements:
  - Effect: Allow
    Action:
      - dynamodb:DescribeTable
      - dynamodb:Query
      - dynamodb:Scan
      - dynamodb:GetItem
      - dynamodb:PutItem
      - dynamodb:UpdateItem
      - dynamodb:DeleteItem
    Resource: 'arn:aws:dynamodb:us-east-1:*:*'
```

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [April 25, 2020, 5:11pm UTC](https://discourse.sst.dev/t/deployment-error/1784/2 "2020-04-25T17:11:46Z")

</div>

Can you post the full `serverless.yml`. The error seems to be saying that the `iamRoleStatements` is inside the environment variables.

---

<div class="post-metadata">

**Author:** ![davemrunal](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@davemrunal](https://discourse.sst.dev/u/davemrunal)\
**Post date:** [April 28, 2020, 4:14am UTC](https://discourse.sst.dev/t/deployment-error/1784/3 "2020-04-28T04:14:45Z")

</div>

@jayair It was an indentation issue. Thanks for your response!
