Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: SAM Doesn't recognize changes related to intrinsic functions (#6610) #7134

Open
tbenbrahim opened this issue Jun 5, 2024 · 1 comment
Labels
area/deploy sam deploy command type/feature Feature request

Comments

@tbenbrahim
Copy link

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.

@tbenbrahim tbenbrahim added the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label Jun 5, 2024
@hnnasit
Copy link
Contributor

hnnasit commented Jun 7, 2024

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.

@hnnasit hnnasit added type/feature Feature request area/deploy sam deploy command and removed stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/deploy sam deploy command type/feature Feature request
Projects
None yet
Development

No branches or pull requests

2 participants