Hi, What is the best way if i need to move a parameter from a stack to another stack? I got an error after doing that. Because of a parameter conflict. I was able to deploy that after deleting my stacks. But i need to know is there a way without deleting the stacks.
t
thdxr
03/24/2022, 3:02 AM
hey what do you mean by parameter?
s
Sahan Amadoruge
03/24/2022, 4:17 AM
a
ssm StringParameter
g
gio
03/24/2022, 7:46 AM
You don’t need to pass a ssm parameter among stack, you can just fetching it from the destination stack like this: StringParameter.valueFromLookup(this, ‘PARAM_NAME’);
Cross stack is needed when you create a resource from a stack and you want use that value in another stack
s
Sahan Amadoruge
03/24/2022, 4:06 PM
@gio I was not passing it among stacks. I just totally moved it from one stack to another. That's where i got the issue. Because the old deployed stack already had the parameter.