https://pulumi.com logo
#general
Title
# general
m

mammoth-address-60583

04/15/2020, 7:18 PM
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

broad-dog-22463

04/15/2020, 7:22 PM
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

mammoth-address-60583

04/15/2020, 7:29 PM
@broad-dog-22463 Thanks, I'll give this a shot!
b

broad-dog-22463

04/15/2020, 7:29 PM
👍
let me know if this doesn't solve your issue
3 Views