How can I update a stack parameter which was set by an SSM parameter?

0

I have an SSM parameter value set with a value I want to use in a CFN template. In the CFN template I have a parameter configured as follows:

Parameters:
  DDAPIKEY:
    Type: String
    Default: '{{resolve:ssm:DDAPIKEY:1}}' 

I then use this parameter as an environment variable in a lambda function. This works for the first deployment just fine, but if I change the SSM parameter value and redeploy the stack my expectation is that my lambda function would be updated. But given how CFN default parameters work (they only set the value the first time) I'm out of luck. Subsequent deployments do not update the environment variable even if the SSM parameter value is changed.

Am I mistaken about something or are there ways to work around this?

질문됨 4년 전1448회 조회
1개 답변
0

Nevermind. I didn't realize you could use the {{resolve:ssm:DDAPIKEY:2}} notation in a parameter override. Since you can do that, then I have a workaround.

답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