TODO: Fill this README out!
Be sure to:
- Change the title in this README
- Edit your repository description on GitHub
See CONTRIBUTING for more information.
This project is licensed under the Apache-2.0 License.
- Go to CFN resource directory(e.g.
aws-greengrassv2-componentversion
). - Make some changes to resource definition json file(e.g.
aws-greengrassv2-componentversion.json
). - Run
cfn validate
andcfn generate
to generate the cfn resource files. - Make some changes to handlers (e.g.
aws-greengrassv2-componentversion/src/main/java/software/amazon/greengrassv2/componentversion/CreateHandler
) - Run
mvn clean install -U
to build the packages and run the tests. - Run
mvn package
to generate the artifacts. - Paste credentials of the personal account to the terminal.
- Run
cfn submit -v --region <REGION> --set-default
to register this resource type to your personal account. Make sure replace the with the region you want to deploy to. In the response it may complain about the contract tests failing but we could ignore it since the resource is still under construction. - Prepare a cfn template which contains this new resource type.
- Run
aws cloudformation create-stack --region <REGION> --template-body "file://<PATH_TO_TEMPLATE_FILE>" --stack-name <STACK_NAME>
to create a stack with the template. - After making sure it works in the personal account, we are almost ready to commit the changes.
Before that, run
pip3 install pre-commit cloudformation-cli-java-plugin
to install the pre-commit and then runpre-commit run --all-files
. - If some of tests fail, the command will fix the files itself. Then, we are good to commit the changes!