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

Feature/example-onboarding-team #11

Merged
merged 7 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ test-acc:
test-examples-quickstart:
bash docs-guides-assets/quickstart/test-quickstart.sh $(ARGS)

# bash docs-guides-assets/onboarding/project-test/test-onboarding.sh $(ARGS)
test-examples-onboarding:
echo "Implemented in next PR - Dummy Test"
bash docs-guides-assets/onboarding/project-test/test-onboarding.sh $(ARGS)

docs-generate:
tfplugindocs generate \
Expand Down
Empty file.
33 changes: 33 additions & 0 deletions docs-guides-assets/onboarding/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# ONBOARDING EXAMPLE

- 1 single Business Organization
- 3 independent Web SaaS Projects with their dedicated resources: workers, tools and processes


## Software Project project-01
- Flat Hierarchical structure: there is no management so the team handles itself, and everyone
has full-stack profile so that everyone is working on frontend, backend and devops tasks.
- 1 single role: developer
- They release fast and often, through staging and production environments and
may apply A/B testing on a set of selected features in production to validate them.
- The responsibility is incumbent upon everyone to verify that the cloud resources in any environment are
destroyed when not in use or not needed anymore for the next hours.
- They use StackGuardian for all their Automation tasks, from handling easily-resettable
development environments, short-lived testing and staging environments, and long term production
environment.


## Software Project project-02 (WIP/TBC)
- Typical Hierarchical structure: Two teams FE & BE, with one team manager & developers for each team.
Additionally one DevOps role is cross-functional and contributes to both teams.
- They release once every 2 weeks on Thursday, through staging and production environments.
- The responsibility is incumbent upon the DevOps role to verify that the cloud resources in any environment are
destroyed when not in use or not needed anymore for the next hours.
- They use StackGuardian for all their Automation tasks, from handling easily-resettable
development environments, short-lived testing and staging environments, and long term production
environment.


## Software Project project-03 (WIP/TBD)
- Smallest Team possible: one single developer with a full-stack profile working on frontend, backend and devops tasks.
- The developer needs access every resources but requires automation to clean cloud resources
20 changes: 20 additions & 0 deletions docs-guides-assets/onboarding/project-01/import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

set -e -u -o pipefail -x


# --- Clean all Terraform state files
find . -type f -regextype posix-extended -regex '.+.tfstate(.[[:digit:]]+)?(.backup)?' -exec rm -v {} \+


# --- Import resources
set +e

terraform import stackguardian_workflow_group.ONBOARDING-Project01-Frontend /api/v1/orgs/wicked-hop/wfgrps/ONBOARDING-Project01-Frontend/
terraform import stackguardian_workflow_group.ONBOARDING-Project01-Backend /api/v1/orgs/wicked-hop/wfgrps/ONBOARDING-Project01-Backend/
terraform import stackguardian_workflow_group.ONBOARDING-Project01-DevOps /api/v1/orgs/wicked-hop/wfgrps/ONBOARDING-Project01-DevOps/

terraform import stackguardian_policy.ONBOARDING-Project01 /api/v1/orgs/wicked-hop/policies/ONBOARDING-Project01/
terraform import stackguardian_connector_vcs.ONBOARDING-Project01 /api/v1/orgs/wicked-hop/integrations/ONBOARDING-Project01/

terraform import stackguardian_role.ONBOARDING-Project01-Developer /api/v1/orgs/wicked-hop/roles/ONBOARDING-Project01-Develop/
Loading