aws

1-Jetson Nano Developer KitでAWS IoT Greengrassを動かしてみる

安稳与你 提交于 2019-12-05 01:06:04
https://qiita.com/sparkgene/items/2757f35bbae0186cced7 NvidiaのJetson Nanoを手に入れたので、AWS IoT Greengrassが使えるか実際に試してみました。 Jetson Nanoのセットアップは Getting Started With Jetson Nano Developer Kit を参考にしましたが、SDカードにイメージを焼いて、起動するだけで、特にハマることなくあっさりと動きます。 アーキテクチャを確認してみると aarch64 だというのが確認できます。 $ uname -a Linux nvidia-desktop 4.9.140-tegra #1 SMP PREEMPT Wed Mar 13 00:32:22 PDT 2019 aarch64 aarch64 aarch64 GNU/Linux ここから、Greengrassのセットアップを進めていきます。 基本的な手順は、 AWS IoT Greengrass の使用開始 を参考に進めます。 1.Greengrassが動かせる環境かを確認 Greengrassを動かす際に、対象のデバイスが要件を満たしているかを調べるスクリプトが有るので、それを使って確認します。 ここからは、Jetson NanoにSSHして、ターミナルで操作して行きます

3-Jetson Nano Developer KitでAWS IoT GreengrassのML Inferenceを試す(GPU編)

ⅰ亾dé卋堺 提交于 2019-12-05 01:05:47
https://qiita.com/sparkgene/items/2562045dee93e6f3826b 前回の記事では、Jetson Nano上でAWS IoT GreengrassのML Inferenceを試しました。 Jetson Nano Developer KitでAWS IoT GreengrassのML Inferenceを試す ただし、前回はCPUを利用した推論が行われていました。今回は、GPUを使った推論を実行するための方法について紹介します。(この記事は前回の記事の環境ができている前提での設定となります) MXNetをソースコードからビルド apt-getを利用した方法だと、CUDA9向けのMXNetがインストールされるため、JetsonNanoのGPUを使いたい時に動きません。(JetsonNanoだとCUDA10の為) そこで、同じスレッドで紹介されている通り、ソースコードからのビルドが必要になります。 I was unable to compile and install MXNET on the jetson nano,Is there an official installation tutorial? 細かいコマンドは、このスレッドに書かれている内容(1. Allocate swap 〜 4. Install MXNet

2-Jetson Nano Developer KitでAWS IoT GreengrassのML Inferenceを試す

痴心易碎 提交于 2019-12-05 01:05:37
https://qiita.com/sparkgene/items/425d310c1d6c9158f896 前回の記事では、Jetson Nano上でAWS IoT Greengrassを動かしました。 Jetson Nano Developer KitでAWS IoT Greengrassを動かしてみる 今回は、Jetson Nano上でMLの推論を試してみます。 Greengrassは事前に生成したMLのモデルを使って推論を実行する事が可能です。 AWS IoT Greengrass ML Inference 推論で使うモデルが必要になるので、今回はこちらの「 AWS マネジメントコンソール を使用して Machine Learning Inference を設定する方法 」を参考にしながら作業を進めます。 MXNetのインストール AWSのドキュメントではJetson TX2向けの手順やライブラリが有るのですが、Jetson NanoはCUDA10の為、そのまま使えません。 で、ソースからインストールやら色々ハマった結果、公式のフォーラムで解決策が提供されていたので、それを参考にインストールしました。 I was unable to compile and install MXNET on the jetson nano,Is there an official

使用SSH连接AWS服务器

