Skip to content

Commit

Permalink
Create AWSCodeDeploy.md
Browse files Browse the repository at this point in the history
  • Loading branch information
begonaguereca authored May 17, 2023
1 parent 035ca18 commit 6e1c588
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/bamboo/plugins/AWSCodeDeploy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# AWS Code Deploy

## Bamboo input

```yaml
Deploy:
...
- any-task:
plugin-key: com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-aws-codedeploy:task.aws.codeDeploy
configuration:
deploymentTimeout: '15'
deploymentGroup: DgpECS-begona_cluster-alt_service
credentialsId: '10092545'
region: US_WEST_1
applicationName: AppECS-begona_cluster-alt_service
s3Bucket: elasticbeanstalk-us-west-1-778232459879
```
## Transformed Github Action
```yaml
- run: |-
commit_hash=$(git rev-parse --short ${{ env.GITHUB_SHA }})
aws deploy create-deployment --application-name AppECS-begona_cluster-alt_service --deployment-group-name DgpECS-begona_cluster-alt_service --s3-location bucket=elasticbeanstalk-us-west-1-778232459879,key=${{ secrets.AWS_S3_BUCKET_KEY }},bundleType={{ env.BUNDLE_TYPE }} --github-location repository=$GITHUB_REPOSITORY,commitId=$commit_hash --ignore-application-stop-failures
```
## Unsupported Options
- credentialsId

0 comments on commit 6e1c588

Please sign in to comment.