CloudFormation 스택 알림 미설정

스택 이벤트를 받을 SNS 토픽을 구성하세요.

설명

CloudFormation의 NotificationARNs는 스택 이벤트를 받을 SNS 토픽을 지정합니다. 이 알림이나 다른 모니터링 경로가 없으면 배포 실패와 롤백을 늦게 확인할 수 있습니다.

잠재적 영향

스택 상태 변경을 놓치면 배포 문제에 대한 대응이 지연될 수 있습니다.

해결 방법

NotificationARNs에 SNS 토픽 ARN을 지정하고 게시 권한과 구독을 구성하세요. 운영 담당자가 이벤트를 실제로 받는지 확인하세요.

예시

중첩 스택에 SNS 토픽을 추가하는 발췌 예시입니다. 템플릿 URL과 파라미터는 실제 중첩 템플릿에 맞게 설정하세요.

변경 전

yaml
Resources:
  myStackWithParams:
    Type: AWS::CloudFormation::Stack
    Properties:
      TemplateURL: https://s3.amazonaws.com/cloudformation-templates-us-east-2/EC2ChooseAMI.template
      Parameters:
        InstanceType: t1.micro
        KeyName: mykey

변경 후

yaml
Resources:
  myStackWithParams:
    Type: AWS::CloudFormation::Stack
    Properties:
      NotificationARNs:
        - "arn:aws:sns:ap-northeast-2:123456789012:stack-alerts"
      TemplateURL: https://s3.amazonaws.com/cloudformation-templates-us-east-2/EC2ChooseAMI.template
      Parameters:
        InstanceType: t1.micro
        KeyName: mykey

참조