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
| import json | |
| import logging | |
| import os | |
| from urllib.request import Request, urlopen | |
| from urllib.error import URLError, HTTPError | |
| HOOK_URL = os.environ['HookUrl'] | |
| logger = logging.getLogger() |
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
| OS | Copy | Paste | |
|---|---|---|---|
| Linux | Select the text | Middle mouse button | |
| Mac | ⌘+C | ⌘+V | |
| Windows | Ctrl+Insert | Shift+Insert |
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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: prometheus-deployment | |
| labels: | |
| app: prometheus | |
| purpose: example | |
| spec: | |
| replicas: 2 | |
| selector: |
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
| resource "aws_secretsmanager_secret" "IRCSecrets" { | |
| name = "irc/client/credentials" | |
| description = "My IRC client credentials" | |
| } | |
| resource "aws_secretsmanager_secret_version" "IRCCredentials" { | |
| secret_id = "${aws_secretsmanager_secret.IRCSecrets.id}" | |
| secret_string = "{\"username\":\"AzureDiamond\",\"password\":\"hunter2\"}" | |
| } |
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
| # enable Docker for your repository | |
| options: | |
| docker: true | |
| pipelines: | |
| branches: | |
| development: | |
| - step: | |
| # python image with aws-cli installed |
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
| Linux | Select the text | Middle mouse button | |
|---|---|---|---|
| Mac | ⌘+C | ⌘+V | |
| Windows | Ctrl+Insert | Shift+Insert |
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
| // Parses AWS Config events from SNS and will raise PagerDuty incidents if resources | |
| // go non-compliant, resolving the incident when they return to compliant. | |
| // | |
| // This file is intended to be used with a PagerDuty Custom Event Transformer. | |
| // https://www.pagerduty.com/docs/guides/custom-event-transformer/ | |
| // | |
| // Create a new Custom Event Transformer integration in PagerDuty, and subscribe it's | |
| // Integration URL on the SNS Topic that you send AWS Config events to. | |
| // | |
| // You can see all the different notifications Config sends here: |
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
| a4b.amazonaws.com | |
| access-analyzer.amazonaws.com | |
| account.amazonaws.com | |
| acm-pca.amazonaws.com | |
| acm.amazonaws.com | |
| airflow-env.amazonaws.com | |
| airflow.amazonaws.com | |
| alexa-appkit.amazon.com | |
| alexa-connectedhome.amazon.com | |
| amazonmq.amazonaws.com |
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
| #!/usr/bin/env bash | |
| #################################################################################### | |
| # Slack Bash console script for sending messages. | |
| #################################################################################### | |
| # Installation | |
| # $ curl -s https://gist.githubusercontent.com/andkirby/67a774513215d7ba06384186dd441d9e/raw --output /usr/bin/slack | |
| # $ chmod +x /usr/bin/slack | |
| #################################################################################### | |
| # USAGE | |
| # Send message to slack channel/user |
NewerOlder