Quantcast
Channel: ec2 - There's an echo in my head
Browsing latest articles
Browse All 3 View Live

Linuxでタイムゾーンの設定

EC2でAmazon Linuxのインスタンスを立ち上げると、デフォルトではタイムゾーンはUTCになっている。これを日本時間にするには次のようにする:root# cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime root# /etc/init.d/crond restartcrondも再起動しないとずれっぱなしなので要注意。参考Amazon...

View Article



ec2ssh 3.xでも2.xと同じフォーマットでHostを出力する

mirakui/ec2sshの2.x系ではHostの末尾がregionだったのに対して、3.x系ではAZに変わっていた。# 2.x Host tag-name.ap-northeast-1 HostName ec2-54-NNN-NNN-NNN.ap-northeast-1.compute.amazonaws.com # 3.x Host tag-name.ap-northeast-1a...

View Article

IAMでEC2を起動、停止できるカスタムポリシーを作る

ポリシージェネレータをいじったり手でいじったりして、特定のタグを持つインスタンスの起動、停止ができるカスタムポリシーを作った。// ※ 実際はJSONなのでコメントは記入できません{"Version": "2012-10-17", "Statement": [// EC2のインスタンスに対する状態の取得を許可する//...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images