Skip to content

What are inactive/active schemas in AWS EventBridge schema registry?

0

I am working with AWS schema registry and I came across this line where it says:

Inactive schemas will be deleted after two years.

https://docs.aws.amazon.com/eventbridge/latest/schema-reference/v1-registries-name-registryname-schemas-name-schemaname.html#v1-registries-name-registryname-schemas-name-schemaname-prop-describeschemaoutput-lastmodified

What does it mean to have an active and inactive schema? I could not find anything related to this in the AWS docs.

If it does delete the schemas in a custom registry, what is the best way of storing and retrieving schemas if AWS deletes them after two years?.

asked 2 years ago259 views
1 Answer
0

hello

An inactive schema in Amazon EventBridge refers to a schema that is not currently being used to validate incoming events on the associated event bus.

When you create a custom schema in the EventBridge Schema Registry, it becomes an active schema by default, meaning it can be used to validate events. However, you can choose to make a schema inactive (you can do this from the console or from the API), which means it will no longer be used to validate events sent to the event bus. Inactive schemas are still stored in the Schema Registry, but they are not applied to incoming events. You can view and manage both active and inactive schemas for your event buses in the EventBridge console under the "Schemas" section. Inactive schemas can be reactivated later if needed, allowing you to switch between active schemas as required. Maintaining inactive schemas can be useful for preserving historical schema versions or keeping schemas for event types that are no longer in use.

Hope This helps!

AWS
answered 2 years ago
  • Thank you for your answer, can you link me to the api doc or console where I can toggle inactive/active schemas, currently I cannot see this option anywhere under Eventbridge console.

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.