11. 11AMI ID
AWSが管理するパブリックなパラメータ
• 以下のOSの最新AMIのIDを取得可能(たぶん)
• Windows Server
• https://dev.classmethod.jp/cloud/aws/latest-windows-ami-from-parameter-
store/
• Amazon Linux
• ECS-Optimized AMI (Amazon Linux)
• https://dev.classmethod.jp/cloud/aws/latest-ecs-optimized-ami-id-public-
parameter-store/
35. 35Amazon Elastic Container Service
タスク定義に設定するコマンド内や任意のタイミングで取得
権限はIAM Role(タスクロール)経由で付与
参考情報
Managing Secrets for Amazon ECS Applications Using
Parameter Store and IAM Roles for Tasks
https://aws.amazon.com/jp/blogs/compute/managing-secrets-for-
amazon-ecs-applications-using-parameter-store-and-iam-roles-for-
tasks/
36. 36Amazon Elastic Container Service
環境変数としてパラメーターストアを指定可能
権限はIAM Role(タスクロール)経由で付与
参考情報
AWS Launches Secrets Support for Amazon Elastic Container Service
https://aws.amazon.com/jp/about-aws/whats-new/2018/11/aws-launches-
secrets-support-for-amazon-elastic-container-servic/
AWS Systems Manager パラメータストア パラメータを参照するタスク定
義の作成
https://docs.aws.amazon.com/ja_jp/AmazonECS/latest/developerguide/specifyi
ng-sensitive-data.html#secrets-create-taskdefinition
New