기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
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-windows2012,customer-ams-windows2012r2-security-enhanced,customer-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
프로토콜에서 이메일을 선택합니다.
엔드포인트에 알림 받을 이메일 주소를 입력합니다. 개인의 이메일 대신 배포 목록을 사용하는 것이 좋습니다.
구독 생성을 선택합니다.
“AWS 알림 - 구독 확인”이라는 제목의 확인 이메일을 받으면 이메일을 열고 구독 확인을 선택하여 구독을 완료합니다.
참고
프로토콜에 대한 이메일에만 국한되지 않습니다. 허용되는 다른 프로토콜 및 사용 방법에 대한 자세한 내용은 구독을 참조하세요.
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. https://docs.aws.amazon.com/managedservices/latest/ctref/ex-ami-create-col.html
프로그래밍 방식으로 AMIs. EC2