Skip to content

Commit

Permalink
Merge pull request #141 from github/bamboo-doc
Browse files Browse the repository at this point in the history
AWS Code Deploy doc update
  • Loading branch information
begonaguereca authored May 18, 2023
2 parents 035ca18 + 638ad2b commit f685fd3
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/bamboo/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
| Bamboo CI | GitHub |
| :----------------------------------------------- | :---------------------------------------------------------------- |
| [Ant](plugins/Ant.md) | actions/setup-java, run |
| [Artifact Download](plugins/ArtifactDownload.md) | actions/download-artifact |
| [Artifact Download](plugins/ArtifactDownload.md) | actions/download-artifact |
| [AWS Code Deploy](plugins/AWSCodeDeploy.md) | aws-actions/configure-aws-credentials, run |
| [Bower](plugins/Bower.md) | actions/setup-node, run |
| [Checkout](plugins/Checkout.md) | actions/checkout |
| [Clean](plugins/Clean.md) | run |
Expand Down
33 changes: 33 additions & 0 deletions docs/bamboo/plugins/AWSCodeDeploy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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
- uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: us-west-1
aws-access-key-id: "${{ secrets.AWS_ACCESS_KEY_ID }}"
aws-secret-access-key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
- 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

3 comments on commit f685fd3

@Khalid-cloud-tech
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any issues with the table. It looks well-organized and informative. 🤝

@AnkitSharma745
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

accept it

@Khalid-cloud-tech
Copy link

@Khalid-cloud-tech Khalid-cloud-tech commented on f685fd3 Jun 2, 2023 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.