Todos os produtos
Search
Central de documentação

CloudOps Orchestration Service:ACS::CICD::SoftwarePackageDeploy

Última atualização: Sep 09, 2026

Ação

ACS::CICD::SoftwarePackageDeploy

Descrição

Implanta um pacote de software em várias instâncias do Elastic Compute Service (ECS). Há suporte apenas para instâncias ECS Linux.

Sintaxe

Action: ACS::CICD::SoftwarePackageDeploy
Properties:
  regionId: String
  targets: Json
  bucketName: String
  objectName: String
  isInternal: Boolean
  downloadPath: String
  deployScript: String
  rateControl: Json

Atributos

Atributo

Descrição

Tipo

Obrigatório

Valor padrão

Limite

regionId

ID da região.

String

Não

{{ ACS::RegionId }}

targets

Instâncias ECS de destino para implantar o pacote de software.

Json

Sim

bucketName

Nome do bucket do Object Storage Service (OSS).

String

Sim

objectName

Nome do objeto OSS.

String

Sim

isInternal

Define se uma URL interna será gerada.

Boolean

Não

True

downloadPath

Caminho local para baixe o pacote de software.

String

Não

/home/admin/app/

deployScript

Script de implantação.

String

Não

# The deployment script is execute on each instance in the deployment group. The following script shows the typical logic: Decompress the software package that is stored in the download directory to the specified directory and then execute the startup script. The startup script is usually specified in the code, such as deploy.sh in the sample project. 
# For more information about this sample project, see Deployment configuration.
# tar zxvf /home/admin/app/package.tgz -C /home/admin/app/
# sh /home/admin/app/deploy.sh restart
# If you are using languages such as PHP that require no product code package to produce products, you can execute the git clone or git pull command to synchronize the source code to your server and then execute other commands.
# git clone @.git

rateControl

Configurações de controle de taxa.

Json

Não

{'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10}

Saída

Nenhuma

Referências

Para mais informações, consulte ACS::CICD::SoftwarePackageDeploy.yml no GitHub.