This package contains a construct suitable for deploying Restate on ECS Fargate using the BYOC controller. The controller is not open source and a license ID must be provided for it to function. Please contact info@restate.dev if you're interested in a license.
npm install @restatedev/byoc
interface RestateStackProps extends cdk.StackProps {
}
export class RestateStack extends cdk.Stack {
constructor(scope: Construct, id: string, props?: RestateStackProps) {
super(scope, id, props);
const vpc = new cdk.aws_ec2.Vpc(this, "vpc", {
maxAzs: 3,
});
const cluster = new RestateEcsFargateCluster(this, "restate-cluster", {
licenseKey: "this-was-provided-to-you-by-restate",
vpc,
statefulNode: {
resources: {
cpu: 2048,
memoryLimitMiB: 4096,
},
ebsVolume: {
volumeType: cdk.aws_ec2.EbsDeviceVolumeType.GP3,
sizeInGiB: 200,
},
},
statelessNode: {
resources: {
cpu: 2048,
memoryLimitMiB: 4096,
},
},
});
}
}
- Update the NPM version in package.json and ensure it propagates to package-lock.json
- Run
npm test
, confirming there are no other snapshot issues except the changed version, thennpm test -- -u
to update the snapshots. - Push a tag eg
git tag v0.1.0 && git push origin v0.1.0
- Create a release from the tag
- GHA will publish the NPM package and the S3 assets once the release exists