generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 278
CFN Template added #603
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
Merged
Merged
CFN Template added #603
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
1bd31a1
Merge pull request #2 from aws/main
ngoyal16 d9a8171
CFN Templates added
ngoyal16 9415589
Update cfn-template.yaml
ngoyal16 773e736
AWS Health Event added
ngoyal16 91a2e8e
Update README.md
ngoyal16 e64bac3
Spell bug fix
ngoyal16 60fcf4a
Update README.md
ngoyal16 fdf0080
Update cfn-template.yaml
ngoyal16 8b4c34d
Update README.md
ngoyal16 fd4a4b8
Update README.md
ngoyal16 bba0ab3
Update README.md
ngoyal16 71d173f
Merge branch 'aws:main' into ngoyal16-patch-1
ngoyal16 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| AWSTemplateFormatVersion: 2010-09-09 | ||
| Resources: | ||
| Queue: | ||
| Type: 'AWS::SQS::Queue' | ||
| Properties: | ||
| MessageRetentionPeriod: 300 | ||
| QueuePolicy: | ||
| Type: 'AWS::SQS::QueuePolicy' | ||
| Properties: | ||
| Queues: | ||
| - !Ref Queue | ||
| PolicyDocument: | ||
| Statement: | ||
| - Effect: Allow | ||
| Principal: | ||
| Service: | ||
| - events.amazonaws.com | ||
| - sqs.amazonaws.com | ||
| Action: 'sqs:SendMessage' | ||
| Resource: !GetAtt Queue.Arn | ||
| ASGTermRule: | ||
| Type: 'AWS::Events::Rule' | ||
| Properties: | ||
| EventPattern: | ||
| source: | ||
| - aws.autoscaling | ||
| detail-type: | ||
| - EC2 Instance-terminate Lifecycle Action | ||
| Targets: | ||
| - Id: 1 | ||
| Arn: !GetAtt Queue.Arn | ||
| ScheduledChangeRule: | ||
| Type: 'AWS::Events::Rule' | ||
| Properties: | ||
| EventPattern: | ||
| source: | ||
| - aws.health | ||
| detail-type: | ||
| - AWS Health Event | ||
| Targets: | ||
| - Id: 1 | ||
| Arn: !GetAtt Queue.Arn | ||
| SpotTermRule: | ||
| Type: 'AWS::Events::Rule' | ||
| Properties: | ||
| EventPattern: | ||
| source: | ||
| - aws.ec2 | ||
| detail-type: | ||
| - EC2 Spot Instance Interruption Warning | ||
| Targets: | ||
| - Id: 1 | ||
| Arn: !GetAtt Queue.Arn | ||
| RebalanceRule: | ||
| Type: 'AWS::Events::Rule' | ||
| Properties: | ||
| EventPattern: | ||
| source: | ||
| - aws.ec2 | ||
| detail-type: | ||
| - EC2 Instance Rebalance Recommendation | ||
| Targets: | ||
| - Id: 1 | ||
| Arn: !GetAtt Queue.Arn | ||
| InstanceStateChangeRule: | ||
| Type: 'AWS::Events::Rule' | ||
| Properties: | ||
| EventPattern: | ||
| source: | ||
| - aws.ec2 | ||
| detail-type: | ||
| - EC2 Instance State-change Notification | ||
| Targets: | ||
| - Id: 1 | ||
| Arn: !GetAtt Queue.Arn | ||
| Outputs: | ||
ngoyal16 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| QueueURL: | ||
| Description: Queue url for AWS NTH controller | ||
| Value: !Ref Queue | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.