Bug: SAM Doesn't recognize changes related to intrinsic functions (#6610)
See also #6610
I am trying to redeploy a stack using values resolved from secrets manager:
- Name: API_KEY
Value: '{{resolve:secretsmanager:my-app-api-key:SecretString}}'
sam reports Error: No changes to deploy. Stack stack is up to date. There should be a mechanism to redeploy a stack even if the template has not changed, because the resolved values might have changed.
Whether this is CF functionality or not is irrelevant if I only use SAM CLI.
Hi @tbenbrahim, thanks for reporting the issue. Under the hood, sam deploy uses the CFN boto3 API's related to changeset which throws the error you seeing. As a workaround, you could try using sam sync --no-skip-deploy-sync which uses the update_stack boto3 API call and should allow you to redeploy. Note: sam sync is a development command and not to be used in production environment. I will treat this as a feature request to have the same behavior available for sam deploy and bring this up to the team.