aws-amplify / aws-amplify/amplify-cli

auth resource includes `"dependsOn": "[object Object]",` in root CloudFormation template

Open
#13,117 0 comments 0 reactions 0 assignees View on GitHub
auth bug p2 platform
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

### How did you install the Amplify CLI?

pnpm

### If applicable, what version of Node.js are you using?

18

### Amplify CLI Version

12.2.3

### What operating system are you using?

mac

### Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

n/a

### Describe the bug

The resource block for my project's `auth` resource includes
```
"dependsOn": "[object Object]",
```

Although this does not appear to impact pushes or updates.

### Expected behavior

dependsOn block properly populated

### Reproduction steps

1. `amplify init -y`
2. `amplify add auth` > add a Trigger
3. observe template issue

### Project Identifier

4f996bb7d90929707d15c4c039b0c7f6

### Log output

```
# Put your logs below this line

```

### Additional information

_No response_

### Before submitting, please confirm:

- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with `amplify init -y`, then `amplify add auth` with a Trigger and inspect the generated root CloudFormation template. Trace how the auth resource's `dependsOn` value is populated; done when it contains the intended dependency data rather than the string `"[object Object]"`.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
authentication, cli, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.