Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a linkable Parameter component #379

Closed
bchilcott opened this issue May 6, 2024 · 2 comments
Closed

Add a linkable Parameter component #379

bchilcott opened this issue May 6, 2024 · 2 comments
Assignees

Comments

@bchilcott
Copy link

bchilcott commented May 6, 2024

There should be a parameter component, similar to the old SST v2 Parameter, for linking non-secret configuration instead of having to use environment. Could look something like:

const someConfig = new sst.Parameter("SomeConfig", "some-non-secret-value");
// or...
const someConfig = new sst.Parameter("SomeConfig", {
  value: "some-non-secret-value"
});
 
const myFn = new sst.aws.Function("MyFn", {
  handler: "src/functions/MyFn.handler",
  link: [someConfig]
});
Copy link
Contributor

thdxr commented May 6, 2024

you can actually use new sst.Secret("SomeConfig", "myvalue") - does that work for you?

@thdxr thdxr self-assigned this May 6, 2024
@bchilcott
Copy link
Author

bchilcott commented May 7, 2024

you can actually use new sst.Secret("SomeConfig", "myvalue") - does that work for you?

Ah yes that works - thanks. Feel free to close this but I suppose it would be nice if we could link more complex types? Arrays, etc. Definitely not a priority though, this works perfectly.

@jayair jayair closed this as completed May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants