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

Reduce number of regions where the image can be shared #90

Merged
merged 1 commit into from
May 24, 2024

Conversation

mjasion
Copy link
Contributor

@mjasion mjasion commented May 23, 2024

Unfortunately we hit the quota limit, while images are not used.

Build 'amazon-ebs.source' errored after 14 minutes 35 seconds: Error modify AMI attributes: ResourceLimitExceeded: You have reached your quota of 5 for the number of public images allowed in this Region. Deregister unused public images or make them private, or request an increase in your public AMIs quota.
	status code: 400, request id: 9dbc1f11-c4e4-41bc-b395-c545b84fa21b

==> Wait completed after 14 minutes 35 seconds

==> Some builds didn't complete successfully and had errors:
--> amazon-ebs.source: Error modify AMI attributes: ResourceLimitExceeded: You have reached your quota of 5 for the number of public images allowed in this Region. Deregister unused public images or make them private, or request an increase in your public AMIs quota.
	status code: 400, request id: 9dbc1f11-c4e4-41bc-b395-c545b84fa21b

Copy link
Member

@0x2b3bfa0 0x2b3bfa0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That error you're getting is about the number of images per region, not about the number of regions.

It's because we're creating a new image for every release, and image names are always different (contain the release date).

Either ask AWS to increase the limit for us, or delete old images, or don't name them with the version/date?

@mjasion
Copy link
Contributor Author

mjasion commented May 23, 2024

@0x2b3bfa0

Hmm, we might start naming them same (studio-selfhosted). In the Description there is a date as I see on the screen:
image

The reason to add unique name to ami image was, that the unregistered AMI was hard to find on calls with Customer. And this is how EKS provide images.
image

Now my proposed solution involves removing the force_delete_snapshot and deregistering the AMI. This could potentially resolve the issue 1.

Footnotes

  1. I cannot find in the documentation how to fix the issue

@mjasion
Copy link
Contributor Author

mjasion commented May 23, 2024

Either ask AWS to increase the limit for us,

Limits are per region, and for each there was a new ticket needed :/

Unfortunately we hit the quota limit, while images are not used.

```
Build 'amazon-ebs.source' errored after 14 minutes 35 seconds: Error modify AMI attributes: ResourceLimitExceeded: You have reached your quota of 5 for the number of public images allowed in this Region. Deregister unused public images or make them private, or request an increase in your public AMIs quota.
	status code: 400, request id: 9dbc1f11-c4e4-41bc-b395-c545b84fa21b

==> Wait completed after 14 minutes 35 seconds

==> Some builds didn't complete successfully and had errors:
--> amazon-ebs.source: Error modify AMI attributes: ResourceLimitExceeded: You have reached your quota of 5 for the number of public images allowed in this Region. Deregister unused public images or make them private, or request an increase in your public AMIs quota.
	status code: 400, request id: 9dbc1f11-c4e4-41bc-b395-c545b84fa21b

```
@mjasion mjasion merged commit 726da66 into main May 24, 2024
4 checks passed
@mjasion mjasion deleted the bump_dependencies branch May 24, 2024 11:52
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

Successfully merging this pull request may close these issues.

2 participants