AWS/TIPS集
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
#topicpath
----
#contents
** CodeCommitへssh接続する [#ldacdf64]
[[CodeCommitへssh接続する>https://docs.aws.amazon.com/ja_...
- ssh-keygenでキーペア作って、秘密鍵は ~/.ssh/codecommit_...
- 公開鍵はIAMの画面でアップロード。SSHキーID をUser とし...
$ cat ~/.ssh/config
Host git-codecommit.*.amazonaws.com
User [SSHキーID]
IdentityFile ~/.ssh/codecommit_rsa
$ chmod 600 ~/.ssh/config
を作っておけばOK
疎通確認は以下
$ ssh git-codecommit.ap-northeast-1.amazonaws.com
You have successfully authenticated over SSH. You can us...
AWS CodeCommit. Interactive shells are not supported.Con...
Connection to git-codecommit.ap-northeast-1.amazonaws.co...
$
**それっぽいポンチ絵を描く [#l57e24a4]
-[[ネットワーク図作成に使えるアイコン集 - Qiita>https://q...
-[[Chromeでフローチャートやマインドマップを簡単に作図でき...
** Windows Server 2012の日本語化。 [#j53c0a32]
[[AWS上でwindows server 2012を立ち上げ多彩に日本語化して...
** 複数の設定を使い分けたい [#t12d3d83]
複数の設定を使い分けたい場合は、
$ aws configure --profile test01
などと --profile オプションをつけて環境設定をすると便利で...
$ aws --profile test01 ec2 describe-instance
と設定を使い分けることが出来ます。
$ aws configure --profile test01
.... 割愛
$ cat .aws/config
[profile test01]
output = json
region = ap-northeast-1
$ cat .aws/credentials
[test01]
aws_secret_access_key = J3fxxxxxxxxx
aws_access_key_id = AKIxxxxxxxx
設定が名前付きで保存されているのが分かると思います。
**S3で匿名ユーザにバケット全体をRead Onlyで公開する [#s15...
[[バケットポリシーの例 - Amazon Simple Storage Service>ht...
** BeanStalkで作ったTomcatのログへアクセス [#x1dab516]
# chmod 400 ~/.ssh/xxx.pem ←構築時これよく忘れちゃうか...
# ssh -i ~/.ssh/xxx.pem ec2-user@IPアドレス
$ cd /var/log/tomcat8/
$ tail -f catalina.out
** AWS Lambdaで、他のライブラリを使用したい場合 [#bf577609]
$ ls -lrt storeRailInfo.lambda
-rw-rw-r-- 1 pi pi 681 11月 12 22:48 main.py
このプログラム main.py が別のライブラリたとえば requests ...
$ pip install requests -t storeRailInfo.lambda
... 割愛
$ ls -lrt storeRailInfo.lambda
合計 896
-rw-rw-r-- 1 pi pi 681 11月 12 22:48 main.py
drwxr-xr-x 3 pi pi 4096 11月 12 22:52 requests
drwxr-xr-x 2 pi pi 4096 11月 12 22:52 requests-2.11.1....
おなじディレクトリに依存ライブラリが配置された
$ cd storeRailInfo.lambda
$ zip storeRailInfo.zip -r ./*
$ ls -lrt storeRailInfo.lambda
合計 896
-rw-rw-r-- 1 pi pi 681 11月 12 22:48 main.py
drwxr-xr-x 3 pi pi 4096 11月 12 22:52 requests
drwxr-xr-x 2 pi pi 4096 11月 12 22:52 requests-2.11.1....
-rw-r--r-- 1 pi pi 904856 11月 13 00:11 storeRailInfo.zip
zipファイルが作成できたので後はこれをアップすればよいです。
大事なのは、ディレクトリごとでなくて、中身を直接アーカイ...
Lambdaの設定で、Configuration >> Handler の箇所はアップし...
main.lambda_handler
としましょう。 main.py の、lambda_handlerメソッドをよぶと...
-[[AWS LambdaでPythonがサポートされたので試してみた - Qii...
-[[Lambdaでアップロードしたzipに対してハンドラーを指定す...
-[[cloudwatchlogs -> lambda -> SNSを試してみた - Qiita>ht...
----
この記事は
#vote(おもしろかった[3],そうでもない[0])
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}
終了行:
#topicpath
----
#contents
** CodeCommitへssh接続する [#ldacdf64]
[[CodeCommitへssh接続する>https://docs.aws.amazon.com/ja_...
- ssh-keygenでキーペア作って、秘密鍵は ~/.ssh/codecommit_...
- 公開鍵はIAMの画面でアップロード。SSHキーID をUser とし...
$ cat ~/.ssh/config
Host git-codecommit.*.amazonaws.com
User [SSHキーID]
IdentityFile ~/.ssh/codecommit_rsa
$ chmod 600 ~/.ssh/config
を作っておけばOK
疎通確認は以下
$ ssh git-codecommit.ap-northeast-1.amazonaws.com
You have successfully authenticated over SSH. You can us...
AWS CodeCommit. Interactive shells are not supported.Con...
Connection to git-codecommit.ap-northeast-1.amazonaws.co...
$
**それっぽいポンチ絵を描く [#l57e24a4]
-[[ネットワーク図作成に使えるアイコン集 - Qiita>https://q...
-[[Chromeでフローチャートやマインドマップを簡単に作図でき...
** Windows Server 2012の日本語化。 [#j53c0a32]
[[AWS上でwindows server 2012を立ち上げ多彩に日本語化して...
** 複数の設定を使い分けたい [#t12d3d83]
複数の設定を使い分けたい場合は、
$ aws configure --profile test01
などと --profile オプションをつけて環境設定をすると便利で...
$ aws --profile test01 ec2 describe-instance
と設定を使い分けることが出来ます。
$ aws configure --profile test01
.... 割愛
$ cat .aws/config
[profile test01]
output = json
region = ap-northeast-1
$ cat .aws/credentials
[test01]
aws_secret_access_key = J3fxxxxxxxxx
aws_access_key_id = AKIxxxxxxxx
設定が名前付きで保存されているのが分かると思います。
**S3で匿名ユーザにバケット全体をRead Onlyで公開する [#s15...
[[バケットポリシーの例 - Amazon Simple Storage Service>ht...
** BeanStalkで作ったTomcatのログへアクセス [#x1dab516]
# chmod 400 ~/.ssh/xxx.pem ←構築時これよく忘れちゃうか...
# ssh -i ~/.ssh/xxx.pem ec2-user@IPアドレス
$ cd /var/log/tomcat8/
$ tail -f catalina.out
** AWS Lambdaで、他のライブラリを使用したい場合 [#bf577609]
$ ls -lrt storeRailInfo.lambda
-rw-rw-r-- 1 pi pi 681 11月 12 22:48 main.py
このプログラム main.py が別のライブラリたとえば requests ...
$ pip install requests -t storeRailInfo.lambda
... 割愛
$ ls -lrt storeRailInfo.lambda
合計 896
-rw-rw-r-- 1 pi pi 681 11月 12 22:48 main.py
drwxr-xr-x 3 pi pi 4096 11月 12 22:52 requests
drwxr-xr-x 2 pi pi 4096 11月 12 22:52 requests-2.11.1....
おなじディレクトリに依存ライブラリが配置された
$ cd storeRailInfo.lambda
$ zip storeRailInfo.zip -r ./*
$ ls -lrt storeRailInfo.lambda
合計 896
-rw-rw-r-- 1 pi pi 681 11月 12 22:48 main.py
drwxr-xr-x 3 pi pi 4096 11月 12 22:52 requests
drwxr-xr-x 2 pi pi 4096 11月 12 22:52 requests-2.11.1....
-rw-r--r-- 1 pi pi 904856 11月 13 00:11 storeRailInfo.zip
zipファイルが作成できたので後はこれをアップすればよいです。
大事なのは、ディレクトリごとでなくて、中身を直接アーカイ...
Lambdaの設定で、Configuration >> Handler の箇所はアップし...
main.lambda_handler
としましょう。 main.py の、lambda_handlerメソッドをよぶと...
-[[AWS LambdaでPythonがサポートされたので試してみた - Qii...
-[[Lambdaでアップロードしたzipに対してハンドラーを指定す...
-[[cloudwatchlogs -> lambda -> SNSを試してみた - Qiita>ht...
----
この記事は
#vote(おもしろかった[3],そうでもない[0])
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}
ページ名: