Last active
September 18, 2018 15:11
-
-
Save DV8FromTheWorld/b6ec3429e60db493d4882961a25208bf to your computer and use it in GitHub Desktop.
Build Cloudformation Record
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
function build(buildArn, projectName, status = "SUCCEEDED") { | |
return JSON.stringify({ | |
Records: [{ | |
Sns: { | |
Message: JSON.stringify({ | |
detail: { | |
"build-id": buildArn.trim(), | |
"project-name": projectName, | |
"build-status": status | |
} | |
}) | |
} | |
}] | |
}, null, 2) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment