Skip to content

feat: better docs #2

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

Merged
merged 1 commit into from
Feb 13, 2023
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
8 changes: 4 additions & 4 deletions .terraform-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ content: |-
{{- end }}

# Examples
### Minimal
```hcl
{{ include "examples/min/main.tf" }}
```
### Full
```hcl
{{ include "examples/full/main.tf" }}
```

### Minimal
```hcl
{{ include "examples/min/main.tf" }}
```

output:
file: "README.md"
Expand Down
43 changes: 30 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,28 @@
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-container-definition/hipaa)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-container-definition&benchmark=HIPAA)
[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-ecs-container-definition/fedramp_moderate)](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=geekcell%2Fterraform-aws-ecs-container-definition&benchmark=FEDRAMP+%28MODERATE%29)

# Terraform AWS ECS Container Definition Module
# Terraform AWS ECS Container Definition

Module to create a valid ECS Container Definition for use with the AWS ECS Service. This module uses strict
HCL types and simplifies some of the more complex types such as `ulimits` and `environment`.
Introducing the AWS ECS Container Definitions Terraform Module, a highly
optimized solution for creating and managing your container definitions
within Amazon Web Services. This module has been expertly crafted by our
team, who have years of experience working with AWS and Terraform.

We have taken the time to fine-tune the settings and configurations to
provide you with the best possible experience when using this module. Our
team is comprised of experts in AWS and Terraform, and we are proud to share
our knowledge and expertise with you.

This Terraform module offers a preconfigured solution for managing your
container definitions, allowing you to focus on developing your applications
and not on the infrastructure setup. By using this module, you can be
confident that your container definitions are created and managed in a
secure, scalable, and efficient manner.

So, whether you're a seasoned AWS user or just starting out, the AWS ECS
Container Definitions Terraform Module is the perfect solution for managing
your container definitions. Give it a try and see the difference it can make
in your workflow!

## Inputs

Expand Down Expand Up @@ -97,6 +115,15 @@ No providers.


# Examples
### Minimal
```hcl
module "min" {
source = "../../"

name = "nginx"
image = "nginx:1.23-alpine"
}
```
### Full
```hcl
module "full" {
Expand Down Expand Up @@ -249,14 +276,4 @@ module "full" {
}
}
```

### Minimal
```hcl
module "minimal" {
source = "../../"

name = "nginx"
image = "nginx:1.23-alpine"
}
```
<!-- END_TF_DOCS -->
2 changes: 1 addition & 1 deletion examples/min/main.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module "minimal" {
module "min" {
source = "../../"

name = "nginx"
Expand Down
24 changes: 21 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
/**
* # Terraform AWS ECS Container Definition Module
* # Terraform AWS ECS Container Definition
*
* Module to create a valid ECS Container Definition for use with the AWS ECS Service. This module uses strict
* HCL types and simplifies some of the more complex types such as `ulimits` and `environment`.
* Introducing the AWS ECS Container Definitions Terraform Module, a highly
* optimized solution for creating and managing your container definitions
* within Amazon Web Services. This module has been expertly crafted by our
* team, who have years of experience working with AWS and Terraform.
*
* We have taken the time to fine-tune the settings and configurations to
* provide you with the best possible experience when using this module. Our
* team is comprised of experts in AWS and Terraform, and we are proud to share
* our knowledge and expertise with you.
*
* This Terraform module offers a preconfigured solution for managing your
* container definitions, allowing you to focus on developing your applications
* and not on the infrastructure setup. By using this module, you can be
* confident that your container definitions are created and managed in a
* secure, scalable, and efficient manner.
*
* So, whether you're a seasoned AWS user or just starting out, the AWS ECS
* Container Definitions Terraform Module is the perfect solution for managing
* your container definitions. Give it a try and see the difference it can make
* in your workflow!
*/
locals {
# TODO: Filter out null values on the container definition.
Expand Down