aws-ecr Verified for current stable LTS

Aws Ecr Command: Create Repository

An engineer would use the AWS ECR command to create a new container image repository in a specific AWS region while configuring image scanning settings, particularly when setting up a continuous integration pipeline that requires automated vulnerability scans on pushed images. Exact CLI syntax to create repository using Aws Ecr.

When to use this: An engineer would use the AWS ECR command to create a new container image repository in a specific AWS region while configuring image scanning settings, particularly when setting up a continuous integration pipeline that requires automated vulnerability scans on pushed images.

Command Syntax

aws ecr create-repository --repository-name <repository> --image-scanning-configuration scanOnPush=<true|false> --region <region>

Command Breakdown

--repository-name
Command Option
Tool-specific option used by this command invocation.
--image-scanning-configuration
Command Option
Tool-specific option used by this command invocation.
--region
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to create repository using Aws Ecr.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Aws Ecr directory