Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Version are not 1 #5

Closed
vincentsarago opened this issue Apr 13, 2020 · 7 comments
Closed

Version are not 1 #5

vincentsarago opened this issue Apr 13, 2020 · 7 comments

Comments

@vincentsarago
Copy link
Contributor

馃う I though I cleanup all old -geo layer in my account but it might not be true

    {
        "region": "us-east-1",
        "layers": [
            {
                "name": "gdal24-py37-geo",
                "arn": "arn:aws:lambda:us-east-1:524387336408:layer:gdal24-py37-geo:9",
                "version": 9
            },
            {
                "name": "gdal30-py37-geo",
                "arn": "arn:aws:lambda:us-east-1:524387336408:layer:gdal30-py37-geo:8",
                "version": 8
            },
            {
                "name": "gdal31-py37-geo",
                "arn": "arn:aws:lambda:us-east-1:524387336408:layer:gdal31-py37-geo:1",
                "version": 1
            },
            {
                "name": "gdal24-py38-geo",
                "arn": "arn:aws:lambda:us-east-1:524387336408:layer:gdal24-py38-geo:1",
                "version": 1
            },
            {
                "name": "gdal30-py38-geo",
                "arn": "arn:aws:lambda:us-east-1:524387336408:layer:gdal30-py38-geo:1",
                "version": 1
            },
            {
                "name": "gdal31-py38-geo",
                "arn": "arn:aws:lambda:us-east-1:524387336408:layer:gdal31-py38-geo:1",
                "version": 1
            }
        ]
    },

cc @kylebarron

@vincentsarago
Copy link
Contributor Author

馃槩 https://stackoverflow.com/questions/60824745/aws-delete-lambda-layer-still-retains-layer-version-history

I guess this easiest thing will be to rename the layer so we don't run into this.

@kylebarron is this ok for you ? (you might not use this layer right now anyway)

@kylebarron
Copy link
Contributor

I ended up creating my own layers temporarily. So you can change naming if you need to

@kylebarron
Copy link
Contributor

When I was publishing layers yesterday, it seemed like it'll start numbering from 1 if the layer name has never been used before. So since I'd published a layer ending in cogeo but not geo it started from 1 for me.

But not sure it's possible to delete a layer

@vincentsarago
Copy link
Contributor Author

@kylebarron you can delete layers but somehow AWS keep tracks of them!

@kylebarron
Copy link
Contributor

I think delete probably just means hide. Because as that SO answer said, layers are immutable, so I don't think it's possible to modify a layer's code once it's been assigned an identifier

@kylebarron
Copy link
Contributor

Otherwise since layers can be public you could hack into other people's code by publishing a layer and then changing it with some evil code

@vincentsarago
Copy link
Contributor Author

fixed in #7

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

No branches or pull requests

2 participants