Enable reverse sync to push glossary, term, term link, and description changes made in Atlan back to AWS Glue business context.
Push business context updates to AWS Glue Private Preview
Reverse sync of AWS Glue business context is in private preview and is enabled per tenant. The reverse sync options stay hidden in the workflow setup until the feature is enabled for your tenant. It works only in the AWS regions us-east-1, us-east-2, us-west-2, and eu-west-1. To request access, contact your Atlan customer team.
The AWS Glue business context APIs that Atlan calls are also in preview at AWS, so AWS can change them. For details, see the AWS Glue business context user guide.
Atlan can push the changes your data stewards make in Atlan back to AWS Glue business context. This covers glossaries and terms that Atlan imported from AWS Glue, the term links on your Glue tables, views, and columns, and the descriptions of those assets.
Reverse sync is event driven. There is no workflow to schedule and no crawl to run. Once you enable it for a connection, Atlan picks up each change and applies it to AWS Glue for you.
Reverse sync for AWS Glue has two options, and both are off by default:
- Reverse sync business context to Glue covers glossaries, terms, term links, and table and view descriptions.
- Reverse sync column descriptions to Glue covers column descriptions. It has its own option because it needs more access: Atlan writes a column description with
glue:UpdateTable, which also needs a Lake Formation permission on each table.
Prerequisites
Before you enable reverse sync, make sure that:
- Reverse sync of business context is turned on for your tenant. Contact your Atlan customer team.
- You're an admin user in Atlan.
- Your AWS Glue connection imports business context, with Import business context set to Yes, and the crawler has run at least one time. Reverse sync only writes to glossaries and terms that the import brought into Atlan.
- Your AWS Glue connection uses one of the AWS regions in the preview:
us-east-1,us-east-2,us-west-2, oreu-west-1. - Your AWS administrator has added the write permissions to the IAM policy used by the connection, as described in the next section.
Required permissions
Reverse sync needs the business context read permissions and the write permissions on this page. Add the write permissions to the IAM policy you created for Atlan.
| What you want to push | IAM actions | Lake Formation |
|---|---|---|
| Glossary and term changes | glue:GetGlossary, glue:UpdateGlossary, glue:DeleteGlossary, glue:CreateGlossaryTerm, glue:UpdateGlossaryTerm, glue:DeleteGlossaryTerm | None |
| Term links on tables, views, and columns | glue:AssociateGlossaryTerms, glue:DisassociateGlossaryTerms | None |
| Table and view descriptions | glue:UpdateAsset | None |
| Column descriptions | glue:GetTable, glue:UpdateTable | ALTER on each table |
Grant IAM permissions for business context reverse sync
Add this statement for Reverse sync business context to Glue:
{
"Effect": "Allow",
"Action": [
"glue:GetGlossary",
"glue:UpdateGlossary",
"glue:DeleteGlossary",
"glue:CreateGlossaryTerm",
"glue:UpdateGlossaryTerm",
"glue:DeleteGlossaryTerm",
"glue:AssociateGlossaryTerms",
"glue:DisassociateGlossaryTerms",
"glue:UpdateAsset"
],
"Resource": "*"
}
AWS authorizes the business context actions against all resources. A statement that limits them to a table, database, or catalog ARN doesn't grant them, and the writes fail with AccessDeniedException.
Grant permissions for column description reverse sync
Add this statement only when you plan to turn on Reverse sync column descriptions to Glue:
{
"Effect": "Allow",
"Action": [
"glue:GetTable",
"glue:UpdateTable"
],
"Resource": "*"
}
If your account uses AWS Lake Formation, also grant ALTER on each table to the IAM user or role that Atlan uses:
aws lakeformation grant-permissions \
--principal DataLakePrincipalIdentifier=arn:aws:iam::<account-id>:role/<atlan-role-name> \
--permissions ALTER \
--resource '{"Table":{"DatabaseName":"<database-name>","Name":"<table-name>"}}'
Replace <account-id>, <atlan-role-name>, <database-name>, and <table-name> with your values. For an IAM user, use user/<atlan-user-name> in the ARN.
The Atlan CloudFormation template doesn't include these permissions yet. If you created the IAM policy from the template, add them to the policy by hand. IAM changes can take a few minutes to take effect.
Enable reverse sync
To enable reverse sync, either create a new AWS Glue workflow or modify the crawler's configuration of an existing one. On the metadata step of the workflow:
- For Import business context, click Yes. The Reverse sync business context to Glue option appears.
- For Reverse sync business context to Glue, click Yes. The Reverse sync column descriptions to Glue option appears.
- (Optional) For Reverse sync column descriptions to Glue, click Yes.
- Under Preflight checks, click Check to confirm that the IAM permissions support reverse sync. For the messages you may see, see Check your setup with preflight checks.
- Save the workflow.
The new setting takes a few minutes to take effect, and Atlan doesn't notify you when it does. Wait 5 to 10 minutes before you make your first change. You don't need to run the crawler to enable reverse sync.
Atlan discards any change you make while reverse sync is off, and during the few minutes while the setting takes effect. It doesn't queue those changes, and turning reverse sync on later doesn't back-fill them. To push an earlier change to AWS Glue, make the change again after you enable reverse sync.
What propagates
| In Atlan | Change | In AWS Glue |
|---|---|---|
| Glossary imported from Glue | Description changed or cleared | The glossary description is updated. |
| Glossary imported from Glue | Renamed | The glossary is renamed. The (<connection name>) part of the Atlan name isn't sent. |
| Glossary imported from Glue | Deleted | The glossary and all its terms are deleted. |
| Term in an imported glossary | Created | A term is created in the Glue glossary. |
| Term in an imported glossary | Description changed | The term description is updated. See How term descriptions map. |
| Term in an imported glossary | Renamed | The term is renamed. |
| Term in an imported glossary | Deleted | The term is deleted. |
| Table, view, or column | Term linked | The term is linked to the same asset. Only terms from glossaries of the same connection are sent. |
| Table, view, or column | Term unlinked | When you unlink a term from a table, view, or column in Atlan, Atlan removes the term association in AWS Glue. |
| Table or view | Description changed or cleared | The business context description of the asset is updated or cleared. |
| Column | Description changed or cleared | The column comment in the Glue table is updated or removed. Needs Reverse sync column descriptions to Glue. |
Atlan pushes only the description that someone writes in Atlan. A description that Atlan imported from AWS Glue never triggers a push.
How term descriptions map
A Glue term has a short description of up to 1,024 characters and a long description of up to 4,096 characters. An Atlan term has one description.
When you create a term in Atlan, Atlan writes a description of up to 1,024 characters to the short description in AWS Glue, and a longer description to the long description. When you edit an existing term, Atlan writes the change to the field the term already uses in AWS Glue. If the term has a long description, the edit goes there, whatever the length.
| Change in Atlan | Where the text goes in AWS Glue |
|---|---|
| New term, description up to 1,024 characters | Short description |
| New term, description over 1,024 characters | Long description |
| Edit of a term that already has a long description in Glue | Long description |
| Edit of a term that has no long description in Glue | Short description |
Length limits
Atlan never shortens your text. If a name or description is over the AWS Glue limit, Atlan doesn't push that change, and the value in AWS Glue stays as it was. Shorten the text in Atlan to push it.
| Field | AWS Glue limit |
|---|---|
| Glossary or term name | 256 characters |
| Glossary description | 2,048 characters |
| Term short description | 1,024 characters |
| Term long description | 4,096 characters |
| Table or view description | 2,048 characters |
| Column description | 255 characters |
What doesn't propagate
- New glossaries. A glossary you create in Atlan isn't created in AWS Glue. Create the glossary in AWS Glue and import it first.
- Glossaries and terms that Atlan didn't import from this connection. Atlan writes only to the glossaries named
<Glue glossary name> (<connection name>)and their terms. Links to any other term stay in Atlan. - Categories, owners, certificates, README content, tags, and custom metadata. These stay in Atlan.
- A cleared term description. AWS Glue doesn't support clearing a term description. If you clear a term description in Atlan, Atlan skips the write. AWS Glue keeps its current value, and the description stays cleared in Atlan.
- A term moved to another glossary. AWS Glue can't move a term between glossaries.
- Deletes made by a bulk import or another automated package. Only a delete that a user makes in Atlan is sent to AWS Glue.
- Column descriptions on Apache Iceberg tables, multi-dialect views, and subfields of struct columns. Atlan skips these.
- Changes you make while reverse sync is off. Atlan discards them.
What to expect
- A change you make in Atlan reaches AWS Glue within a few minutes. Atlan checks for new changes every few minutes, so a single change isn't instant.
- Atlan wins. A push replaces the value in AWS Glue. If someone edits the same value in AWS Glue, the next change to that object in Atlan overwrites it.
- Deletes are permanent. A glossary or term that reverse sync deletes in AWS Glue can't be restored. As a safety limit, Atlan doesn't push term deletes that remove more than 80% of the terms of one glossary at a time, unless you delete the glossary itself.
- Term links follow Atlan. When you change the term links of an asset in Atlan, Atlan makes the links in AWS Glue match the links in Atlan for that asset. A link that someone added only in AWS Glue after the last crawl is removed.
- The crawler keeps your Atlan links. With reverse sync on, a crawl doesn't remove a term link in Atlan that AWS Glue doesn't have yet.
- A column description is also the technical column comment. Query engines that read the Glue table show the same text.
To check the result in AWS, use the AWS CLI:
# Description and term links of a table or view
aws glue get-asset \
--identifier arn:aws:glue:<region>:<account-id>:table/<database-name>/<table-name>
# Term links of a column
aws glue batch-get-iterable-forms \
--asset-identifier arn:aws:glue:<region>:<account-id>:table/<database-name>/<table-name> \
--iterable-form-name columns \
--item-identifiers <column-name>
# Description of a term
aws glue get-glossary-term --identifier <term-id>
# Column description
aws glue get-table --database-name <database-name> --name <table-name>
If a change doesn't reach AWS Glue:
- Confirm that the reverse sync option for that change is set to Yes for the connection, and that you made the change at least 10 minutes after you saved the setting.
- Run the preflight checks and add any IAM actions they list.
- For a column description, confirm that the IAM user or role has Lake Formation
ALTERon the table, and that the table isn't an Apache Iceberg table. - Confirm that the glossary or term came from this AWS Glue connection, and that the text is within the length limits.
- Confirm that someone wrote the description in Atlan, rather than Atlan importing it from AWS Glue.
Check your setup with preflight checks
With reverse sync turned on, preflight checks add the checks below. They always pass, so they never block you from running the crawler. The message tells you which pushes fail.
| Check | Message | What it means |
|---|---|---|
| Glossary reverse sync permissions | Glossary write permissions validated. glue:CreateGlossaryTerm cannot be checked without creating a term. | The IAM principal can call the write actions that Atlan can test. Atlan can't test glue:CreateGlossaryTerm, so confirm it in your IAM policy. |
| Glossary reverse sync permissions | Glossary reverse sync will fail for writes that need: <actions>. The rest of the crawl runs as normal. | Add the listed actions to the IAM policy. |
| Glossary reverse sync permissions | Could not check the glossary write permissions. A write that IAM denies fails with its reason. | Atlan couldn't test the permissions. Confirm them in your IAM policy. |
| Column description reverse sync permissions | Column description write permission validated. Lake Formation ALTER on each table is also needed and cannot be checked here. The rest of the crawl runs as normal. | The IAM principal can call the column write actions. Confirm the Lake Formation grant yourself. |
| Column description reverse sync permissions | Column description reverse sync will fail for writes that need: <actions>. Lake Formation ALTER on each table is also needed and cannot be checked here. The rest of the crawl runs as normal. | Add the listed actions to the IAM policy. |
Turn off reverse sync
Set Reverse sync business context to Glue to No and save the workflow. Atlan stops pushing changes after a few minutes. Values already pushed stay in AWS Glue. Setting Import business context to No also turns reverse sync off.
To stop only column descriptions, set Reverse sync column descriptions to Glue to No.
See also
- Import AWS Glue business context: Import glossaries, terms, term links, and descriptions from AWS Glue
- Set up AWS Glue: Create the IAM policy and credentials Atlan uses
- Catalog permissions and Lake Formation: How Lake Formation affects what Atlan can access
- Preflight checks for AWS Glue: Checks that validate credentials and permissions before a crawl
- AWS Glue business context user guide: AWS documentation for the feature Atlan writes to