Hello,
I managed to deploy on AWS lambda a container with serveless with the command line: serverless deploy --stage dev
Then I removed this deployment with: serverless remove --stage dev
However, when I tried to redeploy it I keep going this error:
Serverless: Packaging service...
Serverless: Creating Stack...
Serverless: Checking Stack create progress...
........
Serverless: Stack create finished...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Serverless: Validating template...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
.......
Serverless: Operation failed!
Serverless: View the full error output: https://eu-west-3.console.aws.amazon.com/cloudformation/home?region=eu-west-3#/stack/detail?stackId=arn%3Aaws%3Acloudformation%3Aeu-west-3%3A383366169886%3Astack%2Flambda-fastapi-python-serv-dev%2F70abeb30-1d35-11ec-9cd1-06a4f7925310
Serverless Error ----------------------------------------
An error occurred: PythonServerFastAPIFunctionLogGroup - Resource handler returned message: "Resource of type 'AWS::Logs::LogGroup' with identifier '{"/properties/LogGroupName":"/aws/lambda/lambda-fastapi-python-serv-dev-pythonServerFastAPIFunction"}' already exists." (RequestToken: a3a6954c-86fc-1e2d-e507-adebab7bd21c, HandlerErrorCode: AlreadyExists).
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: linux
Node Version: 14.4.0
Framework Version: 2.59.0 (standalone)
Plugin Version: 5.4.4
SDK Version: 4.3.0
Components Version: 3.17.0
I don’t understand since I have cleared all cloudFormation pile or S3 bucket that I might have kept…
Thanks for helping!