限于喜欢 提交于 2019-12-04 01:29:45
使用SSH连接AWS服务器 一直有一台AWS云主机,但是之前在Windows平台都是使用Xshell连接的,换到Ubuntu环境之后还没有试,昨天试了一下,终于使用SSH连接成功了,这里记录一下步骤: 创建一个密钥对,保存私钥到本地 创建一个实例,使用我们保存的密钥对。这里我选择的是ubuntu实例 将私钥保存到本地的一个合适的文件夹里面,然后在那里打开终端。输入'chmod 400 ./',这一步是设置用户对这个文件的权限,chmod 400代表这该文件只能被本用户读,不可写、不可被其他用户读(这个网站可以帮助我们设置和解读chmod的参数:https://chmodcommand.com/chmod-400/),这一步是为了保护秘钥,连接AWS的时候如果没有设置这一步会显示连接错误 使用ssh进行连接:`ssh -i ./ ubuntu@ 这样就完成了连接 我们还可以使用scp命令进行文件的传输。scp 是 secure copy 的缩写, scp 是 linux 系统下基于 ssh 登陆进行安全的远程文件拷贝命令。它是rcp命令的加密版。关于scp的指令可以看这个:https://www.runoob.com/linux/linux-comm-scp.html 每次连接都输入ssh指令太麻烦了,可以为指令取别名写入./bashrc中,具体看:https://www

Why do I get 403 forbidden error while posting a json to elasticsearch endpoint on AWS?

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am posting a json to AWS elasticsearch,using a java lambda function. public Object handleRequest(DynamodbEvent dynamodbEvent, Context context) { //code to general the json document AmazonDynamoDBClient amazonDynamoDBClient = new AmazonDynamoDBClient(); List<DynamodbEvent.DynamodbStreamRecord> dynamodbStreamRecordlist = dynamodbEvent.getRecords(); if (!dynamodbStreamRecordlist.isEmpty()) { DynamodbEvent.DynamodbStreamRecord record = dynamodbStreamRecordlist.get(0); if(record.getEventSource().equalsIgnoreCase("aws:dynamodb")) tableName =

Download AWS S3 file from EC2 instance

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've a script to download file from AWS S3 and it works from a separate server outside of AWS. But when I put this script on an EC2 instance and tried it then it returns error "SignatureDoesNotMatch - The request signature we calculated does not match the signature you provided. Check your key and signing method." But it works on the other server. The ec2 is on the same region as the s3 host. I'm guessing it has something to do with the host. I tried these host/url but it returns the same error. Anyone able to download s3 files from ec2 with

AWS signed URL too long to shorten

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am creating a signed URL with AWS so I can safely pass this URL to another API for temporary use. The signed URL points to a S3 resource. The problem is the other API does not accept such long links. Therefore I am trying to shorten it. I tried to use shorteners like goo.gl or bit.ly to no avail because the URL was too long for them. I even built my own private shortener with AWS ( AWS url shortener ) but it had the same problem: "The length of website redirect location cannot exceed 2,048 characters.". I am creating the signed URLs in iOS

AWS EC2 Key Pair setup

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to setup my AWS EC2 Instance with a Key Pair that I just created. The original instance was already setup without a key pair, so I'm trying to Launch a new Instance and set the Key Pair during that process. AWS docs instruct to "Specify the new key pair that you created" after I select the AMI, but I do not see anywhere that I can do this during the creation process. So, either I'm really clueless or something is not showing up correctly in the AWS creation steps (probably the former). Instance: t1.micro AMI: Amazon Linux AMI 2013

Django-Compressor throws UncompressableFileError with django-storages using amazonaws and heroku

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am having problem to locate the issue of the problem. I have settings folder and inside I have local.py, common.py and production.py. All is working great and it is compressing on localhost, but not on heroku. When I deploy it I am getting error: Internal Server Error: / UncompressableFileError at / 'https://xxxxx.s3.amazonaws.com/static/css/stylesheet.css' isn't accessible via COMPRESS_URL ('//xxxxx.s3.amazonaws.com/static/') and can't be compressed common.py # STATIC FILE CONFIGURATION # --------------------------------------------------

Unable to upload application to Amazon S3

匿名 (未验证) 提交于 2019-12-03 09:14:57
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Using Eclipse, latest version, latest Java AWS SDK I can suddenly no longer deploy to elasticbeanstalk (neither "Run on Server" nor AWS/Deploy to AWS Elastic Beanstalk). I can export a war file and upload via beanstalk web console w/o problems. It used to work for months and I didn't change anything, credentials are ok. The error message I get is: Unable to upload application to Amazon S3: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: xxx)