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

CodeDeploy Custom Deployment configurations in Lambda cant be referenced under deploymentSettings #155

Open
sunnydanu opened this issue Aug 3, 2023 · 0 comments

Comments

@sunnydanu
Copy link

Description:
Thanks for the wonderful plugin. As plugin only support pre-defined config and max time is 30 min . and its not enough for us to complete our testing on canary version. So , I want to know is there any other way to hold traffic shifting between version for desired time.

I am unable to use a custom deployment configuration from CodeDeploy. When I make the Type of the deploymentSettings the name of the custom deployment configuration (eg TestDeploymentConfig) then Cloudformation looks for the deployment configuration CodeDeployDefault.LambdaTestDeploymentConfig.

Steps to reproduce the issue:

Create a custom deployment configuration in CodeDeploy called TestDeploymentConfiguration
Try to reference it in deploymentSettings - Type
The stack shows the following error: No deployment configuration found for name: CodeDeployDefault.LambdaTestDeploymentConfiguration

Code

This naming seems hardcoded here:

serverless-application-model/samtranslator/model/preferences/deployment_preference_collection.py
Line: 31

image

With this naming we wont be able to point our deployment preferences to a custom deployment configuration because it always places "CodeDeployDefault.Lambda" in front of the name.

Here (https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html#deployment-configuration-lambda)
it says "You can also create your own custom canary or linear deployment configuration."

How do we reference a custom deployment configuration ? or is there any way to hold traffic shifting

@sunnydanu sunnydanu changed the title Lambda Custom Deployment configurations in CodeDeploy cant be referenced under deploymentSettings CodeDeploy Custom Deployment configurations in Lambda cant be referenced under deploymentSettings Aug 3, 2023
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

1 participant