imagebuilder-component-publish

Validate and publish AWS Image Builder component versions with durable evidence artifacts.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/amitkarpe/agent-skills --skill imagebuilder-component-publish-amitkarpe
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: imagebuilder-component-publish
Source: https://github.com/amitkarpe/agent-skills/tree/main/skills/imagebuilder-component-publish
Command: npx skills add https://github.com/amitkarpe/agent-skills --skill imagebuilder-component-publish-amitkarpe

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyyaml, jq, aws-cli, and includes scripts (resource) components.

What problem does it solve? Registering AWS Image Builder component versions often involves fragile, repo-specific scripts that duplicate logic and leave no audit trail. This Skill replaces that glue with a reusable check-or-create workflow that parses component YAML, detects existing versions, and captures durable evidence for every run. ## Core Features & Use Cases - Check-or-Create Workflow: Parses a component YAML file, computes the expected component ARN, checks whether the version already exists, and publishes only when needed. - Durable Evidence Capture: Writes plan.json, result.json, component-name.txt, component-arn.txt, and create-component.json to a specified output directory for auditing. - Safe Dry-Run Mode: The --check-only flag validates the parsed name and computed ARN against a real AWS account before any publish occurs. - Use Case: A platform team owns component YAML in their repo and needs to register version 1.2.0 of a hardening component. They run the script with --check-only to confirm the ARN, then publish, treating an already-existing version as a successful no-op. ## Quick Start Ask the agent to check whether the Image Builder component defined in your component YAML at version 1.0.0 already exists in your AWS account, running in check-only mode first before publishing.

Frequently Asked Questions about imagebuilder-component-publish

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I publish an AWS Image Builder component version from a YAML file?▼

Run scripts/publish-component.sh with --component-file, --version, --profile, --region, and --output-dir. The script parses the YAML, checks for an existing version, and calls aws imagebuilder create-component only if the version does not already exist.

How do I check if an Image Builder component version already exists?▼

Use the --check-only flag with the publish script. It computes the component ARN from your account ID, region, name, and version, calls get-component, and writes the result to plan.json and result.json without creating anything.

What happens if the Image Builder component version already exists?▼

The script treats an existing version as a successful no-op. It writes result.json with exists set to true, prints the component ARN to stdout, and exits without calling create-component.

What dependencies are required to run the Image Builder publish script?▼

The script requires bash, the AWS CLI with a configured profile, jq for JSON construction, and Python 3 with the PyYAML library to parse the component YAML file.

When should I not use this component publish workflow?▼

Do not use it to edit component YAML content, build full image recipes, or poll image bakes. Those tasks belong to the imagebuilder-bake-validate skill or direct YAML editing in the owning repository.