翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。
SNS を使用した AMS AMI 通知
AMS は AMI 通知サービスを提供します。これを使用して、AMS AMI の更新がリリースされたときに通知する Amazon Simple Notification Service (SNS) トピックをサブスクライブできます。使用する AMS AMIs のみの通知を受信するか、サインアップしてすべての AMS AMIs の更新通知を受信するかを選択できます。SNS トピックの詳細については、「Amazon Simple Notification Service とは」を参照してください。
AMIs がリリースされるたびに、対応するトピックのサブスクライバーに通知が送信されます。このセクションでは、AMS AMI 通知をサブスクライブする方法について説明します。
サンプルメッセージ
{ "Type" : "Notification", "MessageId" : "example messageId", "TopicArn" : "arn:aws:sns:us-east-1:591688410472:customer-ams-windows2019", "Subject" : "New AMS AMIs are Now Available", "Message" : "{"v1": {"Message": "A new version of the AMS Amazon Machine Images has been released. You are now able to launch new EC2 stacks from these AMIs. Please use this time to update any dependencies such as CloudFormation or Autoscaling groups. Release Notes Windows - Contains latest Windows Patches: Microsoft Windows Server 2008 R2 Datacenter - (KB2819745, KB3018238, KB4507004, KB4507437) Microsoft Windows Server 2016 Datacenter Security Enhancedn - (KB4509091, KB4507459) Microsoft Windows Server 2016 Datacentern - (KB4509091, KB4507459) Microsoft Windows Server 2012 R2 Security Enhancedn - (KB3191564, KB3003057, KB3013172, KB3185319, KB4504418, KB4506996, KB4507463) Microsoft Windows Server 2012 R2 Standardn - (KB3003057, KB3013172, KB3185319, KB4504418, KB4506996, KB4507463) Linux - Contains latest Linux patches - All AMIs now force domainjoin-cli leave before domainjoin-cli join for better stability in the domain join process.", "images": {"images": {"image_name": "customer-ams-windows2019-2021.08-1", "image_id": "ami-05dfa45396fddaa5e"}}, "region": "us-east-1"}}", "Timestamp" : "2021-09-03T19:05:57.882Z", "SignatureVersion" : "1", "Signature" : "example sig", "SigningCertURL" : "example url", "UnsubscribeURL" : "example url" }
サブスクライブ可能な AMS AMI トピック:
ALL: を使用します
customer-ams-all-amis。このトピックサブスクリプションは、いずれかの AMS AMIs が更新されたときに通知します。AMS AWS Linux AMIs: Amazon Linux の場合は、
customer-ams-amazon1と を使用しますcustomer-ams-amazon1-security-enhanced。Amazon Linux 2 の場合は、customer-ams-amazon2と を使用しますcustomer-ams-amazon2-security-enhanced。AMS SUSE Linux AMIs:
customer-ams-sles12または を使用しますcustomer-ams-sles15。AMS AWS RedHat AMIs:
customer-ams-rhel8、customer-ams-rhel8-security-enhanced、customer-ams-rhel7、 を使用しますcustomer-ams-rhel7-security-enhanced。AMS AWS CentOs AMIs:
customer-ams-centos7、 を使用しますcustomer-ams-centos7-security-enhanced。AMS Ubuntu AMIs: を使用します
customer-ams-ubuntu18。AMS AWS Windows AMIs:
customer-ams-windows2019、customer-ams-windows2019-security-enhanced、、customer-ams-windows2016、customer-ams-windows2016-security-enhanced、customer-ams-windows2012r2-security-enhanced、customer-ams-windows2012customer-ams-windows2012r2、 を使用しますcustomer-ams-windows2022。
Amazon SNS コンソールを使用して AMS の新しい AMI 通知をサブスクライブするには:
Amazon SNS コンソールの [ダッシュボード]
を開きます。 右上隅で、サブスクライブする AMIs の AWS リージョンに変更します。
左ナビゲーションペインで、サブスクリプションを選択し、サブスクリプションの作成を選択します。
以下の情報を指定します。
トピック ARN:
arn:aws:sns:{REGION は選択した AWS リージョン (SNS 通知が作成された場所) で、AMS_AMI_NAME は通知の対象となる AMI です。例:REGION}:287847593866:{AMS_AMI_NAME}AWS リージョン us-east-1 の新しい AMS Amazon Linux AMIs の通知をサブスクライブするには、このトピック ARN = を使用します
arn:aws:sns:us-east-1:287847593866:customer-ams-amazon1。AWS リージョン us-west-2 の新しい AMS Window Server 2016 AMIs の通知をサブスクライブするには、このトピック ARN =
arn:aws:sns:us-west-2:287847593866:customer-ams-windows2016
[プロトコル] で [E メール] を選択します。
[エンドポイント] に、通知を受信するために使用できる E メールアドレスを入力します。個人の E メールではなく、ディストリビューションリストを使用することをお勧めします。
[Create subscription] を選択してください。
件名が「AWS 通知 - サブスクリプションの確認」である確認 E メールを受信したら、E メールを開き、サブスクリプションの確認を選択してサブスクリプションを完了します。
注記
プロトコルの E メールに限定されません。その他の許容可能なプロトコルとその使用方法については、「サブスクライブ」を参照してください。
AWS SNS コンソールを使用して AMS の新しい AMI 通知のサブスクリプションを解除するには:
Amazon SNS コンソールの [ダッシュボード]
を開きます。 ナビゲーションバーで、 を任意の AWS リージョンに変更します。対応する AMIs の通知を受信する AWS リージョンを使用する必要があります。
ナビゲーションペインで、サブスクリプションを選択し、サブスクリプションを選択し、アクション -> サブスクリプションの削除を選択します。
確認を求めるメッセージが表示されたら、[削除] を選択してください。
デプロイ | 取り込み | CloudFormation テンプレートからのスタック | 作成 (ct-36cn2avfrrj9v) を使用して AMS の新しい AMI 通知をサブスクライブするには:
AmazonLinuxSubscription をサブスクライブするには、実行パラメータ JSON ファイルを作成して保存します。この例では、CreateSubscribeAmiParams.json:
{ "AWSTemplateFormatVersion": "2010-09-09", "Resources": { "AmazonLinuxSubscription":{ "Type" : "AWS::SNS::Subscription", "Properties": { "TopicArn": "arn:aws:sns:{REGION}:287847593866:{AMS_AMI_NAME}", "Protocol": "email", "Endpoint": "username@yourdomain.com" } } } }次の内容の RFC パラメータ JSON ファイルを作成して保存します。この例では、CreateSubscribeAmiRfc.json ファイルという名前を付けます。
{ "ChangeTypeId": "ct-36cn2avfrrj9v", "ChangeTypeVersion": "1.0", "Title": "cfn-ingest-subscribe-ami" }CreateSubscribeAmiRfc ファイルと CreateSubscribeAmiParams ファイルを指定して、RFC を作成します。
aws amscm create-rfc --cli-input-json file://CreateSubscribeAmiRfc.json --execution-parameters file://CreateSubscribeAmiParams.jsonレスポンスで新しい RFC の ID を受け取り、それを使用して RFC を送信およびモニタリングできます。送信するまで、RFC は編集状態のままであり、開始されません。
AMIs「AMI の作成」を参照してください。
プログラムによる AMIs」を参照してください。 EC2