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

samInfo throws scala.MatchError #104

Open
peyerc opened this issue Oct 8, 2018 · 0 comments
Open

samInfo throws scala.MatchError #104

peyerc opened this issue Oct 8, 2018 · 0 comments

Comments

@peyerc
Copy link

peyerc commented Oct 8, 2018

I have tried to follow the instructions from your blogpost at https://binx.io/blog/2018/04/11/a-fast-and-easy-way-to-deploy-scala-based-lambdas-to-aws-using-sbt/

When I enter samInfo in the SBT session I get a scala.MatchError. Did I miss something essential?

sbt:ais-aws-lambda-test> samInfo
[error] scala.MatchError: arn:aws:iam::285842124061:root (of class java.lang.String)
[error] 	at com.github.dnvriend.sbt.aws.task.Arn$$anonfun$1.apply(IamOperations.scala:22)
[error] 	at com.github.dnvriend.sbt.aws.task.Arn$$anonfun$1.apply(IamOperations.scala:20)
[error] 	at com.github.dnvriend.ops.Converter$$anon$1.apply(Converter.scala:19)
[error] 	at com.github.dnvriend.sbt.aws.task.IamOperations$.getUser(IamOperations.scala:173)
[error] 	at com.github.dnvriend.sbt.aws.AwsPlugin$$anonfun$projectSettings$15.apply(AwsPlugin.scala:49)
[error] 	at com.github.dnvriend.sbt.aws.AwsPlugin$$anonfun$projectSettings$15.apply(AwsPlugin.scala:49)
[error] 	at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error] 	at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:39)
[error] 	at sbt.std.Transform$$anon$4.work(System.scala:66)
[error] 	at sbt.Execute.$anonfun$submit$2(Execute.scala:263)
[error] 	at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] 	at sbt.Execute.work(Execute.scala:272)
[error] 	at sbt.Execute.$anonfun$submit$1(Execute.scala:263)
[error] 	at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:174)
[error] 	at sbt.CompletionService$$anon$2.call(CompletionService.scala:37)
[error] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] 	at java.lang.Thread.run(Thread.java:748)
[error] java.lang.RuntimeException: Build Failed: arn:aws:iam::285842124061:root (of class java.lang.String)
[error] 	at com.github.dnvriend.ops.BuildFail$BuildFailOpsString.getOrFail(BuildFail.scala:27)
[error] 	at com.github.dnvriend.sbt.aws.AwsPlugin$$anonfun$projectSettings$16.apply(AwsPlugin.scala:50)
[error] 	at com.github.dnvriend.sbt.aws.AwsPlugin$$anonfun$projectSettings$16.apply(AwsPlugin.scala:50)
[error] 	at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error] 	at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:39)
[error] 	at sbt.std.Transform$$anon$4.work(System.scala:66)
[error] 	at sbt.Execute.$anonfun$submit$2(Execute.scala:263)
[error] 	at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] 	at sbt.Execute.work(Execute.scala:272)
[error] 	at sbt.Execute.$anonfun$submit$1(Execute.scala:263)
[error] 	at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:174)
[error] 	at sbt.CompletionService$$anon$2.call(CompletionService.scala:37)
[error] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error] 	at java.lang.Thread.run(Thread.java:748)
[error] (iamUserInfo) scala.MatchError: arn:aws:iam::285842124061:root (of class java.lang.String)
[error] (iamCredentialsRegionAndUser) Build Failed: arn:aws:iam::285842124061:root (of class java.lang.String)
[error] Total time: 1 s, completed Oct 8, 2018 3:12:26 PM
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

No branches or pull requests

1 participant