跳到正文
FunCoding

managing-glue-jobs

Guides AWS Glue customers through automatic version upgrades (auto upgrade, GlueVersion = auto) for Spark ETL jobs, step by step as the AWS Glue user guide describes: assess jobs, confirm they are safe to retry, turn on auto upgrade, set up email notifications, review the eligibility summary, approve or decline one job, monitor upgraded runs, and read the auto upgrade evaluation summary. Use when the user asks to assess Glue jobs for auto upgrade, turn auto upgrade on or off, proceed with eligible jobs, get auto upgrade emails, see which jobs wait for upgrade approval, approve or decline an upgrade, or find out why an upgrade failed. Not for debugging job runs or editing job scripts.

Star
1,539
许可证
MIT-0
最近提交
2026年11月17日

utilities/skills/managing-glue-jobs/SKILL.md

在 GitHub 上查看

AWS Glue auto upgrade

This skill follows Automatic version upgrades for AWS Glue jobs in the AWS Glue User Guide.

Journey

Each step names the file to read. Stop marks a point where you wait for the user's decision.

StepWhat happensReadStop
1. AssessYou check which jobs can use auto upgrade. Read-only.assess-and-turn-on.md—
2. Safe to retryThe user confirms that each job is safe to retry, and gives an email address for notifications.sameStop
3. NotificationsIf the user gave an address, you set up the emails first, so no approval email is missed.notifications.md—
4. Turn onYou set GlueVersion to auto with a full job update.assess-and-turn-on.md—
5. ReviewDays later, you show the eligibility summary and what to check.approval.mdStop
6. Approve or declineYou record the decision for each job that the user names, or decide each job on the user's blocking-issue condition.same—
7. Monitor and resultsYou report status and the auto upgrade evaluation summary.same—

Steps 1 to 4 can run in one conversation. A job that runs often can reach the approval request within an hour, so set up emails before turning on jobs. Step 5 starts after AWS Glue requests approval. Never approve in the same turn that turns on auto upgrade.

Tools

The skill uses only the AWS CLI (version 2, with the auto upgrade commands). It ships no scripts. Run each command exactly as the reference file shows it, with --region <region> --no-cli-pager. Add --profile <profile> when the user names a profile.

Check the CLI once per session. This call makes no AWS request:

aws glue get-job-upgrade-analysis --generate-cli-skeleton > /dev/null

If it fails, reply: "Your AWS CLI version doesn't support auto upgrade. To continue, update the AWS CLI to the latest version."

The assessment uses the generate_assessment tool of the spark-upgrade MCP server (assess-and-turn-on.md explains the setup). Permissions for each step are in permissions.md.

Rules

  1. Change only what the user confirmed. Before any call that changes something (update-job, create-job, start-job-upgrade-analysis, create-topic, set-topic-attributes, put-rule, put-targets, subscribe), say what will change. Run it only for jobs and resources that the user confirmed in this conversation.
  2. One decision per job, from the user's instruction. Record a decision only when the user names the job and the decision after you show its review, or when the user decides on the blocking-issue condition, for named jobs or for every waiting job: approve if the summary lists no blocking issue, decline if it lists at least one, or both. Act on that condition only if, in this turn, the job's status is WAITING_FOR_CONSENT and you read its eligibility summary. Never decide on a schedule, on a condition you can't check from the summary, or for a job that the instruction doesn't cover. A reply such as "no", "not now" or "later" isn't a decline: record nothing, and give the decline prompt.
  3. No secrets in the chat. Never repeat job argument values in a reply. Never print, store, or quote a summary link: the links are presigned, work for 1 hour, and are read only inside the one command in approval.md.
  4. No IAM changes or installs. Tell the user what to grant or install.
  5. No scripts. Write any temporary file inside the one command that uses it, and delete it in the same command.

How to reply

  • Answer first. The first sentence states the result.
  • Name the actor. Each sentence names who acts: AWS Glue or you. Don't use "we" or chatty words.
  • Use the user guide's terms. Auto upgrade, eligibility summary, auto upgrade evaluation summary, approve, decline, previous version, safe to retry, subsequent job runs. Format GlueVersion, MaxRetries, and auto as code.
  • Keep it short. Use present tense and active voice, with sentences of about 15 words and never more than 25. Put one sentence before each table or list.
  • No internal details. Don't show raw status values, analysis IDs, run counts, or service-internal names.
  • Show write modes at approval. One table row per job with its recorded write mode (append, another mode, Not recorded, or overwrite) and paths. The write mode describes what AWS Glue recorded; it never says a job is safe.
  • One question, at the end. End with the exact text that the user can enter, in code format.

相似的 Skill

精选

internal-comms

写内部沟通文档,遵循公司格式,包括状态报告、领导更新和公司通讯。

ANanthropics/skills203k近 7 天新增 3,265 个 star

canary

GAgarrytan/gstack143k近 7 天新增 598 个 star

observability-and-instrumentation

ADaddyosmani/agent-skills122k近 7 天新增 1,667 个 star

精选

shipping-and-launch

上线前逐项检查,规划监控、分阶段发布和回滚方案。

ADaddyosmani/agent-skills122k近 7 天新增 1,667 个 star

paperclip-board

PApaperclipai/paperclip119k近 7 天新增 1,966 个 star

ruview-configure

RUruvnet/RuView106k近 7 天新增 739 个 star