-
Notifications
You must be signed in to change notification settings - Fork 15
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
Create ACO Admin Task (Lambda and Workflows) #1043
base: main
Are you sure you want to change the base?
Conversation
Adds github workflows for dev, test, prod deployment of lambda. Adds github workflow for test integration.
workflow_dispatch: | ||
push: | ||
branches: | ||
- austin/BCDA-8629-create-aco-wf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once all changes are done this should change to 'main'
echo "STARTTIME=`date +%s`" >> "$GITHUB_OUTPUT" | ||
aws lambda invoke --function-name bcda-dev-admin-create-aco \ | ||
--cli-binary-format raw-in-base64-out \ | ||
--payload '{"name":"Test ACO","cms_id":"testcms"}' test-result.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be creating the same ACO each time its called. Do we need to do some kind of clean up? What happens when we call create ACO with an existing ACO by that name/cms_id?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a good point; do we want to add a cleanupACO type function in this lambda where the removal occurs? We could potentially configure it by saying that if it's running in a non-prod env, then run the cleanup afterwards?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking into it currently.
Cant fully review until the checks are all passing but looking good so far! |
Changes the entries of opensbx to sbx Renames the slack error nested within another error
🎫 Ticket
https://jira.cms.gov/browse/BCDA-8629
🛠 Changes
Added lambda for Create ACO tasks.
Added workflows to run integration tests and deploy lambda to envs.
Made cli action, CreateACO, an export.
Linter added cli updates.
ℹ️ Context
Since we are moving off of Jenkins, we need to create lambdas for certain actions and tasks.
🧪 Validation
Verifying through workflows.