Closed GarrettEHill closed 1 month ago
I'll try to get this tested out today but we definitely need to add documentation to the repo for this new feature. It might be worth starting a new markdown file with all the self-service automation instructions and linking to it from the main readme.
@thewatermethod
I'll try to get this tested out today but we definitely need to add documentation to the repo for this new feature. It might be worth starting a new markdown file with all the self-service automation instructions and linking to it from the main readme.
Done
Done
@GarrettEHill Incredible precision, it reads like some kind of robot wrote it
Description of Changes
This update enhances the CircleCI configuration, specifically the
manual_manage_env_workflow
, to streamline the management of application environments by introducing dynamic environment-specific handling. Now, onlyenv_list
is required as an argument, with space, username, and password automatically inferred for each environment. Key improvements include flexibility in managing application states with options for start, stop, restart, or restage operations.Key Changes:
Simplified Workflow Trigger:
manual_manage_env_workflow
now relies solely on theenv_list
parameter, eliminating the need forspace_list
andcloudgov
parameters to manually specify spaces, usernames, or passwords.CLOUDGOV_DEV_PASSWORD
,CLOUDGOV_SANDBOX_SPACE
) are dynamically resolved based on each environment inenv_list
, supporting multiple actions (start
,stop
,restart
,restage
).Parameter Updates:
space_list
andcloudgov
parameters, makingenv_list
the primary input to manage environments with corresponding credentials and space names auto-mapped based on the environment value.Automated Job Execution:
manage_env_apps
job now handles each environment's state transition (start, stop, restart, or restage) based on the values inenv_list
and dynamically retrieved credentials, providing precise, automated management without additional input for each environment.Example Usage:
Use the following parameters in the CircleCI pipeline to manage specific environments dynamically:
With these changes, the workflow manages specified environments effectively based on
env_list
, enhancing deployment and maintenance for sandbox or production systems.Benefits:
start
,stop
,restart
,restage
) across specified environments, driven entirely by pipeline parameters.How to Test
Navigate to CircleCI Dashboard:
Trigger a Pipeline Manually:
true
."tta-smarthub-sandbox"
.Monitor Workflow Execution:
manage_env_apps
).env_list
.View Job Logs:
manage_env_apps
job in the workflow to review detailed logs.env_list
andenv_state
(e.g., actions on sandbox environment).Test Multiple Scenarios:
env_list
to test different environments if applicable.Ensure Expected Behavior:
env_list
to validate the workflow's response to various environment configurations.Issue(s)
Checklists
Every PR
Before merge to main
Production Deploy
After merge/deploy