You don't say but I assume you're referring to https://docs.amazonaws.cn/en_us/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-destinationconfig.html - I ask because there is one other place where
DestinationConfig is used but it doesn't have an option of
OnSuccess so I think I'm in the right place.
It would help a lot if you could paste a larger snippet of your CloudFormation template - because what you've given looks ok but it's impossible to tell without the preceding lines.
Editing here because it provides better formatting that in comments
Ok. You're putting the
DestinationConfig part into the
AWS::Lambda::Function section - but that's not where it goes. You need to create a different section which is
AWS::Lambda::EventInvoke as per the documentation.
is there a tool that can generate a cloud formation script to recreate a current VPC and it's associated configurationsAccepted Answerasked 8 months ago
Create AWS::Lex::BotAlias with Lambdahook using Cloudformation is not workingAccepted Answerasked a year ago
DataSourceArn error for Athena Quick sight in cfn templateasked 9 months ago
extraneous key [DestinationConfig] is not permittedasked 14 days ago
Key pair is not validasked 6 months ago
RedriveAllowPolicy error during Cloudformation deployAccepted Answerasked a year ago
ECS Cloudformation Template for EC2 Launch Typeasked a month ago
Add Amplify deploy key to multiple github repositories?asked 4 years ago
private key for MqttCertificate is not setasked 3 years ago
How to set up EventBridge Api Destination/Connection to Google Cloud?asked 7 months ago