2017 © Pedro Peláez
 

cakephp-plugin simple-aws-manager

Simple CakePHP Plugin for managing AWS resources

image

guenbakku/simple-aws-manager

Simple CakePHP Plugin for managing AWS resources

  • Saturday, July 29, 2017
  • by guenbakku
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Simple AWS Manager

A simple CakePHP 3 plugin for managing AWS resources. Currently this can only list and restart EC2 instances., (*1)

Requirement

  • PHP 7.0 or higher
  • CakePHP 3.4 or higher

Installation

You can install this plugin into your CakePHP application using composer., (*2)

The recommended way to install composer packages is:, (*3)

composer require guenbakku/simple-aws-manager

Configure:

Load plugin

Add following into bottom of your bootstrap.php:, (*4)

Plugin::load('Guenbakku/Sam', ['bootstrap' => true, 'routes' => true]);

Configure AWS credentials

Create file sam.php in your directory config with following content:, (*5)

<?php
return [
    'Guenbakku/Sam' => [
        'credentials' => [
            'default' => [
                'key' => 'xxxxxx',
                'secret' => 'xxxxxx',
            ],
            'uses' => 'default',
        ]
    ],
];

Note:

  • You can override plugin's config content by simply write same key into your config/sam.php.
  • Please set right policy for credentials which you attend to use with this plugin.

Sample of AWS Policy:, (*6)

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "ec2:DescribeInstances"
            ],
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": [
                "ec2:RebootInstances"
            ],
            "Condition": {
                "StringEquals": {
                    "ec2:ResourceTag/User": "me"
                }
            },
            "Resource": "*"
        }
    ]
}

Access to plugin

Input following URL into web browser's address bar:, (*7)

http://your.domain/path-to-cakephp-root/sam

path-to-cakephp-root is optional if your cakephp app is not pointed directed by your domain., (*8)

Here is a screenshot of plugin:, (*9)

Screenshoot, (*10)

The Versions

29/07 2017

dev-master

9999999-dev

Simple CakePHP Plugin for managing AWS resources

  Sources   Download

MIT

The Requires

 

The Development Requires

29/07 2017

0.0.3

0.0.3.0

Simple CakePHP Plugin for managing AWS resources

  Sources   Download

MIT

The Requires

 

The Development Requires

29/07 2017

dev-develop

dev-develop

Simple CakePHP Plugin for managing AWS resources

  Sources   Download

MIT

The Requires

 

The Development Requires

18/07 2017

0.0.2

0.0.2.0

Simple CakePHP Plugin for managing AWS resources

  Sources   Download

MIT

The Requires

 

The Development Requires

17/07 2017

0.0.1

0.0.1.0

Simple CakePHP Plugin for managing AWS resources

  Sources   Download

MIT

The Requires

 

The Development Requires