Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolveTemplate transforms arrays into objects #1

bboure opened this issue Jul 9, 2019 · 0 comments


None yet
1 participant
Copy link

commented Jul 9, 2019


I am trying to build my own component and after looking at some examples, I tried the "new way" of doing it (using @serverless/core and @serverless/cli). I understand this is still experimental (I can tell by the age of this repo), but I gave it a shot anyway.
In my progress I hit a first issue:

Here, my template which contains an array, gets transformed into an object.

      Version: "2012-10-17"
        - Effect: Allow
            AWS: "*"
            - es:*
          Resource: "*"


    "accessPolicies": {
        "Version": "2012-10-17",
        "Statement": {
            "0": {
                "Effect": "Allow",
                "Principal": {
                    "AWS": "*"
                "Action": {
                    "0": "es:*"
                "Resource": "*"

This causes the API call to AWS to fail because it is expecting an array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.