swift-fireman-31153
08/31/2022, 9:15 PMconst apiDeployment = new aws.apigateway.Deployment("openAPI Deployment", {
restApi: openApiId,
triggers: {
redeployment: pulumi.all([resource.id, methodGet.id, integration.id]).apply(([resourceId, methodGetId, integrationId]) => JSON.stringify([
resourceId,
methodGetId,
integrationId,
])).apply(toJSON => crypto.createHash('sha1').update(toJSON).digest('hex')),
},
});
const deploymentStage = new aws.apigateway.Stage("stage", {
deployment: openApiDeploymentId,
restApi: openApiId,
stageName: env,
});
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by