swift-fireman-31153
09/09/2022, 12:13 AMType Name Plan Info
pulumi:pulumi:Stack open-api-infra-dev
+- └─ aws:apigateway:Integration integrationOptions replace [diff: ~integrationHttpMethod]
the integrationHttpMethod
ALWAYS has a diff.
What am I doing wrong?
const openAPI = new aws.apigateway.RestApi("openAPI", {})
const rootMethodOptions = new aws.apigateway.Method("options", {
authorization: "NONE",
httpMethod: "OPTIONS",
resourceId: openAPI.rootResourceId,
restApi: openAPI.id,
});
const integrationOptions = new aws.apigateway.Integration("integrationOptions", {
restApi: openAPI.id,
resourceId: openAPI.rootResourceId,
httpMethod: rootMethodOptions.httpMethod,
integrationHttpMethod: "OPTIONS",
type: "MOCK",
}, {
dependsOn: [rootMethodOptions, openAPI],
});