-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:acquia/moonshot
- Loading branch information
Showing
18 changed files
with
292 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,41 @@ | ||
# DeploymentMechanism | ||
|
||
## DeploymentMechanism | ||
## CodeDeploy | ||
|
||
Supported DeploymentMechanisms: | ||
- CodeDeploy | ||
|
||
### CodeDeploy | ||
|
||
The CodeDeploy DeploymentMechanism will create a CodeDeploy Application and | ||
Deployment Group matching the application name. The created Deployment Group | ||
will point at the logical resource id provided to the constructor (e.g. | ||
`CodeDeploy.new(asg: 'MyAutoScalingGroup')`). During the `deploy-code` action, | ||
the ArtifactRepository is checked for compatibility with CodeDeploy. Currently | ||
only the S3Bucket is supported, though CodeDeploy itself supports deploying from | ||
a git source. | ||
The CodeDeploy DeploymentMechanism will create a CodeDeploy Application and Deployment Group matching the application name. The created Deployment Group will point at the logical resource id provided to the constructor (e.g. `CodeDeploy.new(asg: 'MyAutoScalingGroup')`). During the `deploy-code` action, the ArtifactRepository is checked for compatibility with CodeDeploy. Currently only the S3Bucket is supported, though CodeDeploy itself supports deploying from a git source. | ||
|
||
Assumptions made by the CodeDeploy mechanism: | ||
|
||
- You are using an S3Bucket ArtifactRepository. | ||
- You want to deploy using the OneAtATime method. | ||
- Your build artifact contains an appspec.yml file. | ||
|
||
Sample Usage | ||
```ruby | ||
#!/usr/bin/env ruby | ||
|
||
require 'moonshot' | ||
|
||
# Set up Moonshot tooling for our environment. | ||
class MoonshotSampleApp < Moonshot::CLI | ||
self.deployment_mechanism = CodeDeploy.new(asg: 'AutoScalingGroup', role: 'CodeDeployRole', app_name: 'my_app_name') | ||
... | ||
``` | ||
Parameters | ||
|
||
### asg | string | ||
|
||
The logical name of the AutoScalingGroup to create and manage a Deployment | ||
Group for in CodeDeploy. | ||
|
||
### role | string | ||
|
||
IAM role with AWSCodeDeployRole policy. CodeDeployRole is considered as default role if its not specified. | ||
|
||
### app_name | string,nil | ||
|
||
The name of the CodeDeploy Application and Deployment Group. By default, this is the same as the stack name, and probably what you want. If you have multiple deployments in a single Stack, they must have unique names. | ||
|
||
For more information about CodeDeploy, see the [AWS Documentation][1]. | ||
|
||
[1]: http://docs.aws.amazon.com/codedeploy/latest/userguide/welcome.html |
Oops, something went wrong.