Movatterモバイル変換


[0]ホーム

URL:


YS
Uploaded byYuta Shimada
710 views

OpsWorks aws-cli#11

JAWS-UG CLI#11 OpsWorks

Embed presentation

Download to read offline
© Copyright 2015, TDC Software Engineering Inc. All rights reserved. 1AWS-CLI OpsWorksを使ってみよう第 1 版AWS-UG CLI#11島田雄太
© Copyright 2015, TDC Software Engineering Inc. All rights reserved. 2はじめにやっていること:自社サービスのインフラ構築と運用今までいじったもの:<WEB>apache<AP> tomcat/Jboss<DB> postgresql/mysql<監視>nagios/sensu(挑戦中)<ネットワーク> FW/L3,L2スイッチ など好きなAWSサービス:route53AWS歴:一年ちょっと
© Copyright 2015, TDC Software Engineering Inc. All rights reserved. 3OpsWorksについてOpsWorks:アプリケーションを容易にデプロイ及び操作出来るツール。(Webサイトより)主な手順①スタックの作成②レイヤーの作成③Chefレシピの設定④インスタンスの作成⇒細かな説明は割愛します。スタックレイヤーレイヤーレイヤーLBWEB/APDB
© Copyright 2015, TDC Software Engineering Inc. All rights reserved. 4OpsWorksについて自分の考えるOpsWorksの使い方⇒時間や負荷によってアプリケーションサイズを変更出来る!⇒これを使って、EC2上で動かすバッチサーバを必要なときだけ起動・停止させて、コスト削減が出来ないか。⇒せっかく取り組んでいるCLIで実施しよう!
© Copyright 2015, TDC Software Engineering Inc. All rights reserved. 5やってみた①スタックの作成戻り値※OpsWorksのEndPointはus-east-1のみ$ aws opsworks --region us-east-1 create-stack ¥--name “TEST_Stack01" ¥--vpc-id "vpc-XXXXXXXX" ¥--service-role-arn "arn:aws:iam::XXXXXXXXXXXX:role/aws-opsworks-service-role" ¥--default-instance-profile-arn "arn:aws:iam::XXXXXXXXXXXX:instance-profile/aws-opsworks-ec2-role" ¥--default-os "Custom" ¥--hostname-theme "Clouds" ¥--default-availability-zone "ap-northeast-1c" ¥--default-subnet-id "subnet-xxxxxxxx" ¥--configuration-manager "Name=Chef,Version=11.10" ¥--chef-configuration "ManageBerkshelf=false,BerkshelfVersion=3.1.3" ¥--stack-region "ap-northeast-1" ¥--default-ssh-key-name “test_key"戻り値{"StackId": “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}
© Copyright 2015, TDC Software Engineering Inc. All rights reserved. 6やってみた②レイヤーの作成$ cat << EOT >> custom-recipe.json{"Setup": ["opsworks_initial_setup","ssh_host_keys","ssh_users","mysql::client","dependencies","ebs"],"Configure": ["ssh_users","mysql::client","agent_version"],"Deploy": ["deploy::default"],"Undeploy": [],"Shutdown": ["opsworks_shutdown::default"]}EOT$ aws opsworks --region us-east-1 create-layer ¥--stack-id " xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx " ¥--type "custom" ¥--name “TEST Layer01" ¥--shortname “test-layer" ¥--enable-auto-healing ¥--auto-assign-elastic-ips ¥--no-auto-assign-public-ips ¥--custom-recipes file://./custom-recipe.json ¥--install-updates-on-boot
© Copyright 2015, TDC Software Engineering Inc. All rights reserved. 7やってみた戻り値{"LayerId": “yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"}
© Copyright 2015, TDC Software Engineering Inc. All rights reserved. 8やってみた③インスタンスの作成戻り値$ aws opsworks --region us-east-1 create-instance ¥--stack-id " xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx " ¥--layer-ids “yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy " ¥--instance-type "t2.micro" ¥--auto-scaling-type "timer" ¥--subnet-id "subnet-xxxxxxxx" ¥--availability-zone "ap-northeast-1c" ¥--virtualization-type "hvm" ¥--os "Custom" ¥--ami-id "ami-zzzzzzzz" ¥--architecture "x86_64"{"InstanceId": “zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz"}
© Copyright 2015, TDC Software Engineering Inc. All rights reserved. 9やってみた④タイマー用のjsonファイル作成$ cat << EOT >> time-base.json{"Sunday": {"5": "off"},"Monday": {"5": "off"},"Tuesday": {"5": "off"},"Wednesday": {"5": "off"},"Thursday": {"5": "off"},"Friday": {"8": "on",“9": "off"},"Saturday": {"5": "off"}}EOT
© Copyright 2015, TDC Software Engineering Inc. All rights reserved. 10やってみた⑤タイマーの設定をインスタンスに割り当てる戻り値$ aws opsworks --region us-east-1 set-time-based-auto-scaling ¥--instance-id " zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz " ¥--auto-scaling-schedule file://./time-base.json戻り値なし
© Copyright 2015, TDC Software Engineering Inc. All rights reserved. 11以上になります。ご清聴ありがとうございました!

Recommended

PPTX
LINEのMySQL運用について 修正版
PPT
Hatena's Infrastructure from the beginning
PDF
LINEのMySQL運用について
PDF
コンテナにおけるパフォーマンス調査でハマった話
PPTX
Azure サポート エンジニア直伝 ~ PowerShell 実践活用術 ~
PDF
知っておくべきCephのIOアクセラレーション技術とその活用方法 - OpenStack最新情報セミナー 2015年9月
PDF
松本克彦 ピグにおけるリアルタイムランキングの導入
PDF
Rubyによるお手軽分散処理
PDF
今日から使えるCouchbaseシステムアーキテクチャデザインパターン集
PDF
これから始めるAzure Kubernetes Service入門
PDF
[db tech showcase Tokyo 2014] C34:[楽天] 詳説 楽天のデータベースアーキテクチャ史 -シングルノードから仮想化フラッシ...
PDF
[db tech showcase Tokyo 2015] C27:楽天MySQL Backup Structure by 楽天株式会社 粟田啓介
PPTX
VMware on IBM CloudのためのVM移行/リストアとセキュリティ対策手法
PPT
20170329 D3 DBAが夜間メンテをしなくなった日 発表資料
PDF
第6回 ZABBIX-JP勉強会
PPT
アメーバピグにおける自作サーバ運用
PPTX
Persistence on Azure - Microsoft Azure の永続化
PDF
[db tech showcase Tokyo 2015] A32:Amazon Redshift Deep Dive by アマゾン データ サービス ...
PPTX
Microsoft azure
PDF
AzureでOracle
PDF
S10 日本東西リージョンでのディザスタ リカバリ環境の実現
PPTX
ふりかえり Windows Azure
PPTX
クラウドデザイン パターンに見る クラウドファーストな アプリケーション設計 Data Management編
PDF
Couchbase introduction-20150611
PDF
VisualStudio2010ReadyDay Azureセッション資料
PDF
Monitoring Intelligence
PDF
Rds徹底入門
PPTX
Sql azureデータバックアップ方法
PPTX
Wound healing
PPTX
Ni ti alloy

More Related Content

PPTX
LINEのMySQL運用について 修正版
PPT
Hatena's Infrastructure from the beginning
PDF
LINEのMySQL運用について
PDF
コンテナにおけるパフォーマンス調査でハマった話
PPTX
Azure サポート エンジニア直伝 ~ PowerShell 実践活用術 ~
PDF
知っておくべきCephのIOアクセラレーション技術とその活用方法 - OpenStack最新情報セミナー 2015年9月
PDF
松本克彦 ピグにおけるリアルタイムランキングの導入
PDF
Rubyによるお手軽分散処理
LINEのMySQL運用について 修正版
Hatena's Infrastructure from the beginning
LINEのMySQL運用について
コンテナにおけるパフォーマンス調査でハマった話
Azure サポート エンジニア直伝 ~ PowerShell 実践活用術 ~
知っておくべきCephのIOアクセラレーション技術とその活用方法 - OpenStack最新情報セミナー 2015年9月
松本克彦 ピグにおけるリアルタイムランキングの導入
Rubyによるお手軽分散処理

What's hot

PDF
今日から使えるCouchbaseシステムアーキテクチャデザインパターン集
PDF
これから始めるAzure Kubernetes Service入門
PDF
[db tech showcase Tokyo 2014] C34:[楽天] 詳説 楽天のデータベースアーキテクチャ史 -シングルノードから仮想化フラッシ...
PDF
[db tech showcase Tokyo 2015] C27:楽天MySQL Backup Structure by 楽天株式会社 粟田啓介
PPTX
VMware on IBM CloudのためのVM移行/リストアとセキュリティ対策手法
PPT
20170329 D3 DBAが夜間メンテをしなくなった日 発表資料
PDF
第6回 ZABBIX-JP勉強会
PPT
アメーバピグにおける自作サーバ運用
PPTX
Persistence on Azure - Microsoft Azure の永続化
PDF
[db tech showcase Tokyo 2015] A32:Amazon Redshift Deep Dive by アマゾン データ サービス ...
PPTX
Microsoft azure
PDF
AzureでOracle
PDF
S10 日本東西リージョンでのディザスタ リカバリ環境の実現
PPTX
ふりかえり Windows Azure
PPTX
クラウドデザイン パターンに見る クラウドファーストな アプリケーション設計 Data Management編
PDF
Couchbase introduction-20150611
PDF
VisualStudio2010ReadyDay Azureセッション資料
PDF
Monitoring Intelligence
PDF
Rds徹底入門
PPTX
Sql azureデータバックアップ方法
今日から使えるCouchbaseシステムアーキテクチャデザインパターン集
これから始めるAzure Kubernetes Service入門
[db tech showcase Tokyo 2014] C34:[楽天] 詳説 楽天のデータベースアーキテクチャ史 -シングルノードから仮想化フラッシ...
[db tech showcase Tokyo 2015] C27:楽天MySQL Backup Structure by 楽天株式会社 粟田啓介
VMware on IBM CloudのためのVM移行/リストアとセキュリティ対策手法
20170329 D3 DBAが夜間メンテをしなくなった日 発表資料
第6回 ZABBIX-JP勉強会
アメーバピグにおける自作サーバ運用
Persistence on Azure - Microsoft Azure の永続化
[db tech showcase Tokyo 2015] A32:Amazon Redshift Deep Dive by アマゾン データ サービス ...
Microsoft azure
AzureでOracle
S10 日本東西リージョンでのディザスタ リカバリ環境の実現
ふりかえり Windows Azure
クラウドデザイン パターンに見る クラウドファーストな アプリケーション設計 Data Management編
Couchbase introduction-20150611
VisualStudio2010ReadyDay Azureセッション資料
Monitoring Intelligence
Rds徹底入門
Sql azureデータバックアップ方法

Viewers also liked

PPTX
Wound healing
PPTX
Ni ti alloy
PPTX
Pulpal pahology
PDF
ENGAGE2015: How is EMC Transforming Employee Communications? - Kevin Close, EMC
PPTX
ENGAGE2014 East: Leveraging Latest Trends to Influence Communication Strategy...
PDF
ENGAGE2014: All it Takes is One Post: Social Media Etiquette Training - Joe L...
PDF
ENGAGE2014: The Future of Employee Communications - Keith Kitani, GuideSpark
PDF
ENAGE2014: The Art of Engaging Millennials - Lee McEnany Caraher, DoubleForte
PPTX
Wound healing
Ni ti alloy
Pulpal pahology
ENGAGE2015: How is EMC Transforming Employee Communications? - Kevin Close, EMC
ENGAGE2014 East: Leveraging Latest Trends to Influence Communication Strategy...
ENGAGE2014: All it Takes is One Post: Social Media Etiquette Training - Joe L...
ENGAGE2014: The Future of Employee Communications - Keith Kitani, GuideSpark
ENAGE2014: The Art of Engaging Millennials - Lee McEnany Caraher, DoubleForte

Similar to OpsWorks aws-cli#11

PPTX
同じサービスを ECSとOpsWorksで 運用してみた
PDF
AWS Black Belt Tech シリーズ 2015 - AWS OpsWorks
PDF
AWS Black Belt Techシリーズ AWS Command Line Interface
PDF
JAWSUG初心者向けトラック 【Deploy&Ops】
PDF
AWS運用自動化への第一歩 
PDF
AWS OpsWorksハンズオン
PDF
オンプレを少しずつコンテナ化する
PDF
AWS Black Belt Online Seminar 2017 AWS OpsWorks
PDF
[AWSマイスターシリーズ] AWS OpsWorks
PDF
aws_opsworks
PDF
AWS サービスアップデートまとめ 2013年9月
PDF
AWS OpsWorksのご紹介
PDF
よくわかるAWS OpsWorks: AWS OpsWorksの概要&アップデート紹介
PDF
JAWS DAYS 2015 AWS OpsWorksの仕組みと活用方法のご紹介
PDF
Chef(Server)と AWS OpsWorks(tm)の比較
PPTX
サバカン屋のサバ缶はre:Inventで通用したのか&すぐに使える!最新運用ネタ #re:Port2016
PDF
3分でわかる(気になれる) AWS OpsWorks
PDF
opsworks本番前提でopsworksを使わないで開発する話 at #jawsug #chibadan
PDF
Aws OpsWorks [JAWSDAYS 2014 ACEに聞けトラック]
PDF
AWS CLI Conference 2016
同じサービスを ECSとOpsWorksで 運用してみた
AWS Black Belt Tech シリーズ 2015 - AWS OpsWorks
AWS Black Belt Techシリーズ AWS Command Line Interface
JAWSUG初心者向けトラック 【Deploy&Ops】
AWS運用自動化への第一歩 
AWS OpsWorksハンズオン
オンプレを少しずつコンテナ化する
AWS Black Belt Online Seminar 2017 AWS OpsWorks
[AWSマイスターシリーズ] AWS OpsWorks
aws_opsworks
AWS サービスアップデートまとめ 2013年9月
AWS OpsWorksのご紹介
よくわかるAWS OpsWorks: AWS OpsWorksの概要&アップデート紹介
JAWS DAYS 2015 AWS OpsWorksの仕組みと活用方法のご紹介
Chef(Server)と AWS OpsWorks(tm)の比較
サバカン屋のサバ缶はre:Inventで通用したのか&すぐに使える!最新運用ネタ #re:Port2016
3分でわかる(気になれる) AWS OpsWorks
opsworks本番前提でopsworksを使わないで開発する話 at #jawsug #chibadan
Aws OpsWorks [JAWSDAYS 2014 ACEに聞けトラック]
AWS CLI Conference 2016

OpsWorks aws-cli#11

  • 1.
    © Copyright 2015,TDC Software Engineering Inc. All rights reserved. 1AWS-CLI OpsWorksを使ってみよう第 1 版AWS-UG CLI#11島田雄太
  • 2.
    © Copyright 2015,TDC Software Engineering Inc. All rights reserved. 2はじめにやっていること:自社サービスのインフラ構築と運用今までいじったもの:<WEB>apache<AP> tomcat/Jboss<DB> postgresql/mysql<監視>nagios/sensu(挑戦中)<ネットワーク> FW/L3,L2スイッチ など好きなAWSサービス:route53AWS歴:一年ちょっと
  • 3.
    © Copyright 2015,TDC Software Engineering Inc. All rights reserved. 3OpsWorksについてOpsWorks:アプリケーションを容易にデプロイ及び操作出来るツール。(Webサイトより)主な手順①スタックの作成②レイヤーの作成③Chefレシピの設定④インスタンスの作成⇒細かな説明は割愛します。スタックレイヤーレイヤーレイヤーLBWEB/APDB
  • 4.
    © Copyright 2015,TDC Software Engineering Inc. All rights reserved. 4OpsWorksについて自分の考えるOpsWorksの使い方⇒時間や負荷によってアプリケーションサイズを変更出来る!⇒これを使って、EC2上で動かすバッチサーバを必要なときだけ起動・停止させて、コスト削減が出来ないか。⇒せっかく取り組んでいるCLIで実施しよう!
  • 5.
    © Copyright 2015,TDC Software Engineering Inc. All rights reserved. 5やってみた①スタックの作成戻り値※OpsWorksのEndPointはus-east-1のみ$ aws opsworks --region us-east-1 create-stack ¥--name “TEST_Stack01" ¥--vpc-id "vpc-XXXXXXXX" ¥--service-role-arn "arn:aws:iam::XXXXXXXXXXXX:role/aws-opsworks-service-role" ¥--default-instance-profile-arn "arn:aws:iam::XXXXXXXXXXXX:instance-profile/aws-opsworks-ec2-role" ¥--default-os "Custom" ¥--hostname-theme "Clouds" ¥--default-availability-zone "ap-northeast-1c" ¥--default-subnet-id "subnet-xxxxxxxx" ¥--configuration-manager "Name=Chef,Version=11.10" ¥--chef-configuration "ManageBerkshelf=false,BerkshelfVersion=3.1.3" ¥--stack-region "ap-northeast-1" ¥--default-ssh-key-name “test_key"戻り値{"StackId": “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}
  • 6.
    © Copyright 2015,TDC Software Engineering Inc. All rights reserved. 6やってみた②レイヤーの作成$ cat << EOT >> custom-recipe.json{"Setup": ["opsworks_initial_setup","ssh_host_keys","ssh_users","mysql::client","dependencies","ebs"],"Configure": ["ssh_users","mysql::client","agent_version"],"Deploy": ["deploy::default"],"Undeploy": [],"Shutdown": ["opsworks_shutdown::default"]}EOT$ aws opsworks --region us-east-1 create-layer ¥--stack-id " xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx " ¥--type "custom" ¥--name “TEST Layer01" ¥--shortname “test-layer" ¥--enable-auto-healing ¥--auto-assign-elastic-ips ¥--no-auto-assign-public-ips ¥--custom-recipes file://./custom-recipe.json ¥--install-updates-on-boot
  • 7.
    © Copyright 2015,TDC Software Engineering Inc. All rights reserved. 7やってみた戻り値{"LayerId": “yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"}
  • 8.
    © Copyright 2015,TDC Software Engineering Inc. All rights reserved. 8やってみた③インスタンスの作成戻り値$ aws opsworks --region us-east-1 create-instance ¥--stack-id " xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx " ¥--layer-ids “yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy " ¥--instance-type "t2.micro" ¥--auto-scaling-type "timer" ¥--subnet-id "subnet-xxxxxxxx" ¥--availability-zone "ap-northeast-1c" ¥--virtualization-type "hvm" ¥--os "Custom" ¥--ami-id "ami-zzzzzzzz" ¥--architecture "x86_64"{"InstanceId": “zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz"}
  • 9.
    © Copyright 2015,TDC Software Engineering Inc. All rights reserved. 9やってみた④タイマー用のjsonファイル作成$ cat << EOT >> time-base.json{"Sunday": {"5": "off"},"Monday": {"5": "off"},"Tuesday": {"5": "off"},"Wednesday": {"5": "off"},"Thursday": {"5": "off"},"Friday": {"8": "on",“9": "off"},"Saturday": {"5": "off"}}EOT
  • 10.
    © Copyright 2015,TDC Software Engineering Inc. All rights reserved. 10やってみた⑤タイマーの設定をインスタンスに割り当てる戻り値$ aws opsworks --region us-east-1 set-time-based-auto-scaling ¥--instance-id " zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz " ¥--auto-scaling-schedule file://./time-base.json戻り値なし
  • 11.
    © Copyright 2015,TDC Software Engineering Inc. All rights reserved. 11以上になります。ご清聴ありがとうございました!

[8]ページ先頭

©2009-2025 Movatter.jp