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

Add CloudFormation Rollback Alarms/Triggers #11

Open
brettstack opened this issue Jun 4, 2020 · 2 comments
Open

Add CloudFormation Rollback Alarms/Triggers #11

brettstack opened this issue Jun 4, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@brettstack
Copy link
Contributor

CloudFormation should automatically roll back when the 5xx alarms fire.

@brettstack brettstack added enhancement New feature or request help wanted Extra attention is needed labels Jun 4, 2020
@brettstack
Copy link
Contributor Author

brettstack commented Jul 24, 2020

Documentation here https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RollbackConfiguration.html

We'll need to add this as a top-level entry to serverless.yaml and add the correct Alarm resources

RollbackConfiguration:
  MonitoringTimeInMinutes: 30
  RollbackTriggers:
  - Arn: !GetAtt MyAlarm.Arn
    Type: AWS::CloudWatch::Alarm
  - Arn: !GetAtt MySecondAlarm.Arn
    Type: AWS::CloudWatch::Alarm

@brettstack
Copy link
Contributor Author

We have some basic alarms defined using a Serverless Framework Plugin https://github.com/wizeline/serverless-fullstack/blob/master/serverless.yaml#L118. You'll need to look at the generated CloudFormation template to discover the correct names of the AWS::CloudWatch::Alarm Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants