https://pulumi.com logo
#aws
Title
# aws
s

swift-fireman-31153

09/09/2022, 12:13 AM
Everytime I do a pulumi up
Copy code
Type              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?
Copy code
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],
});