Skip to content

Commit e6eb2e4

Browse files
committed
add depends_on for all aws_eks_addon, add info about it to README.md
1 parent 43e14dd commit e6eb2e4

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ You can find more about this project in Anton Babenko stream:
8080
- [Base project name](#base-project-name)
8181
- [Unique prefix of resource names](#unique-prefix-of-resource-names)
8282
- [Separators](#separators)
83+
- [Depends_on](#depends_on)
8384
- [Resource names](#resource-names)
8485
- [Variable names](#variable-names)
8586
- [Output names](#output-names)
@@ -570,6 +571,18 @@ The `local.name` value is then used as a prefix for all `name` and `name_prefix`
570571
571572
> Use `name_prefix` where possible
572573
574+
#### Depends_on
575+
576+
- When you need to add depends_on to resource or module you should add it in end and put empty line in front of it. Example:
577+
```
578+
resource "aws_eks_addon" "coredns" {
579+
count = var.addon_create_coredns ? 1 : 0
580+
...
581+
582+
depends_on = [module.eks]
583+
}
584+
```
585+
573586
#### Resource names
574587
575588
- The resource type should not be duplicated in the resource name (either partially or in full):

terraform/layer2-k8s/.terraform.lock.hcl

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)