Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

This parameters template demonstrates the Put EventBridge/CloudWatch Events action:

Insert excerpt
_JSONEscapingRequirements
_JSONEscapingRequirements
nopaneltrue

Info
title

Event Patterns in CloudWatch Events

This is an opinionated example that works well for ingesting custom events from Atlassian products – refer to Event Patterns in CloudWatch Events for details on these and other available fields.


Put EventBridge/CloudWatch Events parameters example - Bamboo Build Task Execution (escaped manually)

Code Block
linenumbers
languagejstrue
{
  "Entries": [
    {
      "Time": "$event.timestamp",
      "Source": "net.utoolity.atlassian.bamboo.automation-with-aws-bamboo",
      "DetailType": "Bamboo Build Task Execution",
      "Detail": "{ \"agentId\": \"${bamboo.agentId}\", \"buildResultKey\": \"${bamboo.buildResultKey}\", \"resultsUrl\": \"${bamboo.resultsUrl}\" }"
    }
  ]
}

Put EventBridge/CloudWatch Events parameters example - Bamboo Build Task Execution (escaped with utility function)

Code Block
languagejslinenumberstrue
{
  "Entries": [
    {
      "Time": "$event.timestamp",
      "Source": "net.utoolity.atlassian.bamboo.automation-with-aws-bamboo",
      "DetailType": "Bamboo Build Task Execution",
      "Detail": "$util.escapeJson('{
        "agentId": "${bamboo.agentId}",
        "buildResultKey": "${bamboo.buildResultKey}",
        "resultsUrl": "${bamboo.resultsUrl}"
      }')"
    }
  ]
}

...