continuousphp/aws-cf-killer

AWS Cloud Formation killer

dev-master 2016-08-29 15:04 UTC

This package is not auto-updated.

Last update: 2020-01-05 14:38:22 UTC


README

Build Status

An application to delete running stacks based on tags matching

Requirements

  • PHP 5.6+

Installation

  • Download Composer: curl -sS https://getcomposer.org/composer.phar -o composer.phar
  • Install the Deploy Agent: php composer.phar create-project -s dev --no-dev continuousphp/aws-cf-killer

Setup the application

Create a config/local.php file as following:


<?php

return [
    // AWS SDK configuration as describe in the doc
    'aws' =>
    [
        'region' => 'us-east-1',
        'credentials' =>
        [
            'key' => 'XXXXXXXXXXXXXXXXXXXX',
            'secret' => 'ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ'
        ]
    ],
    // tags to match for deletion
    'tags' =>
    [
        'env' => 'acceptance'
    ]
];

More information about AWS SDK configuration could be found here

Start using with: ./bin/kill