Amazon OpsWorks deploy action reference - Amazon CodePipeline
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Amazon OpsWorks deploy action reference

You use an Amazon OpsWorks action to deploy with OpsWorks using your pipeline.

Action type

  • Category: Deploy

  • Owner: AWS

  • Provider: OpsWorks

  • Version: 1

Configuration parameters

App

Required: Yes

The Amazon OpsWorks stack. A stack is a container for your application infrastructure.

Stack

Required: Yes

The Amazon OpsWorks app. The app represents the code you want to deploy and run.

Layer

Required: No

The Amazon OpsWorks stack. A layer specifies the configuration and resources for a set of instances.

Input artifacts

  • Number of artifacts: 1

  • Description: This is the input artifact for your action.

Output artifacts

  • Number of artifacts: 0 to 1

  • Description: Output artifacts do not apply for this action type.

Service role permissions: Amazon OpsWorks action

For Amazon OpsWorks support, add the following to your policy statement:

{ "Effect": "Allow", "Action": [ "opsworks:CreateDeployment", "opsworks:DescribeApps", "opsworks:DescribeCommands", "opsworks:DescribeDeployments", "opsworks:DescribeInstances", "opsworks:DescribeStacks", "opsworks:UpdateApp", "opsworks:UpdateStack" ], "Resource": "resource_ARN" },

Example action configuration

YAML
Name: ActionName ActionTypeId: Category: Deploy Owner: AWS Version: 1 Provider: OpsWorks InputArtifacts: - Name: myInputArtifact Configuration: Stack: my-stack App: my-app
JSON
{ "Name": "ActionName", "ActionTypeId": { "Category": "Deploy", "Owner": "AWS", "Version": 1, "Provider": "OpsWorks" }, "InputArtifacts": [ { "Name": "myInputArtifact" } ], "Configuration": { "Stack": "my-stack", "App": "my-app" } }

The following related resources can help you as you work with this action.