-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6cb4daa
commit 04be592
Showing
1 changed file
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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,6 +1,42 @@ | ||
# Terraform Module for Scalingo App | ||
|
||
An opinionated Terraform module to provision an application and database very easily with Scalingo | ||
An opinionated Terraform module to provision an application and database very easily with Scalingo. | ||
|
||
## Example usage | ||
|
||
```tf | ||
module "my_app" { | ||
source = "scalingo-community/app/scalingo" | ||
# Configure the name and the canonical domain of the application | ||
name = "my-app" | ||
domain = "my-app.example.com" | ||
# Define environment variables | ||
environment = { | ||
FOO = "bar" | ||
} | ||
# Configure size and amount of containers "web" | ||
containers = { | ||
web = { | ||
size = "S" | ||
amount = 2 | ||
} | ||
} | ||
# Provision an attached PostgreSQL database | ||
addons = [{ provider = "scalingo", plan = "scalingo-postgres:free" }] | ||
# Configure log drains | ||
log_drains = [{ type = "elk", url = "https://user:[email protected]" }] | ||
} | ||
``` | ||
|
||
## Community | ||
|
||
Used in production by : | ||
- [1jeune1solution.gouv.fr](https://1jeune1solution.gouv.fr). ([source code](https://github.com/DNUM-SocialGouv/1j1s-front/tree/main/terraform)) | ||
|
||
<!-- BEGIN_TF_DOCS --> | ||
## Requirements | ||
|