PHPackages                             onema/opsworks-demo-console - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. onema/opsworks-demo-console

ActiveLibrary[CLI &amp; Console](/categories/cli)

onema/opsworks-demo-console
===========================

AWS OpsWorks Command Line Tool - PHP

v0.1.1(11y ago)162MITPHPPHP &gt;=5.3.3

Since Nov 4Pushed 11y ago1 watchersCompare

[ Source](https://github.com/onema/opsworks-demo-console)[ Packagist](https://packagist.org/packages/onema/opsworks-demo-console)[ RSS](/packages/onema-opsworks-demo-console/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (4)Versions (5)Used By (0)

opsworks-demo-console
=====================

[](#opsworks-demo-console)

Simple CLI tool to interact with AWS OpsWorks using the AWS SDK for PHP v2.

\##Installation

```
git clone git@github.com:onema/opsworks-demo-console.git
cd opsworks-demo-console
curl -sS https://getcomposer.org/installer | php
php composer.phar install

```

Copy the file [`/app/config/parameters.yml.dist`](/app/config/parameters.yml.dist) to `/app/config/parameters.yml` and update the following parameters:

```
parameters:
    aws_api_key:            APIKEY
    aws_api_secret:         APISECRET
    aws_iam_role:           IAMROLE
    aws_instance_role:      INSTANCEROLE
```

The easiest way to get the `aws_iam_role` and `aws_instance_role` is to create a stack through the aws console. The console will automatically generate these roles for you. After the stack has been created you can get these values from the **Stack Settings** page and re-use these accross different stacks, or use them to create new ones.

To create your own see [Instance Profiles](http://docs.aws.amazon.com/IAM/latest/UserGuide/instance-profiles.html), [IAM Roles for Amazon EC2](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html), and [Secure access to AWS Service APIs from EC2](http://aws.typepad.com/aws/2012/06/iam-roles-for-ec2-instances-simplified-secure-access-to-aws-service-apis-from-ec2.html).

\##Usage ###Create new stack###

```
php app/console opsworks:create:stack name

```

\####Arguments:####

- **name:** Stack name.

\###Enable and update custom chef settings###

```
php app/console opsworks:update:stack:chef stack type url ssh-key-path --custom-json="..."

```

\####Arguments:####

- **stack:** Stack ID.
- **type:** Repository type.
- **url:** Repository URL.
- **revision:** Revision or Branch.
- **ssh-key-path:** Path to ssh key.

\####Options:####

- **custom-json** A string that contains user-defined, custom JSON. must be escaped.

\###Create a new PHP layer###

```
php app/console opsworks:create:layer stack

```

\####Arguments:####

- **stack:** Stack ID.

\###Update PHP layer lifecycle event recipes and OS Packages###

```
php app/console opsworks:update:layer layer --recipes-setup="..." --recipes-configure="..." --recipes-deploy="..." --recipes-undeploy="..." --recipes-shutdown="..." --os-packages="..."

```

\####Arguments:####

- **layer:** Stack ID.

\####Options:####

- **recipes-setup:** Comma separated values of recipes to be run on setup.
- **recipes-configre:** Comma separated values of recipes to be run on configure.
- **recipes-deploy:** Comma separated values of recipes to be run on deploy.
- **recipes-undeploy:** Comma separated values of recipes to be run on undeploy.
- **recipes-shutdown:** Comma separated values of recipes to be run on shutdown.
- **os-packages:** Comma separated values of OS packages to be installed on the servers.

\###Create Application###

```
php app/console opsworks:create:app stack  name --source-type="..." --source-url="..." --source-revision="..." --ssh-key-path="..."

```

\####Arguments:####

- **stack:** Stack ID.

\####Options:####

- **source-type:** Repository type.
- **source-url:** Repository URL.
- **source-revision:** Revision or Branch.
- **document-root** Document Root.
- **ssh-key-path:** Path to ssh key.

\###Update Application###

```
php app/console opsworks:update:app app  --source-type="..." --source-url="..." --source-revision="..." --ssh-key-path="..." --document-root="..."

```

\####Arguments:####

- **app:** Application ID.

\####Options:####

- **source-type:** Repository type.
- **source-url:** Repository URL.
- **source-revision:** Revision or Branch.
- **document-root** Document Root.
- **ssh-key-path:** Path to ssh key.

\###Update Application###

```
php app/console opsworks:update:app app  --source-type="..." --source-url="..." --source-revision="..." --ssh-key-path="..."

```

\####Arguments:####

- **app:** App ID.

\####Options:####

- **source-type:** Repository type.
- **source-url:** Repository URL.
- **source revision:** Revision or Branch.
- **ssh-key-path:** Path to ssh key.

\###Create and start instance###

```
php app/console opsworks:create:instance stack layer instance-type "--instance-number=..."

```

\####Arguments:####

- **stack:** Stack ID.
- **layer:** Layer ID.
- **instance-type:** Type of EC2 Instance ie: m1.small.

\####Options:####

- **instance-number:** Number of instances to start, defaults to one.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~251 days

Total

3

Last Release

4072d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6de02da1f3fa7d732e6c083b1c03855d234b2ad5058cfa930e074703e1933b23?d=identicon)[onema](/maintainers/onema)

---

Top Contributors

[![onema](https://avatars.githubusercontent.com/u/532616?v=4)](https://github.com/onema "onema (39 commits)")

---

Tags

cliconsoleterminalcommandwasopsworks

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/onema-opsworks-demo-console/health.svg)

```
[![Health](https://phpackages.com/badges/onema-opsworks-demo-console/health.svg)](https://phpackages.com/packages/onema-opsworks-demo-console)
```

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B11.3k](/packages/symfony-console)[league/climate

PHP's best friend for the terminal. CLImate allows you to easily output colored text, special formats, and more.

1.9k14.0M273](/packages/league-climate)[helhum/typo3-console

A reliable and powerful command line interface for TYPO3 CMS

2939.0M192](/packages/helhum-typo3-console)[aplus/cli

Aplus Framework CLI Library

2301.7M6](/packages/aplus-cli)[laminas/laminas-cli

Command-line interface for Laminas projects

563.7M54](/packages/laminas-laminas-cli)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
