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

Create ACO Admin Task (Lambda and Workflows) #1043

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

austincanada
Copy link
Contributor

🎫 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.

@austincanada austincanada changed the title Create ACO Admin Task (Lambda and Workflows) Draft: Create ACO Admin Task (Lambda and Workflows) Feb 5, 2025
@austincanada austincanada requested a review from a team February 5, 2025 17:33
workflow_dispatch:
push:
branches:
- austin/BCDA-8629-create-aco-wf
Copy link
Collaborator

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
Copy link
Collaborator

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?

Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looking into it currently.

bcda/lambda/admin_create_aco/README.md Outdated Show resolved Hide resolved
bcda/lambda/admin_create_aco/main.go Outdated Show resolved Hide resolved
bcda/lambda/admin_create_aco/main.go Outdated Show resolved Hide resolved
@carlpartridge
Copy link
Collaborator

Cant fully review until the checks are all passing but looking good so far!

@austincanada austincanada changed the title Draft: Create ACO Admin Task (Lambda and Workflows) Create ACO Admin Task (Lambda and Workflows) Feb 10, 2025
Changes the entries of opensbx to sbx
Renames the slack error nested within another error
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.

3 participants