addResourceToEnvironmentTier

Back to index

Summary

Adds a resource to the specified environment tier.
resourceName
Stringrequired
Name for the resource; must be unique among all resources.
projectName
Stringrequired
The name for the project that must be unique among all projects.
environmentName
Stringrequired
The name of the environment.
environmentTierName
Stringrequired
Name for the environment tier; must be unique among all tiers for the environment.
rollingDeployPhaseName
Stringoptional
Name for the rolling deploy phase to be associated with the resource.

Usage

Perl

$cmdr->addResourceToEnvironmentTier( "test-resourceName", # resourceName "test-projectName", # projectName "test-environmentName", # environmentName "test-environmentTierName" # environmentTierName # optionals );

ectool

ectool addResourceToEnvironmentTier \ "test-resourceName" `# resourceName` \ "test-projectName" `# projectName` \ "test-environmentName" `# environmentName` \ "test-environmentTierName" `# environmentTierName` \ # optionals

Examples

Perl

$cmdr->addResourceToEnvironmentTier("Web Server", "Default", "DEV", "DB Server", {rollingDeployPhaseName => "Blue UAT demo"});

ectool

ectool addResourceToEnvironmentTier "Web Server" "Default" "DEV" "DB Server" --rollingDeployPhaseName "Blue UAT demo"