-
Notifications
You must be signed in to change notification settings - Fork 53
Remove terraform #3826
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
Open
joergdw
wants to merge
9
commits into
main
Choose a base branch
from
remove_terraform
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Remove terraform #3826
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
e3c17e3
Explicitly allow terraform under its busl1.1-license;
joergdw 2d644aa
Smaller documentation-fixes;
joergdw 468035b
Improve descriptions;
joergdw 2a065a2
Add hint to detailed documentation;
joergdw 316b156
Add fly-client to ci-terragrunt-devshell;
joergdw 695525e
Improve documentation and comment;
joergdw bf8e62e
Remove terraform;
joergdw 5ba6814
Small docu-change;
joergdw 9fa4519
Add hint regarding zsh-completion;
joergdw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,43 @@ | ||
# app-autoscaler-ci | ||
|
||
This repository provides all public scripts and pipeline deployments used | ||
by the app autoscaler team. The public pipeline is hosted at: <https://concourse.app-runtime-interfaces.ci.cloudfoundry.org>. | ||
This repository provides all public scripts and pipeline deployments used by the app “autoscaler-team”. The public pipeline is hosted at: <https://concourse.app-runtime-interfaces.ci.cloudfoundry.org> | ||
|
||
To reproduce this pipeline, you can use your own private configuration files for the `pipeline.yml` files as described below. | ||
|
||
## Autoscaler | ||
|
||
This directory contains the concourse `pipeline.yml` for the autoscaler [pipeline](https://concourse.app-runtime-interfaces.ci.cloudfoundry.org/teams/app-autoscaler/pipelines/app-autoscaler-release) | ||
and all of the associated scripts. To use this manifest, you need to provide a private configuration file | ||
for all of the template parameters. | ||
🚸 __Important__: Regarding the concourse-pipelines, please note that there is a dedicated credhub-instance that differs from the one that is used for the bosh-director to render manifests. It needs to contain the credhub-secrets that are referenced in the pipeline-definition. Their paths must be prefixed by `/concourse/<team-name>` (e.g. `/concourse/app-autoscaler`). The login to that instance can be done via calling the script [terragrunt/scripts/concourse/start-credhub-cli.sh](<https://github.com/cloudfoundry/app-runtime-interfaces-infrastructure/blob/main/terragrunt/scripts/concourse/start-credhub-cli.sh>) in the repository <https://github.com/cloudfoundry/app-runtime-interfaces-infrastructure>. | ||
|
||
NOTE: If you are recreating this pipeline, for personal use and do not have authority to update | ||
tracker or push to github. The `pipeline.yml` file needs to have any `tracker` sections commented | ||
out as well as the app-autoscaler private key | ||
|
||
## dockerfiles | ||
## Autoscaler | ||
This directory contains the concourse `pipeline.yml` for the autoscaler-[pipeline](<https://concourse.app-runtime-interfaces.ci.cloudfoundry.org/teams/app-autoscaler/pipelines/app-autoscaler-release>) and all of the associated scripts. To use this manifest, you need to provide a private configuration file for all of the template parameters. | ||
|
||
These docker images in this repo are built and pushed with GitHub actions, they are hosted on ghcr.io | ||
🪧 _NOTE_: If you are recreating this pipeline, for personal use and do not have authority to update tracker or push to github. The `pipeline.yml` file needs to have any `tracker` sections commented out as well as the app-autoscaler private key. | ||
|
||
## Terrgrunt | ||
## Dockerfiles | ||
These docker images in this repo are built and pushed with GitHub actions, they are hosted on <ghcr.io>. | ||
|
||
This directory contains the terragrunt managed stacks of resouces in account app-runtime-interfaces-wg GCP project. | ||
## Terragrunt | ||
This directory contains the terragrunt managed stacks of resources in the account app-runtime-interfaces-wg GCP project. It comes with its dedicated instructions in <./terragrunt/app-autoscaler/concourse/README.md> on how to set-up concourse-related resources. | ||
|
||
## Deploy pipeline | ||
|
||
__Setup__ | ||
|
||
``` | ||
```shell | ||
make set-target | ||
make set-autoscaler-pipeline | ||
``` | ||
|
||
## Unpause pipeline and jobs | ||
|
||
``` | ||
# You will be prompted to select the specific jobs you want to unpause. | ||
You will be prompted to select the specific jobs you want to unpause. | ||
```shell | ||
make unpause-pipeline | ||
``` | ||
|
||
## Prometheus | ||
|
||
This is deployed using the script [deploy-prometheus](infrastructure/scripts/deploy-prometheus.sh). | ||
To deploy localy you will need: | ||
|
||
- bosh ca certificate and place this it is `${HOME}/.ssh/bosh.ca.crt`. | ||
- <https://github.com/bosh-prometheus/prometheus-boshrelease> cloned in ../ | ||
- <https://github.com/cloudfoundry/app-autoscaler-env-bbl-state> cloned in ../ | ||
This is deployed using the script [deploy-prometheus](<./infrastructure/scripts/deploy-prometheus.sh>). To deploy locally you will need: | ||
+ bosh ca certificate and place this it is `${HOME}/.ssh/bosh.ca.crt`. | ||
+ <https://github.com/bosh-prometheus/prometheus-boshrelease> cloned in ../ | ||
+ <https://github.com/cloudfoundry/app-autoscaler-env-bbl-state> cloned in ../ | ||
|
||
Then you can run the script directly. | ||
|
||
### setup | ||
|
||
- The Slack channel is stored in the cf credhub under `/bosh-autoscaler/prometheus/alertmanager_slack_channel` | ||
- The Slack Message can be customised in the [slack-receiver-template.yml](operations/slack-receiver-template.yml) | ||
### Setup | ||
+ The Slack channel is stored in the cf credhub under `/bosh-autoscaler/prometheus/alertmanager_slack_channel` | ||
+ The Slack Message can be customised in the [slack-receiver-template.yml](<./operations/slack-receiver-template.yml>) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
# Internal documentation | ||
|
||
## Why Terragrunt? | ||
|
||
Terragrunt is used for the following reasons: | ||
+ Without terragrunt, it would be necessary to manually initialise the backends in the bucket. | ||
+ Terragrunt is able to install and manage several related Terraform-Modules uniquely in spite of having a separated terraform state for each one. The latter has the advantage to be able to separately destroy/refactor them. Concourse in the context of this terraform-project is organised in layers (called “stacks” in Terragrunt). | ||
|
||
* Without terragrunt, it would be necessary to manually initialise the backends in the bucket. | ||
* Terragrunt is able to install and manage several related Terraform-Modules uniquely in spite of having a separated terraform state for each one. The latter has the advantage to be able to separately destroy/refactor them. Concourse in the context of this terraform-project is organised in layers (called “stacks” in Terragrunt). | ||
|
||
This degree of automation enables automatic testing and continuous delivery of this concourse and its infrastructure. | ||
This degree of automation enables automatic testing and continuous delivery of this concourse and its infrastructure. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.