Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Terraform Provider Mackerelで AWS Integration設定を...
Search
Gompei
September 30, 2021
0
66
Terraform Provider Mackerelで AWS Integration設定を自動化する
Gompei
September 30, 2021
Tweet
Share
Featured
See All Featured
A Modern Web Designer's Workflow
chriscoyier
698
190k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2k
Designing for Performance
lara
610
69k
Reflections from 52 weeks, 52 projects
jeffersonlam
355
21k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
410
Bash Introduction
62gerente
615
210k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.6k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
32
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
Done Done
chrislema
186
16k
Practical Orchestrator
shlominoach
190
11k
Making Projects Easy
brettharned
120
6.5k
Transcript
Terraform Provider Mackerelで AWS Integration設定を自動化する Gompei 2021-09-17 NINNO Tech Fest
#1 1
自己紹介 • 権瓶 昇栄(ごんぺい しょうえい) • ソフトウェア開発・インフラ(仮)エンジニア • Golang /
AWS 2 Gompei
Mackerel のAWSインテグレーション設定を 自動化(コード管理)してみる 3 今回のテーマ
前提知識: Mackerelとはなんぞや? 4 "クラウド時代に最適な監視モデルを使いやすいUIで提供し、システムの運用・ 監視にチームで取り組む文化を作る「クラウド運用の道標」となるSaaS型サー バー監視サービス。" Mackerel公式サイト引用: https://ja.mackerel.io/
5 前提知識: Terraformとはなんぞや? "Terraformは、何百ものクラウドサービスを管理するための一貫したCLIワーク フローを提供するコードソフトウェアツールとしてのオープンソースインフラストラ クチャです。Terraformは、クラウドAPIを宣言型の構成ファイルに体系化します。 (Google翻訳)" Terraform公式サイト引用: https://www.terraform.io/
6 前提知識: AWSとはなんぞや? "アマゾン ウェブ サービス (AWS) は、世界で最も包括的で広く採用されているクラ ウドプラットフォームです。世界中のデータセンターから 200
以上のフル機能の サービスを提供しています。急成長しているスタートアップ、大企業、主要な政府機 関など、何百万ものお客様が AWS を使用してコストを削減し、俊敏性を高め、イノ ベーションを加速させています。 " AWS公式サイト引用: https://aws.amazon.com/jp/what-is-aws/
7 本題
8 自動化はお好きですか?
9 2021年8月3日 MackerelがTerraform providerを公開しました❗ 朗報❗
10 しかし... AWSインテグレーション設定箇所は未実装😭
11 • でもMackerel公式APIドキュメントでは、AWSインテグレーション 設定エンドポイントは公開されている... • Terraform はgolangで実装されている... (custom provider もgolangで実装しなければならない)
12 実装しよう❗
• mackerel-client-go (PR: implement aws-integrations APIs #126) • terraform-provider-mackerel (PR:
implement aws-integrations #66) 13 実装内容
DEMO 14
内容 • AWS インテグレーション外部ID作成 • Mackerel用 AWS IAMロール作成 • AWSインテグレーション設定作成
15
構成図 16
まとめ 17 • 自動化を諦めない姿勢が大事 • PRマージ後、興味がある方は実際に試して頂 けると幸いです😁