Bamboo AWS Plugin /

The branch '1.4.x' does not exist.
Filename Size Date modified Message
.settings
src
665 B
73.5 KB
26 B
95 B
86 B
188 B
728 B
553 B
5.8 KB
5.0 KB

Overview

The Bamboo AWS Plugin adds a Task to create or delete an AWS CloudFormation stack (a collection of related Amazon Web Services resources) and another Task to start, stop or reboot a provisioned EC2 instance.

It enables you to unleash the power of AWS from Tasks within your build with the following key features:

  • Stack Lifecycle Management - create or delete a CloudFormation stack defined by a template provided via URL or inline and specify template parameters and advanced options.
  • Variable Substitution/Definition - substitute Bamboo variables in CloudFormation template parameters (and some other fields) to customize the stack and reuse variables defined by stack outputs in subsequent Tasks.
  • Instance State Transitions - start, stop or reboot a provisioned EC2 instance.

Release Notes

Release 1.4.0 adds a task to start, stop or reboot a provisioned EC2 instance; in addition it adds event reporting during CloudFormation stack transitions, retrieves AWS configuration data remotely and features some minor usability improvements as well.

Goals / Usage

The short term goal is mirroring the functionality available via the AWS management console in a Bamboo Task, i.e. creating/updating/deleting a stack with parameters. Familiarity with CloudFormation operation is assumed accordingly, thus the documentation currently covers noteworthy specifics regarding the plugin only.

Installation

Simply navigate to your Bamboo Administration -> Plugin Manager menu, and search for "AWS" under the Install tab.

Sample Templates

The provided CloudFormation sample template URL simply exercises parameter substitution (thus there are no cost implied).

Amazon provides many more AWS CloudFormation Sample Templates - please be aware of the following:

  • You will be billed for the AWS resources used, if you create a stack from a template including non free resources (check the template source, which will indicate this in case).
  • You must reference a template in an S3 bucket in the same region in which you are creating the stack. Each sample template is available in every AWS Region (see 'Using Templates in Different Regions' on the bottom of the referenced URL for details).

The provided CloudFormation sample inline template simply creates a SNS Topic (thus there are no cost implied until you send a significant amount of notifications).

Variable Substitution

To empower advanced build and automation scenarios, it his highly recommended to become acquainted with Using Global, Plan or Build-specific Variables; currently substitutions are enabled within the following Task configuration fields: Stack Name Template URL Template Body Template Parameters

Limitations / Roadmap

You should be aware of the following limitations regarding AWS API coverage and integration:

AWS CloudFormation

  • We have focused on API coverage so far and usability is not up to speed yet accordingly, there is obviously room for improvements, e.g.:
    • Some configuration screen polish should get us a long way already.
    • Fetching existing AWS resources for selection during configuration would avoid manual copying of information.
    • Offering several samples/defaults to ease getting started.
    • ...
  • Updating a stack has been postponed - fixing this is on our list.
  • Stack rollback is currently handled as follows, hopefully covering the majority of use cases (please let us know otherwise):
    • A stack rolled back successfully by CloudFormation is treated as a failed build by Bamboo.
    • A stack not rolled back due to rollback being disabled explicitly is still treated as a failed build by Bamboo.

Amazon Elastic Compute Cloud (EC2)

  • We currently consider instance lifecycle goals (i.e. create/terminate) to be sufficiently addressed by the CloudFormation Task, hopefully covering the majority of use cases (please let us know otherwise).
  • The Task currently supports only one instance at a time, allowing multiple values is on our list.

Further down the road we'd like to integrate other AWS services as well.

License

Licensed under the Apache License, Version 2.0, see LICENSE.TXT for details.

Changelog

1.4.0

Stories

  • BAWS-68 - As a user, I need a task to operate an EC2 instance so that I can start/stop/reboot a provisioned AWS resource.

Improvements

  • BAWS-48 - Add stable AWS artifact retrieval via missingcloud.
    • Many thanks to Mitch Garnaat for starting this indeed missing cloud data collection!
  • BAWS-66 - Add event reporting during stack transition.
  • BAWS-77 - Adjust configuration screen radio button layout.

1.3.0

Improvements

  • BAWS-50 - Add variable substitution in template parameters.
  • BAWS-59 - Add variable definition from stack outputs.

Bugs

  • BAWS-58 - Fix templates requiring IAM capability not being usable.

1.2.0

Improvements

  • BAWS-44 - Add template parameter handling.
  • BAWS-45 - Add stack outputs handling.
  • BAWS-46 - Add URL based template specification.

1.1.0

Improvements

  • BAWS-19 - Add disable rollback option.
  • BAWS-20 - Add creation timeout option.
  • BAWS-21 - Add SNS notification option.

Bugs

  • BAWS-31 - Fix not all completed stack transitions triggering task completion and/or proper task result.
  • BAWS-37 - Fix validation errors not being displayed.

1.0.0

Stories

  • BAWS-9 - As a user, I need a task to create a CloudFormation stack so that I can provision a collection of related AWS resources.
  • BAWS-10 - As a user, I need a task to delete a CloudFormation stack so that I can terminate a collection of related AWS resources.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.