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

An error occurred: <BUCKET NAME> already exists in stack arn:aws:cloudformation:us-east-1:996242555412 ... #952

Open
igoralves1 opened this issue Aug 26, 2024 · 0 comments

Comments

@igoralves1
Copy link

igoralves1 commented Aug 26, 2024

I am using MAC chip Apple M3 Pro, macOS smona 146.1.

Following the instructions in https://github.com/ar90n/serverless-s3-local and when I run sls dev --debug Im getting the following error:

✖ An error occurred: S3Bucket052a36f5fb9elocalbucketz - 052a36f5fb9elocalbucketz already exists in stack arn:aws:cloudformation:us-east-1:996242555412:stack/ft-dev/5a21d0b0-5bf7-11ef-9e25-0affefb4c111.
ServerlessError2: An error occurred: S3Bucket052a36f5fb9elocalbucketz - 052a36f5fb9elocalbucketz already exists in stack arn:aws:cloudformation:us-east-1:996242555412:stack/ft-dev/5a21d0b0-5bf7-11ef-9e25-0affefb4c111.
    at <anonymous> (/Users/ialves/.serverless/releases/4.2.4/serverless/lib/plugins/aws/lib/monitor-stack.js:168:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at AwsDeploy.update (/Users/ialves/.serverless/releases/4.2.4/serverless/lib/plugins/aws/lib/update-stack.js:166:5)
    at aws:deploy:deploy:updateStack (/Users/ialves/.serverless/releases/4.2.4/serverless/lib/plugins/aws/deploy/index.js:206:9)
    at PluginManager.runHooks (/Users/ialves/.serverless/releases/4.2.4/serverless/lib/classes/plugin-manager.js:680:9)
    at PluginManager.invoke (/Users/ialves/.serverless/releases/4.2.4/serverless/lib/classes/plugin-manager.js:719:9)
    at PluginManager.spawn (/Users/ialves/.serverless/releases/4.2.4/serverless/lib/classes/plugin-manager.js:740:5)
    at PluginManager.runHooks (/Users/ialves/.serverless/releases/4.2.4/serverless/lib/classes/plugin-manager.js:680:9)
    at PluginManager.invoke (/Users/ialves/.serverless/releases/4.2.4/serverless/lib/classes/plugin-manager.js:719:9)
    at PluginManager.spawn (/Users/ialves/.serverless/releases/4.2.4/serverless/lib/classes/plugin-manager.js:740:5)

For help, try the following:
  • Run the command again with the "--debug" option
  • Run "serverless support"
  • Review the docs: https://www.serverless.com/framework/docs/

The serverless is basically the same one of the tutorial:

# "org" ensures this Service is used with the correct Serverless Framework Access Key.
org: igoralves1
# "app" enables Serverless Framework Dashboard features and sharing them with other Services.
app: ftest
# "service" is the name of this project. This will also be added to your AWS resource names.
service: ft

plugins:
  - serverless-offline

provider:
  name: aws
  runtime: nodejs20.x

custom:
  s3:
    host: localhost
    port: 8000
    directory: /tmp

resources:
  Resources:
    NewResource:
      Type: AWS::S3::Bucket
      Properties:
        BucketName: 052a36f5fb9elocalbucketz


functions:
  hello:
    handler: handler.hello

  testapi:
    handler: testapi.testapi
    events:
      - httpApi:
          method: POST
          path: /testapi

  webhook:
    handler: handler.webhook
    events:
      - http:
        method: GET
        path: /
  s3hook:
    handler: handler.s3hook
    events:
      - s3: 052a36f5fb9elocalbucketz
        event: s3:*

How to solve this issue?
From where is comming this account number 996242555412 in the error?

@igoralves1 igoralves1 changed the title An error occurred: <BUCKET NAME> already exists in stack arn:aws:cloudformation:us-east-1:zzzzzz ... An error occurred: <BUCKET NAME> already exists in stack arn:aws:cloudformation:us-east-1:996242555412 ... Aug 26, 2024
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

5 participants
@igoralves1 and others