feat(component): Add deploy command for Greengrass components - #302
Open
bishwabikash wants to merge 4 commits into
Open
feat(component): Add deploy command for Greengrass components#302bishwabikash wants to merge 4 commits into
bishwabikash wants to merge 4 commits into
Conversation
Implement gdk component deploy command to deploy published Greengrass components to target IoT things or thing groups using the AWS Greengrass V2 CreateDeployment API. - Add DeployCommand class with deployment workflow - Add ComponentDeployConfiguration for CLI/config handling - Extend Greengrassv2Client with create_deployment and component_version_exists - Update cli_model.json with deploy subcommand and arguments - Update config_schema.json with deploy configuration section - Wire up command dispatch in component.py and methods.py - Add unit tests, property-based tests, and integration tests
- Remove unused variable 'e' in DeployCommand exception handler - Remove unused imports (pytest, Mock, patch, Greengrassv2Client) - Fix trailing whitespace in property test files
- Add component_deploy.feature with 5 scenarios - Add deploy config step in component.py - Add DEFAULT_DEPLOY_TARGET_ARN constant - Add deployment cleanup in t_utils.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
N/A - New feature implementation
Description of changes:
Implements the
gdk component deploycommand to deploy published Greengrass components to target IoT things or thing groups using the AWS Greengrass V2 CreateDeployment API.Changes include:
DeployCommandclass with deployment workflow (validate component exists, create deployment, handle errors)ComponentDeployConfigurationfor CLI argument and config file handling with target ARN validationGreengrassv2Clientwithcreate_deployment()andcomponent_version_exists()methodscli_model.jsonwith deploy subcommand (-t/--target-arn,-n/--deployment-name,-cv/--component-version)config_schema.jsonwith deploy configuration sectionWhy is this change necessary:
Currently, after publishing a component with
gdk component publish, users must manually use the AWS CLI or Console to create deployments. This change completes the development workflow by allowing users to deploy directly from GDK CLI.How was this change tested:
component_deploy.featureAny additional information or context required to review the change:
-cvfor component-version short flag instead of-vto avoid conflict with global--versionflagthingandthinggroupresource types across all AWS partitions (aws, aws-cn, aws-us-gov)t_utils.pyfor e2e test teardownChecklist:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.