-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new EventBridgeRule SAM Function EventSource superseding existing…
… CloudWatchEvent
- Loading branch information
Showing
37 changed files
with
1,027 additions
and
101 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CloudWatch Events has been re-launched as Amazon EventBridge with full backwards compatibility | ||
|
||
Please see ../eventbridge-event-to-msteams/ for the migrated code |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,3 @@ | ||
''' | ||
This function handles a Slack slash command and echoes the details back to the user. | ||
CloudWatch Events has been re-launched as Amazon EventBridge with full backwards compatibility | ||
|
||
Follow these steps to configure the slash command in Slack: | ||
|
||
1. Navigate to https://<your-team-domain>.slack.com/services/new | ||
|
||
2. Search for and select "Slash Commands". | ||
|
||
3. Enter a name for your command and click "Add Slash Command Integration". | ||
|
||
4. Copy the token string from the integration settings and use it in the next section. | ||
|
||
5. After you complete this blueprint, enter the provided API endpoint URL in the URL field. | ||
|
||
|
||
To encrypt your secrets use the following steps: | ||
|
||
1. Create or use an existing KMS Key - http://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html | ||
|
||
2. Click the "Enable Encryption Helpers" checkbox | ||
|
||
3. Paste <COMMAND_TOKEN> into the kmsEncryptedToken environment variable and click encrypt | ||
|
||
|
||
Follow these steps to complete the configuration of your command API endpoint | ||
|
||
1. When completing the blueprint configuration select "Open" for security | ||
on the "Configure triggers" page. | ||
|
||
2. Enter a name for your execution role in the "Role name" field. | ||
Your function's execution role needs kms:Decrypt permissions. We have | ||
pre-selected the "KMS decryption permissions" policy template that will | ||
automatically add these permissions. | ||
|
||
3. Update the URL for your Slack slash command with the invocation URL for the | ||
created API resource in the prod stage. | ||
''' | ||
Please see ../logicmonitor-send-eventbridge-events/ for the migrated code |
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
''' | ||
This function handles a Slack slash command and echoes the details back to the user. | ||
|
||
Follow these steps to configure the slash command in Slack: | ||
|
||
1. Navigate to https://<your-team-domain>.slack.com/services/new | ||
|
||
2. Search for and select "Slash Commands". | ||
|
||
3. Enter a name for your command and click "Add Slash Command Integration". | ||
|
||
4. Copy the token string from the integration settings and use it in the next section. | ||
|
||
5. After you complete this blueprint, enter the provided API endpoint URL in the URL field. | ||
|
||
|
||
To encrypt your secrets use the following steps: | ||
|
||
1. Create or use an existing KMS Key - http://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html | ||
|
||
2. Click the "Enable Encryption Helpers" checkbox | ||
|
||
3. Paste <COMMAND_TOKEN> into the kmsEncryptedToken environment variable and click encrypt | ||
|
||
|
||
Follow these steps to complete the configuration of your command API endpoint | ||
|
||
1. When completing the blueprint configuration select "Open" for security | ||
on the "Configure triggers" page. | ||
|
||
2. Enter a name for your execution role in the "Role name" field. | ||
Your function's execution role needs kms:Decrypt permissions. We have | ||
pre-selected the "KMS decryption permissions" policy template that will | ||
automatically add these permissions. | ||
|
||
3. Update the URL for your Slack slash command with the invocation URL for the | ||
created API resource in the prod stage. | ||
''' |
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...itor-send-cloudwatch-events/template.yaml → ...tor-send-eventbridge-events/template.yaml
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Resources: | ||
ScheduledFunction: | ||
Type: 'AWS::Serverless::Function' | ||
Properties: | ||
CodeUri: s3://sam-demo-bucket/hello.zip?versionId=3Tcgv52_0GaDvhDva4YciYeqRyPnpIcO | ||
Handler: hello.handler | ||
Runtime: python2.7 | ||
Events: | ||
Schedule: | ||
Type: Schedule | ||
Properties: | ||
Schedule: 'rate(1 minute)' | ||
TriggeredFunction: | ||
Type: 'AWS::Serverless::Function' | ||
Properties: | ||
CodeUri: s3://sam-demo-bucket/hello.zip?versionId=3Tcgv52_0GaDvhDva4YciYeqRyPnpIcO | ||
Handler: hello.handler | ||
Runtime: python2.7 | ||
Events: | ||
OnTerminate: | ||
Type: EventBridgeRule | ||
Properties: | ||
EventBusName: ExternalEventBridge | ||
Pattern: | ||
detail: | ||
state: | ||
- terminated |
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
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
Oops, something went wrong.