https://github.com/rssnyder/iacm-ccm-demo
https://github.com/rssnyder/iacm-ccm-demo
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/rssnyder/iacm-ccm-demo
- Owner: rssnyder
- Created: 2024-01-26T21:11:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-08T18:03:25.000Z (about 2 years ago)
- Last Synced: 2025-03-23T06:12:34.882Z (about 1 year ago)
- Language: HCL
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# iacm-ccm-demo
provision:
- three ec2 instances
- nginx
- one idle instance
- one instance using two cpu
- use [stress](https://linux.die.net/man/1/stress) to peg cpus
- one instance using four cpu
- - use [stress](https://linux.die.net/man/1/stress) to peg cpus
- alb
- points at ec2
workshop:
- provision the lab using terraform
- optional Harness IacM workspace definition in `workspace.tf.example`
- optional Harness IacM OPA policy in `iacm.opa`
- create perspective in Harness CCM to show costs of application
- use Harness CCM to autostop instances using the existing ALB
- use Harness asset governance to resize the idle and half-idle instances
- example governance rule in `resize.yaml`