Amplify S3 bucket missing?

0

Good Evening, I setup my amplify app through the ui, connected it to my gitlab, route53 with routing my purchased domain from google. I am getting an error now that I am at the limit for free tier storage. My website is less than 500 mb.

I tried searching for the S3 bucket that I guess was automagically created but there are zero S3 buckets listed for my account. From what I have been able to find online it looks like amplify keeps all versions of the website. How do I access an S3 bucket to remove extra versions of the website if it doesn't show on my S3 bucket list?

** edit ** Here is the amplify get-app details. I also ran the jobs and looked at the artifacts, none of the jobs create an artifact. My app is pure css, html, javascript so nothing gets built. I also tried the s3api list-buckets command => empty. And the cloudformation describe-stacks command => empty. From everything I can see, there is not a single storage item associated with my amplify instance and yet I am getting the notification that it is running out of space.

{
    "app": {
        "appId": "an id",
        "appArn": "arn:aws:amplify:us-east-2:long number:apps/an id",
        "name": "bosonstudioswebsite",
        "tags": {},
        "repository": "https://gitlab.com/mywebsite",
        "platform": "WEB",
        "createTime": "2021-05-09T16:00:24.489000-04:00",
        "updateTime": "2022-05-15T01:13:05.078000-04:00",
        "environmentVariables": {},
        "defaultDomain": "an id.amplifyapp.com",
        "enableBranchAutoBuild": false,
        "enableBranchAutoDeletion": false,
        "enableBasicAuth": false,
        "customRules": [
            {
                "source": "https://bosonstudios.com",
                "target": "https://www.bosonstudios.com",
                "status": "302"
            },
            {
                "source": "/<*>",
                "target": "/index.html",
                "status": "404-200"
            }
        ],
        "productionBranch": {
            "lastDeployTime": "2022-08-13T13:12:36.782000-04:00",
            "status": "SUCCEED",
            "thumbnailUrl": "its here",
            "branchName": "master"
        },
        "buildSpec": "version: 1\nfrontend:\n  phases:\n    # IMPORTANT - Please verify your build commands\n    build:\n      commands: []\n  artifacts:\n    # IMPORTANT - Please verify your build output directory\n    baseDirectory: /\n    files:\n      - '**/*'\n  cache:\n    paths: []\n",
        "customHeaders": "",
        "enableAutoBranchCreation": false,
        "repositoryCloneMethod": "SSH"
    }
}

  • Some more information. I installed amplify cli and when I try to pull my project I get an error saying "Cannot find any backend environemnt..." which makes sense because my code is hosted in gitlab. Not sure what to do since none of what the docs say should exist does exist...

2 Answers
0

I assume you are talking about amplify hosting. From https://aws.amazon.com/amplify/pricing/ you can see costings for that service. If you delete the amplify app it should delete relevant resource backed behind it.

Make sure you check each region for S3 if you believe there is a bucket charging, and check Cloudformation also as amplify resources can appear there.

AWS
answered 2 years ago
  • I am not wanting to delete the website, I want to keep it around. But I don't need to keep all versions that were deployed. I have gitlab for that.

    the website is hosted in us-east-2, there are no s3 buckets or cloudformation stacks in us-east-2.

0

Got some feedback from aws support.

tldr; => use the aws cli to delete existing jobs. Even if they say they didn't produce artifacts, they did, and that is what is eating up storage space. I had 43 jobs (all of my code pushes for changes over the year) so I deleted all but the last 2 and now my usage is at around 50%. It does take a while for the dashboard to reflect the change (like days, not hours)

I believe that you are referring to Data storage limit, i..e 5 GB data storage per month is reaching. Here, I would like to mention that this data is stored in the S3 buckets internally and currently AWS Amplify console does not have a feature to visualize the front-end build size.

...Here, the team has highlighted Artifacts are stored in Amazon S3 after successful deployments. Currently, those objects will remain in S3 unless you delete them by running commands such as "delete-job" to delete artifacts for a specific job or "delete-branch" to delete objects for all of the jobs for a specific branch (and delete the branch itself).

https://docs.aws.amazon.com/cli/latest/reference/amplify/delete-job.html

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions