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

Error providing aws.allowedAccountIds in sst.config.ts #12

Closed
cmanou opened this issue Feb 26, 2024 · 0 comments · Fixed by #14
Closed

Error providing aws.allowedAccountIds in sst.config.ts #12

cmanou opened this issue Feb 26, 2024 · 0 comments · Fixed by #14

Comments

@cmanou
Copy link
Contributor

cmanou commented Feb 26, 2024

In particular setting providers.aws.allowedAccountIds in Config.app of sst.config.ts which has typescript type $util.Input<$util.Input<string>[]> which is basically string[] gives

panic: json: cannot unmarshal array into Go struct field App.providers of type string

goroutine 1 [running]:
main.main()
    /home/runner/work/ion/ion/cmd/sst/main.go:659 +0xa88

Looks like it's to do with the struct for app providers only allowing string values in the following file.

Providers map[string]map[string]string `json:"providers"`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant