https://pulumi.com logo
#general
Title
# general
e

eager-area-86739

11/04/2018, 12:15 PM
From the
aws.apigateway.Stage
I can't find the correct arguments.
w

white-balloon-205

11/04/2018, 3:09 PM
As with many things in APIGateway, this is in an unusual place in the API but is possible:
Copy code
const settings = new aws.apigateway.MethodSettings(name, {
            restApi: api,
            stageName: stageName,
            methodPath: "*/*",
            settings: [{
                metricsEnabled: true,
                loggingLevel: "INFO",
            }],
        });
See also https://github.com/pulumi/pulumi-cloud/issues/319 where we were discussing how to enable this by default in the
@pulumi/cloud
wrappers over API Gateway - which also calls out the need for account level configuration for this to work.
e

eager-area-86739

11/04/2018, 9:55 PM
Thanks. The API Gateway has some quite interesting API choices...