I have created a CW alarm using a CloudFormation Template which looks something like this
MyAlarm:
Type: AWS::CloudWatch::Alarm
DependsOn: CodePipelineSNSTopic
Properties:
ActionsEnabled: TRUE
AlarmActions:
- !Ref CodePipelineSNSTopic
AlarmDescription: DynamoDB-Alarm
AlarmName: DynamoDB
DatapointsToAlarm: 1
Dimensions:
-
Name: TableName
Value: APIGroups
ComparisonOperator: GreaterThanOrEqualToThreshold
EvaluationPeriods: 1
MetricName: ConsumedWriteCapacityUnits
Namespace: AWS/DynamoDB
Period: 300
Statistic: Average
Threshold: 1
The SNS topic has been subscribed to and email has been confirmed.

However in the CloudWatch console it says Pending Confirmation What am I doing wrong? Please help me out.