Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Hooks #861

Merged
merged 5 commits into from
Feb 10, 2022

Conversation

Brianwithay21
Copy link
Member

@Brianwithay21 Brianwithay21 commented Feb 8, 2022

This release adds support for creating Hooks using the CFN CLI

  • Initialize a Hook project with cfn init --artifact-type HOOK --type-name <type-name>
  • For example: cfn init --artifact-type HOOK --type-name My::Test::Example
  • Using cfn init without parameters will now first ask if you want to create a resource, module, or a hook. If you choose to create a hook, you will be asked to choose a language plugin. After choosing a plugin, a hook project will be generated with boilerplate code which you can use as a starting point to make your changes.
  • Use cfn validate to validate your hook before submitting
  • Use cfn submit to register your hook, making it available for use by CloudFormation in your AWS account

Related PRs:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Brianwithay21 Brianwithay21 marked this pull request as ready for review February 9, 2022 01:23
@Brianwithay21 Brianwithay21 requested review from ammokhov, a user and wkexiang February 9, 2022 03:09
Copy link

@JeremySB JeremySB left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link

@wkexiang wkexiang left a comment

Choose a reason for hiding this comment

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

lgtm

@Brianwithay21 Brianwithay21 merged commit 902ffa0 into aws-cloudformation:master Feb 10, 2022
kddejong pushed a commit to kddejong/cloudformation-cli that referenced this pull request Oct 24, 2022
* Added support for Hooks

* Bump version to 0.2.23

* Removed unused unsupported target hook contract test

* Update src/rpdk/core/data/schema/provider.configuration.definition.schema.hooks.v1.json

Co-authored-by: Ben Bridts <[email protected]>

* Update src/rpdk/core/data/schema/provider.configuration.definition.schema.hooks.v1.json

Co-authored-by: Ben Bridts <[email protected]>

Co-authored-by: Ben Bridts <[email protected]>
kddejong pushed a commit to kddejong/cloudformation-cli that referenced this pull request Oct 24, 2022
* Added support for Hooks

* Bump version to 0.2.23

* Removed unused unsupported target hook contract test

* Update src/rpdk/core/data/schema/provider.configuration.definition.schema.hooks.v1.json

Co-authored-by: Ben Bridts <[email protected]>

* Update src/rpdk/core/data/schema/provider.configuration.definition.schema.hooks.v1.json

Co-authored-by: Ben Bridts <[email protected]>

Co-authored-by: Ben Bridts <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants