All Products
Search
Document Center

CloudOps Orchestration Service:ACS::CICD::SoftwarePackageDeploy

Last Updated:Sep 13, 2024

Action

ACS::CICD::SoftwarePackageDeploy

Description

Deploys a software package on multiple Elastic Compute Service (ECS) instances. This operation can be performed only on Linux ECS instances.

Syntax

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

Attributes

Attribute

Description

Type

Required

Default value

Limit

regionId

The region ID.

String

No

{{ ACS::RegionId }}

targets

The ECS instances on which you want to deploy the software package.

Json

Yes

bucketName

The name of the Object Storage Service (OSS) bucket.

String

Yes

objectName

The name of the OSS object.

String

Yes

isInternal

Specifies whether to generate an internal URL.

Boolean

No

True

downloadPath

The download path of the software package.

String

No

/home/admin/app/

deployScript

The deployment script.

String

No

# The deployment script is run 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 run 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 run the git clone or git pull command to synchronize the source code to your server and then run other commands.
# git clone @.git

rateControl

The rate control settings.

Json

No

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

Output

None

References

For more information, see ACS::CICD::SoftwarePackageDeploy.yml at GitHub.