Last active
April 18, 2018 19:35
-
-
Save arnathan2k/bde826ef999a225e62cee5bd4c827acc to your computer and use it in GitHub Desktop.
This file contains 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
USE Your ARNS - ARN here are dummies | |
aws lambda add-permission --function-name CaptureLogLambda --statement-id rad-log-event --action lambda:InvokeFunction --principal events.amazonaws.com --source-arn arn:aws:events:us-west-1:6500000000:rule/rad-log-rule" | |
arn:aws:lambda:us-west-1:65000000000:function:CaptureLogLambda | |
aws events put-targets --rule rad-log-rule --targets Id=1,Arn=arn:aws:lambda:us-west-1:6586000000:function:CaptureLogLambda | |
aws sns subscribe --topic-arn arn:aws:sns:us-west-1:6500000000000:rad-log-topic --protocol email --notification-endpoint youremail@xyz.com | |
aws sns publish --topic-arn arn:aws:sns:us-west-1:65000000:rad-log-topic --message "Test Message" | |
arn:aws:iam::6500000000:role/rad-asg-sns-notification | |
aws autoscaling put-lifecycle-hook --lifecycle-hook-name rad-demoasg-hook2 --auto-scaling-group-name DemoASG --lifecycle-transition autoscaling:EC2_INSTANCE_TERMINATING --notification-target-arn arn:aws:sns:us-west-1:650000000:rad-log-topic --role-arn arn:aws:iam::65000000000:role/rad-asg-sns-notification | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment