<a id="cli-aws-amplifygen3-api-get-deployment"></a>

# get-deployment

## Description

Retrieves a deployment for an environment of a Gen 3 app.

See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/amplifygen3-2025-09-18/GetDeployment)

## Synopsis

```
  get-deployment
--app-name <value>
--environment-name <value>
--deployment-id <value>
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
[--cli-error-format <value>]
[--help]
```

## Options

`--app-name` (string) [required]

> The name of the app.

> Constraints:

> * min: `1`
> * max: `40`

`--environment-name` (string) [required]

> The name of the environment.

> Constraints:

> * min: `1`
> * max: `40`

`--deployment-id` (string) [required]

> The ID of the deployment.

> Constraints:

> * min: `10`
> * max: `10`
> * pattern: `[a-z0-9]{10}`

`--cli-input-json` | `--cli-input-yaml` (string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by `--generate-cli-skeleton`. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with `--cli-input-yaml`.

`--generate-cli-skeleton` (string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value `input`, prints a sample input JSON that can be used as an argument for `--cli-input-json`. Similarly, if provided `yaml-input` it will print a sample input YAML that can be used with `--cli-input-yaml`. If provided with the value `output`, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.

## Global Options

`--debug` (boolean)

Turn on debug logging.

`--endpoint-url` (string)

Override command’s default URL with the given URL.

`--no-verify-ssl` (boolean)

By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.

`--no-paginate` (boolean)

Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.

`--output` (string)

The formatting style for command output.

* json
* text
* table
* yaml
* yaml-stream
* off

`--query` (string)

A JMESPath query to use in filtering the response data.

`--profile` (string)

Use a specific profile from your credential file.

`--region` (string)

The region to use. Overrides config/env settings.

`--version` (string)

Display the version of this tool.

`--color` (string)

Turn on/off color output.

* on
* off
* auto

`--no-sign-request` (boolean)

Do not sign requests. Credentials will not be loaded if this argument is provided.

`--ca-bundle` (string)

The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.

`--cli-read-timeout` (int)

The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.

`--cli-connect-timeout` (int)

The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.

`--cli-binary-format` (string)

The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob `fileb://` will always be treated as binary and use the file contents directly regardless of the `cli-binary-format` setting. When using `file://` the file contents will need to properly formatted for the configured `cli-binary-format`.

* base64
* raw-in-base64-out

`--no-cli-pager` (boolean)

Disable cli pager for output.

`--cli-auto-prompt` (boolean)

Automatically prompt for CLI input parameters.

`--no-cli-auto-prompt` (boolean)

Disable automatically prompt for CLI input parameters.

`--cli-error-format` (string)

The formatting style for error output. By default, errors are displayed in enhanced format.

* legacy
* json
* yaml
* text
* table
* enhanced

`--help` (boolean)

Display help for the command/subcommand.

## Output

AppName -> (string)

> The name of the app.

> Constraints:

> * min: `1`
> * max: `40`

DeploymentId -> (string)

> The ID of the deployment.

> Constraints:

> * min: `10`
> * max: `10`
> * pattern: `[a-z0-9]{10}`

DeploymentArn -> (string)

> The Amazon Resource Name (ARN) of the deployment.

> Constraints:

> * min: `1`
> * max: `512`

EnvironmentName -> (string)

> The name of the environment.

> Constraints:

> * min: `1`
> * max: `40`

SourceConfig -> (tagged union structure)

> The source configuration for the deployment.

> #### NOTE
> This is a Tagged Union structure. Only one of the following top level keys can be set: `GitSource`, `ManualUploadSource`.

> GitSource -> (structure)

> > The Git source information.

> > GitRef -> (string) [required]

> > > The Git reference to deploy, such as a branch or tag.

> > RepositoryUrl -> (string) [required]

> > > The URL of the source repository.

> > CommitId -> (string)

> > > The commit ID of the source.

> > CommitMessage -> (string)

> > > The commit message of the source.

> > Author -> (string)

> > > The author of the commit.

> ManualUploadSource -> (structure)

> > The manually uploaded source information.

> > SourceUploadId -> (string) [required]

> > > The ID of the source upload.

> > > Constraints:

> > > * min: `1`
> > > * max: `128`
> > > * pattern: `[a-zA-Z0-9-]+`

> > SourceType -> (string) [required]

> > > The type of source, such as source code or a prebuilt artifact. If you use PREBUILT_ARTIFACT, Amplify Gen 3 uploads your source as-is; however, when you deploy your app, Amplify Gen 3 still optimizes artifacts for performance.

> > > Possible values:

> > > * `SOURCE_CODE`
> > > * `PREBUILT_ARTIFACT`

Description -> (string)

> The description of the deployment.

> Constraints:

> * min: `0`
> * max: `256`

Status -> (string)

> The status of the deployment.

> Possible values:

> * `QUEUED`
> * `IN_PROGRESS`
> * `SUCCEEDED`
> * `FAILED`
> * `EXPIRED`
> * `CANCELLED`

DomainName -> (string)

> The fully qualified domain name.

> Constraints:

> * min: `1`
> * max: `256`

Aliases -> (list)

> The aliases.

> (structure)

> > Summary information for an alias.

> > AliasName -> (string) [required]

> > > The name of the alias.

> > > Constraints:

> > > * min: `2`
> > > * max: `128`
> > > * pattern: `[a-z0-9][a-z0-9-]*[a-z0-9]`

> > AliasArn -> (string) [required]

> > > The Amazon Resource Name (ARN) of the alias.

> > > Constraints:

> > > * min: `1`
> > > * max: `512`

> > Type -> (string) [required]

> > > The type of the alias.

> > > Possible values:

> > > * `ENVIRONMENT`
> > > * `BRANCH`
> > > * `PULL_REQUEST`

> > Url -> (string)

> > > The URL of the alias.

> > > Constraints:

> > > * min: `1`
> > > * max: `2048`

> > RoutingConfig -> (list)

> > > The traffic routing configuration.

> > > Constraints:

> > > * min: `1`
> > > * max: `1`

> > > (structure)

> > > > An entry that maps a portion of traffic to a deployment.

> > > > DeploymentId -> (string) [required]

> > > > > The ID of the deployment that receives the traffic.

> > > > > Constraints:

> > > > > * min: `10`
> > > > > * max: `10`
> > > > > * pattern: `[a-z0-9]{10}`

> > > > Weight -> (integer) [required]

> > > > > The percentage of traffic to route to the deployment.

> > > > > Constraints:

> > > > > * min: `0`
> > > > > * max: `100`

> > CreatedAt -> (timestamp) [required]

> > > The time at which the alias was created. The value is in ISO-8601 format.

> > UpdatedAt -> (timestamp)

> > > The time at which the alias was last updated. The value is in ISO-8601 format.

EnvironmentVariables -> (list)

> The environment variables.

> (structure)

> > An environment variable for an environment.

> > Key -> (string) [required]

> > > The key of the environment variable.

> > > Constraints:

> > > * min: `1`
> > > * max: `128`
> > > * pattern: `[a-zA-Z]([a-zA-Z0-9_])*`

> > Value -> (string)

> > > The value of the environment variable. Omitted for secrets.

> > > Constraints:

> > > * min: `1`
> > > * max: `4096`

> > Type -> (string) [required]

> > > The type of the environment variable.

> > > Possible values:

> > > * `PLAINTEXT`
> > > * `SENSITIVE`

> > Comment -> (string)

> > > An optional comment describing the environment variable.

> > > Constraints:

> > > * min: `0`
> > > * max: `1024`

> > SourceIntegrationArn -> (string)

> > > The Amazon Resource Name (ARN) of the integration that provides this environment variable, if any.

> > > Constraints:

> > > * min: `1`
> > > * max: `2048`
> > > * pattern: `arn:aws[a-zA-Z-]*:amplifygen3:[a-z0-9-]+:[0-9]{12}:integration-configuration/[a-zA-Z0-9]([a-zA-Z0-9_-]*[a-zA-Z0-9])?`

> > Scope -> (string)

> > > The scope where the environment variable is available.

> > > Possible values:

> > > * `BUILD`
> > > * `RUNTIME`
> > > * `ALL`
> > > * `BACKEND`

CreatedAt -> (timestamp)

> The time at which the deployment was created. The value is in ISO-8601 format.

StartedAt -> (timestamp)

> The time at which processing started. The value is in ISO-8601 format.

EndedAt -> (timestamp)

> The time at which processing ended. The value is in ISO-8601 format.

ExpiredAt -> (timestamp)

> The time at which the deployment expired. The value is in ISO-8601 format.

StatusReason -> (string)

> The reason for the status.

> Constraints:

> * min: `0`
> * max: `1000`

StatusReasonCode -> (string)

> A code that identifies the reason for the status.

> Possible values:

> * `INTERNAL_SERVICE_ERROR`
> * `BUILD_FAILED`
> * `BUILD_TIMEOUT`
> * `OUTPUT_DIRECTORY_NOT_FOUND`
> * `GIT_CLONE_FAILED`
> * `SOURCE_DOWNLOAD_FAILED`
> * `CONFIG_RETRIEVAL_FAILED`
> * `BINDING_RESOLUTION_FAILED`
> * `RESOURCE_DELETED`
> * `COLLAPSED`
> * `AT_ACCOUNT_CONCURRENCY_LIMIT`
> * `OTHER_DEPLOYMENT_IN_PROGRESS`
> * `MIGRATION_FAILED`
> * `BRANCH_LIMIT_EXCEEDED`
> * `PUBLISHABLE_KEY_LIMIT_EXCEEDED`
> * `ROLE_NOT_ASSUMABLE`

SessionPolicy -> (string)

> The IAM session policy, as a JSON document, that the app’s runtime was scoped to for this deployment.

> Constraints:

> * min: `0`
> * max: `2048`

Branch -> (structure)

> The branch that the deployment ran against. Present after the deployment’s branch exists.

> BranchName -> (string) [required]

> > The name of the branch.

> > Constraints:

> > * min: `1`
> > * max: `128`
> > * pattern: `[a-z0-9]([a-z0-9-]*[a-z0-9])?`

> BranchArn -> (string) [required]

> > The Amazon Resource Name (ARN) of the branch.

> > Constraints:

> > * min: `1`
> > * max: `512`
> > * pattern: `arn:(aws|aws-cn|aws-us-gov):amplifygen3:[a-z0-9-]+:[0-9]{12}:app/[a-zA-Z0-9]([a-zA-Z0-9_-]*[a-zA-Z0-9])?/environment/[a-zA-Z0-9]([a-zA-Z0-9_-]*[a-zA-Z0-9])?/branch/[a-z0-9]([a-z0-9-]*[a-z0-9])?`

> Backend -> (structure)

> > The backend settings of the branch when the deployment ran.

> > Url -> (string)

> > > The URL of the branch’s backend when the deployment ran.

> > > Constraints:

> > > * min: `1`
> > > * max: `2048`

> > PublishableKeyId -> (string)

> > > The ID of the publishable key that the deployment was built with. Use this ID with GetApiKey or RevokeApiKey.

> > > Constraints:

> > > * min: `1`
> > > * max: `64`

Backend -> (structure)

> The backend settings that the deployment captured when it was created. Present only when the app has a backend.

> MigrationsDirectory -> (string)

> > The directory that contains the migration files, relative to the root of the source.

> > Constraints:

> > * min: `1`
> > * max: `256`

> Auth -> (string)

> > The authentication settings that the deployment sent to its branch, as a JSON document, whether or not the deployment succeeded.

> > Constraints:

> > * min: `2`
> > * max: `32768`

> Database -> (structure)

> > The database settings that the deployment sent to its branch, whether or not the deployment succeeded.

> > MaxBackendCapacityUnits -> (integer)

> > > The maximum number of backend capacity units that the environment’s database can scale to.

> > BackupRetentionDays -> (integer)

> > > The number of days that automated backups are kept. This is also how far back the environment’s database can be restored.

Steps -> (structure)

> The steps of the deployment. Each step that applies to the deployment is present from the time that the deployment is created.

> Build -> (structure)

> > The build step.

> > Status -> (string) [required]

> > > The status of the step.

> > > Possible values:

> > > * `NOT_STARTED`
> > > * `IN_PROGRESS`
> > > * `SUCCEEDED`
> > > * `FAILED`

> > StartedAt -> (timestamp)

> > > The time at which the step started.

> > EndedAt -> (timestamp)

> > > The time at which the step ended.

> Migration -> (structure)

> > The database migration step.

> > Status -> (string) [required]

> > > The status of the step.

> > > Possible values:

> > > * `NOT_STARTED`
> > > * `IN_PROGRESS`
> > > * `SUCCEEDED`
> > > * `FAILED`

> > StartedAt -> (timestamp)

> > > The time at which the step started.

> > EndedAt -> (timestamp)

> > > The time at which the step ended.

> > AppliedMigrationNames -> (list)

> > > The names of the migrations that the step applied.

> > > Constraints:

> > > * min: `0`
> > > * max: `200`

> > > (string)

> > > > Constraints:

> > > > * min: `1`
> > > > * max: `512`

> > SkippedMigrationNames -> (list)

> > > The names of the migrations that the step skipped.

> > > Constraints:

> > > * min: `0`
> > > * max: `200`

> > > (string)

> > > > Constraints:

> > > > * min: `1`
> > > > * max: `512`

> Deploy -> (structure)

> > The deploy step.

> > Status -> (string) [required]

> > > The status of the step.

> > > Possible values:

> > > * `NOT_STARTED`
> > > * `IN_PROGRESS`
> > > * `SUCCEEDED`
> > > * `FAILED`

> > StartedAt -> (timestamp)

> > > The time at which the step started.

> > EndedAt -> (timestamp)

> > > The time at which the step ended.
