Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.67 KB

canary-api-gateway.md

File metadata and controls

37 lines (23 loc) · 1.67 KB

Canary Deployment in API Gateway

Canary Deployment

Set up an API Gateway canary release deployment

Canary release is a software development strategy in which a new version of an API (as well as other software) is deployed for testing purposes, and the base version remains deployed as a production release for normal operations on the same stage. For purposes of discussion, we refer to the base version as a production release in this documentation. Although this is reasonable, you are free to apply canary release on any non-production version for testing.

CDK

A percentage of API traffic, between 0.0 and 100.0 inclusive, for the canary release.

CanarySettings

image

CanarySettingProperty

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as apigateway from '@aws-cdk/aws-apigateway';
const canarySettingProperty: apigateway.CfnDeployment.CanarySettingProperty = {
  percentTraffic: 123,
  stageVariableOverrides: {
    stageVariableOverridesKey: 'stageVariableOverrides',
  },
  useStageCache: false,
};

Properties

image