CONTRIBUTING
Contributing
Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional documentation, we greatly value feedback and contributions from our community.
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary information to effectively respond to your bug report or contribution.
Reporting Bugs/Feature Requests
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
- A reproducible test case or series of steps
- The version of our code being used
- Any modifications you've made relevant to the bug
- Anything unusual about your environment or deployment
Contributing via Pull Requests
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
- You are working against the latest source on the main branch.
- You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
- You open an issue to discuss any significant work - we would hate for your time to be wasted.
To send us a pull request, please:
- Fork the repository.
- Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
- Ensure local tests pass.
- Commit to your fork using clear commit messages.
- Send us a pull request, answering any default questions in the pull request interface.
- Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
GitHub provides additional document on forking a repository and creating a pull request.
Finding contributions to work on
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.
Code of Conduct
This project has adopted the Amazon Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opensource-codeofconduct@amazon.com with any additional questions or comments.
Security issue notifications
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our vulnerability reporting page. Please do not create a public github issue.
Licensing
See the LICENSE file for our project's licensing. We will ask you to confirm the licensing of your contribution.
Contributing Assets to Harmonix on AWS
Thank you for considering a contribution to Harmonix on AWS project! The above described guidelines are to set the standard of submitting Pull Request, That is in conjunction to the below description
Contribution Type
- Contributing Harmonix on AWS Templates
- Provider Template
- App Template
- Resource Template
- Other Template
- Contributing Harmonix on AWS Pipelines
- New pipeline pattern
- Update existing pipeline pattern
- Contributing Harmonix on AWS Core modifications
- Change in UI / Frontend of Harmonix on AWS plugins
- Change in SDK API / Backend of Harmonix on AWS Plugins
- Change in sacffolder actions
- Change in architecture or platform design
- Change in common interfaces
- Contributing Harmonix on AWS extensions
- Integration with new tools and plugins
- Integration with additional Backstage.io APIs / entities
- Extending Harmonix on AWS model
Submitting Contribution
Before submitting any contribution type please make sure it adheres to the Harmonix on AWS architecture
Contributing an Harmonix on AWS provider
Questions to consider when designing new provider:
- Why do i need a new provider? does the existing providers support the type of application I'm trying to build?
- What is the common environment this provider support for applications?
- Does the new provider type supports multiple applications that share the same requirements?
- Do i have clarity on the roles and permissions required to implement this provider?
- Do i have clarity on the resources and architecture required to implement this provider?
- Will this provider support backwards upgrades? what will be the effect of applications if the provider were to be updated?
Build your provider
Step 1
Start with designing the architecture that will meet the particular type of workloads this provider needs to support.
Express the architecture with your choice of IAC(CDK, TF, Pulumi etc.)
example: building an ECS provider - will require an AWS ECS cluster - which also requires a VPC and support for logs, encryption and load balancer to allow access to the containers. an AWS ECR is also required to store the container images.
Step 2
Define the Provisioning role and Operations role permissions - this needs to be reason with the expected user interactions and IAC requirements. It is best practice to set your roles with least privileges permissions.
Step 3
Configure an appropriate pipeline to deploy and update this provider
Step 4
Create a provider backstage template and load the template to the backstage-reference repository
Don't forget to update all-templates.yaml with your new template path
Test your provider
Step 1
Make sure you are able to provision your new provider template.
We highly recommend to test different context for this step as described in the test-cases
Step 2
Make sure you can update the provider configurations or IAC and the pipeline will apply the changes succufully
Step 3
Add entries in test-cases document for the new provider implemented.
Submit your PR
Submit a pull request for the new provider following the instructions in this page.
Contributing an Harmonix on AWS application
Questions to consider when designing a new application pattern:
- Who is the team that going to be using this application template? does it address their requirements?
- What pattern this new application introduce? is there already an existing pattern that can be used?
- Does this application can use an existing environment or it requires a new environment type / provider? if so, see the above Contributing an Harmonix on AWS provider
- What kind of permissions and resources this application needs?
- What kind of operational actions this application need? which of them can be supported through a pipeline and which one needs a UI of platform changes?
- Will this application support upgrades? what will be the effect of the deployed applications if we were to be update it?
Build your application
Step 1
Start with designing the architecture that for this type of workload, this include the desired runtime(Java, .Net, python etc.), the resource that compose this application express by IAC(CDK, TF, Pulumi)
example: building an ECS application - will require an AWS ECS Task and Task definition , in addition the application log will need a log group and you may need to add additional supporting resources such as RDS database or S3 bucket. The application IAC will have dependencies on expected resources such as an existing VPC or ECS cluster. this will be provided by the corresponding selected environment and injected to the application repository. the pipeline will stich all this together and express those arguments as environment variables
Step 2
Define the identity of the application in a shape of an IAM role. This application identity role is used not only to describe the current permission the application needs but also the future permission the application may be granted as a result of the resource binding process.
Make sure you IAC supports external ingestion of JSON permission policies. See DeclareJSONStatements example here
Step 3
Configure an appropriate pipeline to deploy and update this application
Step 4
Create an application backstage template and load the template to the backstage-reference repository
Don't forget to update all-templates.yaml with your new template path
Test your application
Step 1
Make sure you are able to provision your new application template.
We highly recommend to test different context for this step as described in the test-cases.
You should also test provisioning another application on the same environment to make sure there's not conflict of configurations and/or resources.
Step 2
- Make sure you can update the application configurations or IAC and the pipeline will apply the changes successfully
- Make sure you can update the application code /src and CD pipeline will build and deploy the new application
Step 3
Add entries in test-cases document for the new application implemented.
Submit your PR
Submit a pull request for the new provider following the instructions in this page.