Skip to content

Rollback doesn't work for project with Slim Handler #1383

@lidgen

Description

@lidgen

This is a resubmit of issue 1032
#1032

We met this problem again recently.
When slim_handler is set True, the zappa_settings.py in the handler zip file contains
ARCHIVE_PATH='s3://your-zappa-bucket/{env}_{projectname}_current_project.tar.gz'

It is from the code in zappa/cli.py
settings_s += "ARCHIVE_PATH='s3://{0!s}/{1!s}_{2!s}_current_project.tar.gz'\n".format(
self.s3_bucket_name, self.api_stage, self.project_name
)

When we run the rollback, the handler zip file is rolled back to a previous version, but it still points to the new and only project zip file.
That doesn't make any sense.

This bug has existed for more than 4 years.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-reviewNeeds attention from a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions