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

Deregistering versions is not intuitive #401

Open
richardhboyd opened this issue Feb 25, 2020 · 3 comments
Open

Deregistering versions is not intuitive #401

richardhboyd opened this issue Feb 25, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers p1 Medium priority researching

Comments

@richardhboyd
Copy link
Contributor

I hit the maximum number of versions of my resource and it wasn't clear what I should do.

  • Am I stuck?
  • Can I delete old types?
  • Can I update a resource without incrementing the version (useful when developing)?

I eventually figured out that I needed to deregister old versions, but that feature is nested within the deregister-type command and it took longer than I would have liked to figure out I can use that to deregister individual versions of a type.

I'd like to be able to say "deregister-version" and give it an arn to deregister

I'd like to be able to say "deregister-non-default" and give it a type and it will deregister all non-default versions for that type (though I can see how this might be dangerous)

@richardhboyd richardhboyd changed the title Deregistering types is not intuitive Deregistering versions is not intuitive Feb 25, 2020
@ammokhov ammokhov added the enhancement New feature or request label Oct 14, 2020
@PatMyron PatMyron pinned this issue Apr 27, 2021
@PatMyron
Copy link
Contributor

PatMyron commented Apr 28, 2021

can deregister specific versions:

aws cloudformation deregister-type --arn --version-id


or request quota increase:

https://console.aws.amazon.com/servicequotas/home/services/cloudformation/quotas/L-EA1018E8
aws service-quotas request-service-quota-increase --service-code cloudformation --quota-code L-EA1018E8 --desired-value


or deregister non-default versions with this Python script:

import boto3
client = boto3.client('cloudformation')
for version in client.list_type_versions(Type='RESOURCE', TypeName=type_name)['TypeVersionSummaries']:
  if not version['IsDefaultVersion']:
    client.deregister_type(Arn=version['Arn'])

@richardhboyd
Copy link
Contributor Author

I went to my doctor and said "My back hurts when I walk up stairs" and my doctor tells me "don't walk up stairs."

I understand that raising the quota can make the problem occur leas frequently, but my issue was more that the ergonomics for deregistering types isn't very deightful.

@gandhek gandhek added the good first issue Good for newcomers label Jun 3, 2021
@cmgorton cmgorton added researching p1 Medium priority labels Oct 17, 2022
@glb
Copy link

glb commented Apr 6, 2023

I had to raise a support request to even find out that it was possible to deregister a type. It's odd that cfn-cli supports the rest of the lifecycle but not deregistering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers p1 Medium priority researching
Projects
None yet
Development

No branches or pull requests

7 participants