Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts

Sunday, October 18, 2020

Use Eclipse to develop AWS lambda

 

1. Setup AWS Toolkit in Eclipse [1]

2. Setup AWS credentials [2]

    The instructions are not quite clear. A few steps required here:

     (1) Create an IAM user without any permissions boundaries

     (2) Add permissions for Lambda, S3, CloudFormation and iam (Inline policy). For iam, the iam:CreateRole is required [3]. But I added full access.


         Note: if there is any error in deploying the lambda, check the missing permssions in CloudFormation events or the AWS console in Eclipse.

3. Create a AWS serverless Java project with hello-world blueprint [4]

4. Deploy the project 

     













5. Test lambda. In lambda service in AWS console (Be sure in the right region), add test event 

"TestInput"

The run the lambda. Check the logs in CloudWatch logs.

 

Ref:

[1] https://docs.aws.amazon.com/toolkit-for-eclipse/v1/user-guide/setup-install.html

[2] https://docs.aws.amazon.com/toolkit-for-eclipse/v1/user-guide/setup-credentials.html

[3] https://medium.com/@jun711.g/authorizing-aws-cloudformation-role-to-perform-iam-createrole-on-resources-2928e5ca5be7

[4] https://docs.aws.amazon.com/toolkit-for-eclipse/v1/user-guide/serverless-projects.html


Thursday, November 5, 2015

Eclipse安装Maven

Maven是管理和下载jar包的工具。

如何安装:
Open Eclipse IDE
Click Help -> Install New Software...
Click Add button at top right corner
At pop up: fill up Name as "M2Eclipse" and Location as "http://download.eclipse.org/technology/m2e/releases"
Now click OK
After that installation would be started.

Go to Window --> Preferences
Observe, Maven is enlisted at left panel
Finally,

项目配置
Click on an existing project
Select Configure -> Convert to Maven Project

Saturday, November 8, 2014

在Eclipse配置UML

name: UML (objectAid) to write class & sequence diagram
序列图需要注册账号,可以免费用一个月
link: http://www.objectaid.com/

其他use case, architecture diagram可以用visio 来画

Wednesday, October 8, 2014

Eclipse安装C++


下载CDT更新
http://download.eclipse.org/tools/cdt/releases/juno
ref:
http://jingyan.baidu.com/article/380abd0a5888211d90192cd6.html

此时Eclipse内部可以build C++了,但是好似不能运行

安装MinGW,把bin目录加入环境变量path,make**.ext那个改成make.exe,打开cmd测试make,这时可以进入eclipse生成的CTest.exe运行,即可出现想要的结果

或者C++ online: http://cpp.sh/
python online: http://repl.it/languages/Python

Tuesday, September 16, 2014

在Eclipse配置SVN/TortoiseSVN

利用Eclipse install new software而链接为SVN - http://download.eclipse.org/releases/helios
选择collaboration->SVN team provider安装

安装好后,右击要checkin的proj->Team->Share project,选SVN




















配置URL和username以及密码即可


























或者用TortoiseSVN来访问,安装以后一定要重启,否则不会出现在右击菜单里



















点击SVN Checkout就会变成这样












如果用Tortoise checkin C#代码的时候,会看到很多dll,obj之类的文件,它们是unversioned(我们也并不想checkin它们)会跟新的CS文件(要checkin)混淆,导致会忘记checkin CS文件。我们可以通过配置Tortoise忽略某类型文件或者某个文件夹来解决。
我的添加为*/bin/* */obj/* *.suo *.user bin obj Debug _Resharper.*
















参考:
http://www.eclipse.org/subversive/documentation/gettingStarted/aboutSubversive/install.php