Giter VIP home page Giter VIP logo

aws-cloudformation-resource-providers-greengrassv2's Introduction

aws-cloudformation-resource-providers-greengrassv2

TODO: Fill this README out!

Be sure to:

  • Change the title in this README
  • Edit your repository description on GitHub

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.

Steps to build, run UTs and test in the personal account.

  1. Go to CFN resource directory(e.g. aws-greengrassv2-componentversion).
  2. Make some changes to resource definition json file(e.g. aws-greengrassv2-componentversion.json).
  3. Run cfn validate and cfn generate to generate the cfn resource files.
  4. Make some changes to handlers (e.g. aws-greengrassv2-componentversion/src/main/java/software/amazon/greengrassv2/componentversion/CreateHandler)
  5. Run mvn clean install -U to build the packages and run the tests.
  6. Run mvn package to generate the artifacts.
  7. Paste credentials of the personal account to the terminal.
  8. 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.
  9. Prepare a cfn template which contains this new resource type.
  10. 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.
  11. 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 run pre-commit run --all-files.
  12. If some of tests fail, the command will fix the files itself. Then, we are good to commit the changes!

aws-cloudformation-resource-providers-greengrassv2's People

Contributors

amazon-auto avatar aru-jo avatar cfn-rpdk-ci avatar declansullivan avatar hefn-532304 avatar paulmalm avatar ravenway avatar vabhasin avatar youtuyy avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

aws-cloudformation-resource-providers-greengrassv2's Issues

Missing associate a service role to account

Currently, it is not possible to associate a service role to the account using a CFN template.

Currently, it is required it to associate the service role after the actual deployment by using the following CLI command: aws greengrassv2 associate-service-role-to-account

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.