Skip to content

Commit

Permalink
fix(momento): adding momento api key to terraform provider (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
marciocadev authored Jul 29, 2024
1 parent da20cfe commit 5df2901
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion momento/cache.w
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub class Cache {
let defaultTtl = props.defaultTtl ?? 60s;
if target.startsWith("tf") {
this.inner = new Cache_tf({ token, name, defaultTtl });
} if target == "sim" {
} elif target == "sim" {
this.inner = new Cache_sim({ token, name, defaultTtl });
} else {
throw "unsupported target: " + target;
Expand Down Expand Up @@ -155,6 +155,9 @@ class MomentoProvider {
name: "momento",
source: "momentohq/momento",
version: "0.1.0",
attributes: {
api_key: util.env("MOMENTO_API_KEY"),
}
) as singletonKey in root;
}
}
4 changes: 2 additions & 2 deletions momento/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@winglibs/momento",
"description": "momento library for Wing",
"version": "0.0.1",
"version": "0.0.2",
"repository": {
"type": "git",
"url": "https://github.com/winglang/winglibs.git",
Expand All @@ -24,4 +24,4 @@
"@gomomento/sdk": "^1.93.0",
"@winglibs/tf": "^0.0.5"
}
}
}

0 comments on commit 5df2901

Please sign in to comment.