Hi guys! I'm trying to use the Systems Manager Par...
# general
m
Hi guys! I'm trying to use the Systems Manager Parameter Store and creating a new parameter in pulumi like so.
Copy code
export const param = new aws.ssm.Parameter("mySecVal", {
    type: "SecureString",
    value: 'Some Value'
})
However, when I try to get this value in my Lambda I I can't access by the name
mySecVal
AWS says the parameter doesn't exist. I can pull it if I use the pulumi name
mySecValue
. Is there a pulumi way of pulling this value by the name I gave it in my lambda or Is there anyway to have this parameter stored without the pulumi id that get's tacked on at the end.?
b
You can give it a
name
parameter and it will override the random string name that Pulumi will assign to it:
Copy code
export const param = new aws.ssm.Parameter("mySecVal", {
    name: "MyParameter",
    type: "SecureString",
    value: 'Some Value'
})
m
@broad-dog-22463 Thanks, I'll give this a shot!
b
👍
let me know if this doesn't solve your issue