admin管理员组

文章数量:1391975

I'm trying to configure SNS SMS Attributes (see image below) using AWS CDK. However, I can't seem to find any documentation or examples on how to set these preferences using CDK (Typescript).

The goal is to

  1. Set SNS SMS spend limit
  2. Define a default sender ID
  3. Enable delivery status logging
  4. Store SNS usage reports in Cloudwatch

Resources found

CDKTF does seem to have this: .md

I also found an older configuration, but was unable to get it running:

I'm trying to configure SNS SMS Attributes (see image below) using AWS CDK. However, I can't seem to find any documentation or examples on how to set these preferences using CDK (Typescript).

The goal is to

  1. Set SNS SMS spend limit
  2. Define a default sender ID
  3. Enable delivery status logging
  4. Store SNS usage reports in Cloudwatch

Resources found

CDKTF does seem to have this: https://github/hashicorp/cdktf-aws-cdk/blob/main/docs/snsSmsPreferences.md

I also found an older configuration, but was unable to get it running: https://github/markilott/aws-cdk-configure-sns

Share Improve this question edited Mar 12 at 21:06 Kevin asked Mar 12 at 21:00 KevinKevin 1,1443 gold badges15 silver badges33 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Looking at the documentation, CDK construct for SNS Text Messaging doesn't exist nor do CloudFormation template for it.

CDKTF has it because, as far as I know, TF doesn't use CloudFormation but uses AWS API instead.

If you look at https://github/markilott/aws-cdk-configure-sns/blob/main/lib/sns-config-stack.ts#L108-L123, it's using AwsCustomResource. That's what you can do as well, create your own CustomResource.

本文标签: aws cdkConfigure SNS SMS Attributes using CDKStack Overflow