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

Conditional DeploymentPreference not supported #1342

Closed
hgl opened this issue Dec 24, 2019 · 1 comment
Closed

Conditional DeploymentPreference not supported #1342

hgl opened this issue Dec 24, 2019 · 1 comment

Comments

@hgl
Copy link

hgl commented Dec 24, 2019

Description:

I want to disable DeploymentPreference for staging and only enable for prod, it seems it's not supported.

Steps to reproduce the issue:

Conditions:
  IsProd: !Equals [ !Ref Stage, prod ]
Function:
  Type: AWS::Serverless::Function
  Properties:
    DeploymentPreference:
      Enabled: !If [ IsProd, true, false ]
      Type: Canary10Percent10Minutes

Observed result:

Failed with

Resource with id [Function] is invalid. 'Enabled' must be a boolean value

Expected result:

It should deploy.

@ShreyaGangishetty
Copy link

@hgl This is staged for release in v1.20.0. Please track the fix here #1196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants