Security for auto upgrade
Encryption
AWS Glue keeps run metadata and the summaries apart for each evaluation. All of it is encrypted at rest.
Encrypting the summaries with your own key
To encrypt the summaries with a customer managed key
-
Add the
--auto-upgrade-metadata-kms-key-arnjob parameter. Its value is the full ARN of a symmetric AWS Key Management Service (AWS KMS) key, for examplearn:aws:kms:. This parameter doesn't support aliases.us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890abFor example, add it to the job's
DefaultArgumentswhen you turn on auto upgrade:aws glue update-job \ --job-namemy-etl-job\ --job-update '{ "Role": "arn:aws:iam::111122223333:role/MyGlueJobRole", "Command": {"Name": "glueetl", "ScriptLocation": "s3://amzn-s3-demo-bucket/scripts/my-etl-job.py"}, "GlueVersion": "auto", "MaxRetries": 1, "DefaultArguments": {"--auto-upgrade-metadata-kms-key-arn": "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"} }' -
AWS Glue then uses the job role to encrypt the summaries with your key. Your key policy only needs to allow your own users and roles. Add a statement like the following to the key policy:
{ "Sid": "AllowGlueJobRoleToEncryptAutoUpgradeSummaries", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::111122223333:role/MyGlueJobRole" }, "Action": [ "kms:GenerateDataKey", "kms:Decrypt" ], "Resource": "*" } -
Give users who read the summaries
kms:Decrypton the key.
AWS Glue checks that the job role can use the key. AWS Glue runs this check when the evaluation starts and again before approval. If the check fails, the evaluation stops with the following reason:
The job execution role cannot use the KMS key in --auto-upgrade-metadata-kms-key-arn. Grant the role kms:GenerateDataKey and kms:Decrypt on that key.
To read a downloaded summary
-
Decrypt the summary with the AWS Encryption CLI:
aws-encryption-cli --decrypt \ --inputauto_upgrade_summary.md\ --wrapping-keys key=arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab\ --commitment-policy require-encrypt-require-decrypt \ --outputauto_upgrade_summary.decrypted.md
Data handling
Auto upgrade handles your data as follows:
AWS Glue uses the job role to read your script and dependency files. It doesn't change your script.
AWS Glue collects run metadata to form a baseline. This includes the job's writes, output schema, record counts, and run time. AWS Glue doesn't access your input or output data. The metadata is encrypted at rest. AWS Glue keeps it apart for each account and evaluation. For more information, see Encryption.
The check uses generative AI to explain issues and suggest fixes. The check uses Amazon Bedrock with cross-Region inference. Requests stay in AWS Regions in your geography, such as the US. Your data stays in your primary Region. Prompts and results might go to another Region in that geography. All data is encrypted in transit. Cross-Region inference has no extra cost. For more information, see Increase throughput with cross-Region inference.