Skip to content

Commit

Permalink
ffs
Browse files Browse the repository at this point in the history
  • Loading branch information
fredex42 committed Mar 15, 2024
1 parent 065ae08 commit 6035df9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 61 deletions.
44 changes: 0 additions & 44 deletions cdk/lib/__snapshots__/concierge-graphql.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -307,50 +307,6 @@ exports[`The ConciergeGraphql stack matches the snapshot 1`] = `
},
"Type": "AWS::ApiGatewayV2::VpcLink",
},
"GWGQLUsagePlanDDFEB42C": {
"DependsOn": [
"GWApiGWDefaultRouteDefaultIntegration60DE663E",
"GWApiGWDefaultRoute7E891A48",
"GWApiGWDefaultStage62BBA833",
"GWApiGW36D3A369",
],
"Properties": {
"ApiStages": [
{
"ApiId": {
"Ref": "GWApiGW36D3A369",
},
"Stage": "$default",
"Throttle": {
"$default": {
"BurstLimit": 150,
"RateLimit": 50,
},
},
},
],
"Description": "Usage plan for access to concierge-graphql",
"Tags": [
{
"Key": "gu:cdk:version",
"Value": "TEST",
},
{
"Key": "gu:repo",
"Value": "guardian/concierge-graphql",
},
{
"Key": "Stack",
"Value": "content-api",
},
{
"Key": "Stage",
"Value": "TEST",
},
],
},
"Type": "AWS::ApiGateway::UsagePlan",
},
"GetDistributablePolicyConciergegraphql510C52ED": {
"Properties": {
"PolicyDocument": {
Expand Down
34 changes: 17 additions & 17 deletions cdk/lib/gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,23 @@ export class HttpGateway extends Construct {
}),
createDefaultStage: true,
});

const plan = new CfnUsagePlan(this, "GQLUsagePlan", {
apiStages: [
{
apiId: httpApi.apiId,
stage: httpApi.defaultStage?.stageName,
throttle: {
"$default": {
burstLimit: 150,
rateLimit: 50
}
}
}
],
description: "Usage plan for access to concierge-graphql"
});
plan.node.addDependency(httpApi);
//
// const plan = new CfnUsagePlan(this, "GQLUsagePlan", {
// apiStages: [
// {
// apiId: httpApi.apiId,
// stage: httpApi.defaultStage?.stageName,
// throttle: {
// "$default": {
// burstLimit: 150,
// rateLimit: 50
// }
// }
// }
// ],
// description: "Usage plan for access to concierge-graphql"
// });
// plan.node.addDependency(httpApi);

}
}
5 changes: 5 additions & 0 deletions riff-raff.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
regions:
- eu-west-1
allowedStages:
- CODE-AARDVARK
- PROD-AARDVARK
- CODE-ZEBRA
- PROD-ZEBRA
deployments:
cloudformation:
type: cloud-formation
Expand Down

0 comments on commit 6035df9

Please sign in to comment.