在开发Amazon Elastic Beanstalk时,我可以在本地测试吗?

时间:2022-01-24 23:18:39

I am trying to get started with Amazon AWS Elastic Beanstalk and as I learn more about it, it seems like I will not be able to test my webapp locally. I understand I can build a war file and run it in a local Tomcat, but it looks like once I need a datastore (I want to use dynamodb) I will have to connect to aws. Ideally I would be able to run a test instance locally (not having to connect to aws to test). Is that a reasonable thing to do or am I going about this wrong?

我正在尝试使用Amazon AWS Elastic Beanstalk,当我了解更多信息时,我似乎无法在本地测试我的webapp。我知道我可以构建一个war文件并在本地Tomcat中运行它,但看起来我需要一个数据存储区(我想使用dynamodb)我将不得不连接到aws。理想情况下,我可以在本地运行测试实例(不必连接到aws进行测试)。这是合理的事情还是我错了?

2 个解决方案

#1


3  

So I finally got around to sending a message to Amazon about this. Someone got back to me quickly, telling me that I must be connected to AWS services to do this sort of development work.

所以我终于开始向亚马逊发送关于此的消息了。有人快速回复我,告诉我必须连接到AWS服务才能进行这种开发工作。

#2


3  

The checked answer is correct - it is not possible to run AWS services locally. I'm adding more information and references. Just by way of comparison, Google App Engine which I also use does provide this capability and I have found it incredibly useful.

选中的答案是正确的 - 无法在本地运行AWS服务。我正在添加更多信息和参考资料。仅作比较,我也使用的Google App Engine确实提供了这种功能,我发现它非常有用。

A few months ago someone named Wade on the AWS developer relations team solicited feedback from the developer community on what mocks would be useful for developers for this purpose.

几个月前,AWS开发人员关系团队中有一位名叫Wade的人向开发人员社区征求了关于为此目的哪些模拟对开发人员有用的反馈。

Amazon Elastic Bean Stalk does support integrated debugging using the Eclipse IDE. If you have a good Internet connection and squint your eyes, it almost feels like you're running locally.

Amazon Elastic Bean Stalk确实支持使用Eclipse IDE进行集成调试。如果你有一个良好的互联网连接并眯着眼睛,几乎感觉就像你在本地运行。

But, I think there may be a solution to what the original question was really trying to do. I do this all the time. I connect my locally running Tomcat instance to a remote Amazon hosted datastore instance by modifying the database security appropriately. At first I was worried about performance, but it's been really fast for me. And you effectively get local debugging while connecting to a remote data source.

但是,我认为可能有一个解决原始问题真正想要做的事情。我一直这样做。我通过适当地修改数据库安全性,将本地运行的Tomcat实例连接到远程Amazon托管数据存储实例。起初我担心性能,但对我来说真的很快。并且在连接到远程数据源时有效地进行本地调试。

#1


3  

So I finally got around to sending a message to Amazon about this. Someone got back to me quickly, telling me that I must be connected to AWS services to do this sort of development work.

所以我终于开始向亚马逊发送关于此的消息了。有人快速回复我,告诉我必须连接到AWS服务才能进行这种开发工作。

#2


3  

The checked answer is correct - it is not possible to run AWS services locally. I'm adding more information and references. Just by way of comparison, Google App Engine which I also use does provide this capability and I have found it incredibly useful.

选中的答案是正确的 - 无法在本地运行AWS服务。我正在添加更多信息和参考资料。仅作比较,我也使用的Google App Engine确实提供了这种功能,我发现它非常有用。

A few months ago someone named Wade on the AWS developer relations team solicited feedback from the developer community on what mocks would be useful for developers for this purpose.

几个月前,AWS开发人员关系团队中有一位名叫Wade的人向开发人员社区征求了关于为此目的哪些模拟对开发人员有用的反馈。

Amazon Elastic Bean Stalk does support integrated debugging using the Eclipse IDE. If you have a good Internet connection and squint your eyes, it almost feels like you're running locally.

Amazon Elastic Bean Stalk确实支持使用Eclipse IDE进行集成调试。如果你有一个良好的互联网连接并眯着眼睛,几乎感觉就像你在本地运行。

But, I think there may be a solution to what the original question was really trying to do. I do this all the time. I connect my locally running Tomcat instance to a remote Amazon hosted datastore instance by modifying the database security appropriately. At first I was worried about performance, but it's been really fast for me. And you effectively get local debugging while connecting to a remote data source.

但是,我认为可能有一个解决原始问题真正想要做的事情。我一直这样做。我通过适当地修改数据库安全性,将本地运行的Tomcat实例连接到远程Amazon托管数据存储实例。起初我担心性能,但对我来说真的很快。并且在连接到远程数据源时有效地进行本地调试。