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

added app-registry module #55

Merged
merged 2 commits into from
Sep 5, 2023

Conversation

srinivasreddych
Copy link
Contributor

Issue #, if available:

Description of changes:
added app-registry module

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

commands:
- cdk deploy --require-approval never --progress events --app "python app.py" --outputs-file ./cdk-exports.json
# Export metadata
- export SEEDFARMER_MODULE_METADATA=$(python -c "import json; file=open('cdk-exports.json'); print(json.load(file)['${SEEDFARMER_PROJECT_NAME}-${SEEDFARMER_DEPLOYMENT_NAME}-${SEEDFARMER_MODULE_NAME}']['metadata'])")
Copy link
Contributor

Choose a reason for hiding this comment

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

why not start using the helper commands?

Copy link
Contributor

@dgraeber dgraeber Sep 5, 2023

Choose a reason for hiding this comment

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

- seedfarmer metadata convert -f cdk-exports.json || true
or
- export DEPMOD=$(seedfarmer metadata depmod)
- seedfarmer metadata convert -jq .${DEPMOD}.metadata || true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because i load the env var SEEDFARMER_MODULE_METADATA in my python script, and grab the AppRegistry details

Copy link
Contributor

@dgraeber dgraeber left a comment

Choose a reason for hiding this comment

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

Left a comment regarding the deployspec

@srinivasreddych srinivasreddych merged commit 3477da0 into awslabs:main Sep 5, 2023
12 checks passed
@srinivasreddych srinivasreddych deleted the feat/app-registry branch September 5, 2023 20:38
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.

2 participants