node.js - AWS 有没有办法隐藏我的nodejs 代码,同时向我的客户公开与访问和存储相关的账单信息

标签 node.js amazon-web-services amazon-ec2 billing

我面临的情况是,我需要根据客户提供的数据进行一些计算,将结果存储在某处,并通过 API 提供结果。为此,我制作了一个 NodeJS 应用程序,可以将数据存储在 NoSQL DB 中。

我的问题是,我希望客户在没有看到源代码的情况下支付所有费用。我不需要为自己赚钱,只需要让客户在看不到我的计算的情况下付账即可。

为此,我正在考虑 AWS。我可以启动一个 EC2 实例,在其上运行 NodeJS 代码并将所有数据存储在 RDS、S3 等中。从这一点来看,我有两种可能性:

  1. 我为 AWS 账户付款(即输入我的信用卡详细信息),并向客户收回账单;或

  2. 我要求客户创建一个 AWS 帐户,并授予我某种访问权限,以便我可以在 EC2 等上下载我的代码

对于选项 1,问题是

Is there a way in AWS (IAM user etc) such that a customer can login to the AWS console, view the billing and usage information, but cannot logon to EC2 and see the Node source code

对于选项 2,

Is it even possible that the owner of the account doesnt get to see the source-code on their EC2 instance

请指教

最佳答案

是的,亚马逊有一个关于这一点的教程: https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_billing.html

我建议从这里开始,然后在这里提出其他问题,我们可以尽力帮助您。

关于node.js - AWS 有没有办法隐藏我的nodejs 代码,同时向我的客户公开与访问和存储相关的账单信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58654084/

相关文章:

node.js - 无法安装derbyjs : "No compatible version found"

node.js - Nodejitsu + HTTPS

javascript - Mongoose 中未处理的PromiseRejection警告

javascript - else if 的多个条件的正确代码

amazon-ec2 - Windows EC2 用户数据脚本未按预期工作

hadoop - 从 s3 ://to local file system 复制文件

python - 使用 boto3 时 S3 连接超时

amazon-web-services - 应用程序负载均衡器 (ELBv2) SSL 直通

amazon-web-services - 来自不同 AWS 账户的 EC2 之间的区域数据传输费用

amazon-web-services - 我的工作线程层返回 400 错误,CloudWatch 错误?