Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create CE resources in Ireland - Template format error: Unrecognized resource types: [AWS::CE::AnomalySubscription, AWS::CE::AnomalyMonitor] #27

Open
miguel-aws opened this issue Oct 19, 2023 · 0 comments

Comments

@miguel-aws
Copy link

When you try to create CE resources using CloudFormation in regions like Ireland (eu-west-1), the stack fails at the validation step with the following error message: Template format error: Unrecognized resource types: [AWS::CE::AnomalySubscription, AWS::CE::AnomalyMonitor]

It is documented that the CE service endpoint resides in us-east-1 so if we launch the stack in this region, it will succeed.

It's understood that CE is a global resource similar to IAM, but we can create IAM resources like AWS::IAM::Role outside of us-east-1.

Can we provide support to launch CE resources in regions such as Ireland?

Sample template

AWSTemplateFormatVersion: "2010-09-09"
Resources:     
  AnomalyServiceMonitor:
    Type: 'AWS::CE::AnomalyMonitor'
    Properties:
      MonitorName: 'MonitorName'
      MonitorType: 'DIMENSIONAL'
      MonitorDimension: 'SERVICE' 
  AnomalySubscription:
    Type: 'AWS::CE::AnomalySubscription'
    Properties:
      SubscriptionName: "SubscriptionName"
      Threshold: 100
      Frequency: "IMMEDIATE"
      MonitorArnList: [
          !Ref AnomalyServiceMonitor
      ]
      Subscribers: [
        {
          "Type": "SNS",
          "Address": !Sub "arn:aws:sns:${AWS::Region}:${AWS::AccountId}:my-topic-001" 
        }
      ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant