Closed binchoo closed 2 years ago
Env
Parameters: Env: Type: String AllowedValues: - prod - test
IsProd
Conditions: IsProd: !Equals - !Ref Env - prod
!If
Resources: PaimonGanyuSpringBootApp: Type: AWS::Serverless::Function Properties: … ProvisionedConcurrencyConfig: ProvisionedConcurrentExecutions: !If [IsProd, 3, 1] DeploymentPreference: Type: AllAtOnce
Create a
Env
parameterCreate a
IsProd
conditionUse the
!If
intrinsic function to configure differently per environment