helpful-ice-5738
02/16/2019, 1:12 AMconst demo_usage_plan = new aws.apigateway.UsagePlan("DemoUsagePlan", {
apiStages: [
{
apiId: demo_api.id,
stage: demo_deployment.stageName,
},
],
description: "demo",
the demo_deployment and the demo_api exist.
I ran refresh, no changes to UsagePlan (or api or the stage):
├─ aws:apigateway:UsagePlan DemoUsagePlan
I require an API Key. the API key is associated with the usage plan. The usage plan is not associated with an API --> I cannot use my API with an APIKey. I did have a stack working where this was fine. The code hasn’t changed and even if it had, I’d expect pulumi to err at the stageName if it doesn’t exist or something. Any thoughts on what I might have missed or if there’s a bug here?stocky-spoon-28903
02/16/2019, 5:07 PMhelpful-ice-5738
02/19/2019, 5:02 PMgentle-diamond-70147
02/19/2019, 5:06 PMhelpful-ice-5738
02/19/2019, 5:22 PMgentle-diamond-70147
02/19/2019, 5:27 PMhelpful-ice-5738
02/19/2019, 5:39 PMUsage Plan: NotFoundException: Invalid API Stage...
integration request
, and then click the pencil next to lambda function
and just save — creates a popup to allow invocationgentle-diamond-70147
02/19/2019, 6:02 PMaws.apigateway.Integration
in your code, right? That gets saved, but not "enabled" - is that the issue?helpful-ice-5738
02/19/2019, 6:04 PMgentle-diamond-70147
02/19/2019, 6:04 PMhelpful-ice-5738
02/19/2019, 6:04 PMgentle-diamond-70147
02/19/2019, 6:05 PMpulumi refresh
does it show any updated resources/attributes?helpful-ice-5738
02/19/2019, 6:07 PMgentle-diamond-70147
02/19/2019, 6:08 PMhelpful-ice-5738
02/19/2019, 6:08 PMpulumi:pulumi:Stack pulumi_demo-pulumi_demo
├─ aws:iam:Policy DemoLogCreationPolicy
~ ├─ aws:iam:Role DemoIamApiRole update [diff: ~assumeRolePolicy]
├─ aws:apigateway:ApiKey DemoApiKey
├─ aws:apigateway:RestApi DemoApi
├─ aws:apigateway:Account DemoApiAccount
├─ aws:s3:Bucket DemoBucket
├─ aws:dynamodb:Table DemoTable
├─ aws:iam:RolePolicyAttachment DemoApiRolePolicy
├─ aws:iam:RolePolicyAttachment DemoRolePolicyAttachment
~ ├─ aws:s3:BucketPolicy DemoBucketPolicy update [diff: ~policy]
├─ aws:apigateway:Resource DemoResource
~ ├─ aws:apigateway:Method DemoMethodPost update [diff: +authorizationScopes,authorizerId,requestModels,requestParameters,requestValidatorId]
├─ aws:s3:BucketObject DemoBucketObject
~ ├─ aws:iam:Role DemoIamRole update [diff: ~assumeRolePolicy]
├─ aws:iam:RolePolicy DemoInvocationPolicy
├─ aws:apigateway:Integration DemoGetIntegration
~ ├─ aws:apigateway:Method DemoMethodGet update [diff: +authorizationScopes,authorizerId,requestModels,requestParameters,requestValidatorId]
├─ aws:apigateway:UsagePlanKey DemoUsagePlanKey
├─ aws:apigateway:Deployment DemoDeployment
~ ├─ aws:apigateway:Integration DemoPostIntegration update [diff: ~contentHandling]
├─ aws:apigateway:MethodSettings DemoGetMethodSettings
├─ aws:apigateway:UsagePlan DemoUsagePlan
├─ aws:apigateway:MethodSettings DemoPostMethodSettings
~ └─ aws:lambda:Function PythonFunction
get
method (I initially had just done so for post
)
Type Name Plan Info
pulumi:pulumi:Stack pulumi_demo-pulumi_demo
├─ aws:apigateway:ApiKey DemoApiKey
├─ aws:iam:Policy DemoLogCreationPolicy
├─ aws:apigateway:RestApi DemoApi
~ ├─ aws:iam:Role DemoIamApiRole update [diff: ~assumeRolePolicy]
├─ aws:iam:Role DemoIamRole
├─ aws:iam:RolePolicyAttachment DemoApiRolePolicy
├─ aws:apigateway:Resource DemoResource
├─ aws:apigateway:Account DemoApiAccount
├─ aws:dynamodb:Table DemoTable
~ ├─ aws:s3:BucketPolicy DemoBucketPolicy update [diff: ~policy]
~ ├─ aws:apigateway:Method DemoMethodPost update [diff: +authorizationScopes,authorizerId,requestModels,requestParameters,requestValidatorId]
├─ aws:iam:RolePolicyAttachment DemoRolePolicyAttachment
├─ aws:s3:Bucket DemoBucket
~ ├─ aws:apigateway:Method DemoMethodGet update [diff: +authorizationScopes,authorizerId,requestModels,requestParameters,requestValidatorId]
├─ aws:s3:BucketObject DemoBucketObject
├─ aws:iam:RolePolicy DemoInvocationPolicy
├─ aws:apigateway:Deployment DemoDeployment
├─ aws:apigateway:UsagePlanKey DemoUsagePlanKey
~ ├─ aws:apigateway:Integration DemoGetIntegration update [diff: ~contentHandling,integrationHttpMethod]
~ ├─ aws:apigateway:Integration DemoPostIntegration update [diff: ~contentHandling]
├─ aws:apigateway:MethodSettings DemoGetMethodSettings
├─ aws:apigateway:UsagePlan DemoUsagePlan
~ ├─ aws:lambda:Function PythonFunction
└─ aws:apigateway:MethodSettings DemoPostMethodSettings
gentle-diamond-70147
02/19/2019, 6:14 PMhelpful-ice-5738
02/19/2019, 6:15 PMgentle-diamond-70147
02/19/2019, 6:22 PM