SSMによるリソースデータハンズオン

# ハンズオン教材
https://catalog.us-east-1.prod.workshops.aws/workshops/b97f7cb6-0ec4-41c7-97ea-c4156f4f1e0d/ja-JP/phase6/04

上記教材の内容でSSMについて改めて触れてみたいと思う。内容としてはSSMによるサーバのソフトウェア情報が可視化のハンズオンとなっている。
QuickSightはサンドボックスのサービス制限の関係上、割愛とする。

# 内容
## IAMロール作成
対象のインスタンスをSystems Manager APIにアクセスできるようにIAMロールを設定する。
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/3cb85ddd-4c4f-3ffe-99ca-920e0c35906f.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/8c069352-e83c-ca61-f948-a9bdf3d8d26a.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/aa4af716-e4c7-9976-aa26-3d21346cebcd.png)
## EC2インスタンス作成
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/a42f1dcc-5006-54b0-0393-b3c7223fd98a.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/71374159-6fbe-9ab2-40f1-bc38937d26ad.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/6d3533e3-c2cc-5cd6-7304-731cfcb10bda.png)

![ダウンロード.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/643b49de-dbaf-9dcc-2258-773163d32992.png)

![Screenshot at Sep 19 22-34-52.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/8593910c-107a-9b1d-ec1d-4b88921022d1.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/161076b3-fe4e-7ecf-fffc-eb10c78d5da6.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/41f33e01-4cad-2aa9-a96b-e317ba97327b.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/be547009-8e9e-27db-d621-86863a257e4d.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/6dffa52f-3f1d-da98-6823-72c16a68a277.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/f07d00bc-a9f7-325b-1d07-5715d4b3b1ea.png)

![Screenshot at Sep 19 22-40-10.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/27c8113e-4e07-f84d-2c86-68112e3be749.png)

## インベントリの有効化
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/fff957c1-7621-72f9-504b-304d276efbda.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/da76204d-48be-56fd-22e5-606bcbeddfe0.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/c4ffeab2-08a0-2f09-966e-e1bacfe0615c.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/05e851d3-7e92-6756-c2ed-484acd304cfd.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/5ba4e03a-8319-710c-6e44-feeecffc2c9a.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/f0a4b434-0e2c-892d-98b9-03bce7f6250f.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/30ecbb12-2358-04d3-4ad2-937655214aba.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/05194db3-af03-b8c6-63a6-20a5c882e0a9.png)

![Screenshot at Sep 19 22-50-11.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/ae69bb7d-a4a8-72e5-9f65-080670c4f7e6.png)

![Screenshot at Sep 19 22-52-36.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/37aea41f-2f13-39f0-ed26-2423089095a2.png)
インベントリタイプで収集しているデータを確認することが可能になる。
![Screenshot at Sep 19 22-54-02.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/d3b7de01-fe16-db70-8d72-09d388542bd9.png)
## リソースデータの同期
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/db8b7c93-7a2d-1357-69f6-41195761cde9.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/57887634-6c64-b4c2-8cb3-c5f7a985e100.png)

![Screenshot at Sep 19 23-00-15.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/1f125df8-00fa-43f3-697f-f287f9540796.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/fa97f03d-210f-4b88-01e8-b9bd43a1d66f.png)
最初はリソースデータが画面が現れないが、クリックをすると同期できるリソースデータが出現する。
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/c34edcea-442c-17ee-dbf6-6689525ab592.png)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/8ebf76b0-8bfb-69c3-7961-8fe59c798358.png)

https://aws.amazon.com/jp/glue/?whats-new-cards.sort-by=item.additionalFields.postDateTime&whats-new-cards.sort-order=desc

AWS GlueはAWS SAA,SOAではあまり選択肢の答えとして出ないためよく知らないサービスであったが、データ分析サービスのようで、このサービスで`aws_`が出ていることが確認できる。
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/449478/ab2e1114-a497-b268-b9d3-4b765c0d05d2.png)