Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
amplify-backend-build-notification
Advanced tools
This package contains the defineBuildNotification entry point for customers to define build notification in their Amplify backend. This is a layer on top of the build notification construct in amplify-build-notification-construct to initialize the construct in the context of an Amplify backend
To configure your build notification backend, edit the amplify/build-notification/resource.ts
file. You can set up build notification to Slack.
amplify/build-notification/resource.ts
import { defineBuildNotification } from "amplify-backend-build-notification";
import { secret } from "@aws-amplify/backend";
/**
* First, add AWS Chatbot to the Slack workspace.
* Then, create your secrets using `amplify sandbox secret`
* * @see https://docs.aws.amazon.com/chatbot/latest/adminguide/slack-setup.html#slack-client-setup
* @see https://docs.amplify.aws/gen2/deploy-and-host/sandbox-environments/features/#s
*/
export const buildNotification = defineBuildNotification({
slackWorkspaceId: secret("SLACK_WORKSPACE_ID"),
slackChannelId: secret("SLACK_CHANNEL_ID"),
/*
conditions: {
// When only a specific appId is to be notified.
appId: "<appId>";
// When only a specific branchName is to be notified.
branchName: ",<branchName>";
// To specify the job status of the notification target
jobStatus: ["SUCCEED", "FAILED", "STOPPED", "STARTED"];
}
*/
});
Lastly, this buildNotification
needs to be added to your backend.
amplify/backend.ts
import { defineBackend } from '@aws-amplify/backend';
import { data } from "./data/resource";
import { auth } from "./auth/resource";
import { buildNotification } from "./build-notification/resource"
const backend = defineBackend({
auth,
data,
buildNotification,
});
FAQs
## Description
The npm package amplify-backend-build-notification receives a total of 2 weekly downloads. As such, amplify-backend-build-notification popularity was classified as not popular.
We found that amplify-backend-build-notification demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.