Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cdk): component dev mode (#911)
This feature is adding the ability to enter development mode of one CDK component at a time. To do so, developers need to export the environment variable `LW_CDK_DEV_COMPONENT` Example: ``` $ export LW_CDK_DEV_COMPONENT=new-component $ lacework component list ``` That should show you the following output: ``` STATUS NAME VERSION DESCRIPTION ----------------+---------------+---------+--------------------------------------------------------------------------------------- Not Installed new-component 0.0.0 create dev specs file '/Users/afiune/.config/lacework/components/new-component/.dev' Components version: 0.2.0 ``` Then you just need to create the dev specs file that contains all the specifications of your dev component. Example: ``` cat ~/.config/lacework/components/new-component/.dev { "version": "0.0.1", "name": "new-component", "description": "A component being developed. Have fun!", "type": "CLI_COMMAND", "artifacts": [] } ``` Finally, if you try to install the component, you will get an error message like this one: ``` $ lacework component install my-component ERROR unable to install component: components under development can't be installed. Deploy the component manually at '/Users/afiune/.config/lacework/components/my-component/my-component' ``` As the message suggests, deploy the component manually and you should be good to go. Signed-off-by: Salim Afiune Maya <[email protected]> Signed-off-by: Salim Afiune Maya <[email protected]>
- Loading branch information