- Newest
- Most votes
- Most comments
I understand you're facing issues with your production backend deployment after removing the S3 deployment bucket. The error message you're seeing suggests that a key (likely a file or object) that the deployment process is looking for doesn't exist in the S3 bucket.
Simply recreating the S3 bucket isn't enough, as it doesn't automatically repopulate the bucket with the necessary deployment files. This explains why you're still encountering the "NoSuchKey" error.
To resolve this issue, you have a few options:
-
Manually upload the deployment files: If you have a backup of the deployment files, you can manually upload them to the newly created S3 bucket. This should include your application code and any necessary configuration files.
-
Redeploy your application: Instead of trying to update the existing stack, you might need to create a new deployment. This would involve pushing your code to the repository again and triggering a new deployment pipeline. This should repopulate the S3 bucket with the necessary files.
-
Force a full stack update: While updating the CloudFormation stack didn't work, you could try to force a full update by making a small change to your CloudFormation template and then updating the stack. This might trigger a more comprehensive update process.
-
Recreate the entire stack: If the above options don't work, you might need to delete the existing stack and create a new one. Before doing this, make sure you have backups of any important data, as this process will destroy and recreate all resources defined in your CloudFormation template.
Remember, when working with production environments, it's crucial to have proper backups and follow change management processes to prevent unexpected issues. Also, consider implementing safeguards in your infrastructure-as-code setup to prevent accidental deletion of critical resources like deployment buckets.
If you continue to face issues, you may need to review your deployment logs in more detail or consult with your DevOps team for a more tailored solution based on your specific setup.
Sources
Deploy to Elastic Beanstalk with GitHub Actions | .NET on AWS Blog
View CloudFormation stack events - AWS CloudFormation
The answer was missing files in my new S3. In this case the graphql model schema. I just copied the one from the working sandbox to the s3 production bucket
Relevant content
- AWS OFFICIALUpdated 3 years ago
