If I have an infrastructure deployment that define...
# aws
s
If I have an infrastructure deployment that defines, API gateway stages and then a separate stack that refers to the original stack but I want to deploy additional methods and resources to an existing stage, what do I do?
Copy code
const 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,
});