You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched existing issues, it hasn't been reported yet
Issue description
Despite no changes being made to my python Lambda function, it is packaged and uploaded to S3 on every deploy. Here is what the directory structure for this basic project looks like:
Deploying serverless-python-requirements-test to stage dev (us-west-2)
Packaging
Generated requirements from /Users/user/Projects/serverless-python-requirements-test/lambda/requirements.txt in /Users/user/Projects/serverless-python-requirements-test/.serverless/lambda/requirements.txt
Using static cache of requirements found at /Users/user/Library/Caches/serverless-python-requirements/01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b_x86_64_slspyc
Excluding development dependencies forfunction"serverless-python-requirements-test"
Injecting required Python packages to package
Retrieving CloudFormation stack
Uploading
Uploading CloudFormation file to S3
Uploading State file to S3
Uploading service lambda-lambda-usw2-serverless-python-requirements-test.zip file to S3 (537 B)
Updating CloudFormation stack
Creating new change set
Waiting for new change set to be created
Change Set did not reach desired state, retrying
Executing created change set
UPDATE_IN_PROGRESS - AWS::CloudFormation::Stack - cfn-stack-usw2-serverless-python-requirements-test
UPDATE_IN_PROGRESS - AWS::Lambda::Function - ServerlessDashpythonDashrequirementsDashtestLambdaFunction
UPDATE_COMPLETE - AWS::Lambda::Function - ServerlessDashpythonDashrequirementsDashtestLambdaFunction
UPDATE_COMPLETE_CLEANUP_IN_PROGRESS - AWS::CloudFormation::Stack - cfn-stack-usw2-serverless-python-requirements-test
UPDATE_COMPLETE - AWS::CloudFormation::Stack - cfn-stack-usw2-serverless-python-requirements-test
Retrieving CloudFormation stack
Removing old service artifacts from S3
✔ Service deployed to stack cfn-stack-usw2-serverless-python-requirements-test (29s)
functions:
serverless-python-requirements-test: lambda-usw2-serverless-python-requirements-test (537 B)
Stack Outputs:
ServerlessDeploymentBucketName: s3-usw2-serverless-python-requirements-test
Need a faster logging experience than CloudWatch? Try our Dev Mode in Console: run "serverless dev"
Hey @mrchops1024 👋 Sorry you've run into trouble. I tried reproducing it on a simpler case and I wasn't able to do so. Would you be able to check what is the difference in final zip between the deploys?
I just ran a deploy, which uploaded the .zip to S3 and ran a Cloudformation update. I copied the .zip file out of the .serverless directory and ran deploy again, with the same results.
Comparing the two .zip files and they look identical based on contents:
Is this the same as #678? A response there says that it has to be rebuilt to compare it with the deployed state.
(Although presumably there's a way to cache the built output, efficiently check if anything changed, not rebuild the package, and compare the cached version with the deployed state)
Are you certain it's a bug?
Are you using the latest plugin release?
Is there an existing issue for this?
Issue description
Despite no changes being made to my python Lambda function, it is packaged and uploaded to S3 on every deploy. Here is what the directory structure for this basic project looks like:
Service configuration (serverless.yml) content
Command name and used flags
serverless deploy --verbose
Command output
Environment information
The text was updated successfully, but these errors were encountered: