sqs / sbt-elasticbeanstalk Goto Github PK
View Code? Open in Web Editor NEWSBT Play2 plugin for deploying WAR files to Amazon Web Services (AWS) Elastic Beanstalk
Home Page: https://sourcegraph.com/github.com/sqs/sbt-elasticbeanstalk
SBT Play2 plugin for deploying WAR files to Amazon Web Services (AWS) Elastic Beanstalk
Home Page: https://sourcegraph.com/github.com/sqs/sbt-elasticbeanstalk
Only reads from ~/.ssh/blendlive.pem
sbt eb-deploy
doesn't appear to work for scala 2.11.6 + sbt 0.13.8.
I'm able to upload the war to s3, and run the eb-api-*
commands, however any other eb command fails during eb-existing-environments
, any tips?
[MyProject] $ eb-config-pull
error java.util.NoSuchElementException: None.get
[error] Total time: 4 s, completed Jun 17, 2013 1:57:00 PM
[MyProject] $ last
[debug] Running task... Cancelable: false, check cycles: false
java.util.NoSuchElementException: None.get
at scala.None$.get(Option.scala:274)
at scala.None$.get(Option.scala:272)
at com.blendlabsinc.sbtelasticbeanstalk.ElasticBeanstalkCommands$$anonfun$10$$anonfun$15.apply(Commands.scala:187)
at com.blendlabsinc.sbtelasticbeanstalk.ElasticBeanstalkCommands$$anonfun$10$$anonfun$15.apply(Commands.scala:186)
at scala.collection.TraversableLike$$anonfun$groupBy$1.apply(TraversableLike.scala:315)
at scala.collection.TraversableLike$$anonfun$groupBy$1.apply(TraversableLike.scala:314)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:76)
at scala.collection.TraversableLike$class.groupBy(TraversableLike.scala:314)
at scala.collection.immutable.List.groupBy(List.scala:76)
at com.blendlabsinc.sbtelasticbeanstalk.ElasticBeanstalkCommands$$anonfun$10.apply(Commands.scala:186)
at com.blendlabsinc.sbtelasticbeanstalk.ElasticBeanstalkCommands$$anonfun$10.apply(Commands.scala:178)
at sbt.Scoped$$anonfun$hf3$1.apply(Structure.scala:579)
at sbt.Scoped$$anonfun$hf3$1.apply(Structure.scala:579)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:49)
at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:41)
at sbt.std.Transform$$anon$5.work(System.scala:71)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:238)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:680)
error java.util.NoSuchElementException: None.get
[error] Total time: 4 s, completed Jun 17, 2013 1:57:00 PM
I get an error when the eb-deploy
task is trying to upload the built WAR. Anonymized:
[error] (*:ebUploadSourceBundle)
Status Code: 301,
AWS Service: Amazon S3,
AWS Request ID: 4B092FF1D6A0C108,
AWS Error Code: PermanentRedirect,
AWS Error Message: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.,
S3 Extended Request ID: Uo0GqhXmRB78RIAYBWBBOFjS0tae3fIB/U7vResO8+[...]
It appears that the hostname must be specific to the environment in which the bucket resides. My bucket is in Ireland, so it needs to access it using http://s3-eu-west-1-amazonaws.com/...
I thought I would open an issue to track our conversation on this topic... I have made updates to get the plugin to cross-compile for sbt 0.12.x and 0.13.x (not merged yet). I've released my own plugin to the sbt-plugin-releases community repo, and I've been in contact with Josh Suereth about how we can both publish for the same plugin. When you get some time, go create an account at http://bintray.com. Then create an organization to represent com.blendlabsinc
and add me to it (my username at bintray is also barnesjd). From there I think I will be able to finish setting us up. If you're really feeling up to working on this, you're welcome to look at all of the steps required. FYI, I made a quick attempt at publishing it to my own sbt-plugin repo and it wasn't quite right.
Hi, it seems that there are some issues with the specified repository. I was trying to use the plugin in non-play application but sbt can't find the module.
BTW the resolver specified in the guide for non-play app seems to be mistaken with the one for play app.
Regards,
Kuba.
Hitting some issues whist trying to configure sbt-elasticbeanstalk in my play 2.2 application.
When I run eb-deploy it errors:
[trace] Stack trace suppressed: run last *:ebUploadSourceBundle for the full output.
[error] (*:ebUploadSourceBundle) java.lang.Exception: ebRequireJava6 := true, but you are currently running in Java 1.7. As of Dec 2012, Elastic Beanstalk is incompatible with Java7. You should use Java6 to compile and deploy WARs. You can also set ebRequireJava6 := false in your sbt settings to suppress this warning, but beware that Java7-compiled WARs currently fail in strange ways on Elastic Beanstalk. See http://qslack.com/2012/12/using-java-1-7-on-amazon-aws-elastic-beanstalk/ for a workaround.
[error] Total time: 5 s, completed 12-Nov-2014 15:02:24
I am using Java 1.8.0_20 so not sure this message is relevant. Anyway, I added the suggested "ebRequireJava6 := false" to my config so:
val main = play.Project(appName, appVersion, appDependencies)
.settings(
Play2WarKeys.servletVersion := "3.0",
ebRequireJava6 := false,
ebAppBundle <<= Play2WarKeys.war,
ebS3BucketName := "elasticbeanstalk-eu-west-1-449979607234",
ebDeployments := Seq(
Deployment(
"upgrade-service",
envBaseName = "upgradeservice",
templateName = "my-template",
cname = "upservaccountz",
environmentVariables = Map("MyFavoriteColor" -> "blue"),
solutionStackName = "Java"
)
),
ebRegion := "eu-west-1"
)
.settings(Play2WarPlugin.play2WarSettings: _*)
.settings(ElasticBeanstalk.elasticBeanstalkSettings: _*)
.settings(
javaOptions in Test += "-Dconfig.file=conf/application-dev.conf"
)
but I still see the same error message.
Am I doing something wrong or is there a bug?
Thanks
Tim
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.