Description Usage Arguments Value Request syntax
View source: R/opsworks_operations.R
Runs deployment or stack commands. For more information, see Deploying Apps and Run Stack Commands.
Required Permissions: To use this action, an IAM user must have a Deploy or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.
1 2 | opsworks_create_deployment(StackId, AppId, InstanceIds, LayerIds,
Command, Comment, CustomJson)
|
StackId |
[required] The stack ID. |
AppId |
The app ID. This parameter is required for app deployments, but not for other deployment commands. |
InstanceIds |
The instance IDs for the deployment targets. |
LayerIds |
The layer IDs for the deployment targets. |
Command |
[required] A |
Comment |
A user-defined comment. |
CustomJson |
A string that contains user-defined, custom JSON. You can use this parameter to override some corresponding default stack configuration JSON values. The string should be in the following format:
For more information about custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes and Overriding Attributes With Custom JSON. |
A list with the following syntax:
1 2 3 | list(
DeploymentId = "string"
)
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | svc$create_deployment(
StackId = "string",
AppId = "string",
InstanceIds = list(
"string"
),
LayerIds = list(
"string"
),
Command = list(
Name = "install_dependencies"|"update_dependencies"|"update_custom_cookbooks"|"execute_recipes"|"configure"|"setup"|"deploy"|"rollback"|"start"|"stop"|"restart"|"undeploy",
Args = list(
list(
"string"
)
)
),
Comment = "string",
CustomJson = "string"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.