Skip to content

Commit b408814

Browse files
committed
fix(iac-template):add provider prompt to the prompt
1 parent 977647b commit b408814

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

app/prompt_generators.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ def IaC_template_generator(input : IaCTemplateGeneration) -> str:
6868
sensitive values.
6969
- versions.tf:
7070
- Contains the `terraform` and `provider` blocks, specifying required versions.
71+
72+
- If {input.base_config} is a Docker resource, set kreuzwerker/docker as the provider with appropriate version constraints.
73+
- If {input.base_config} is an AWS resource, set hashicorp/aws as the provider with suitable version constraints.
74+
7175
- Structure the `terraform` block as:
7276
terraform {{
7377
required_version = ">= 1.0"
@@ -103,6 +107,9 @@ def IaC_template_generator(input : IaCTemplateGeneration) -> str:
103107
typical configuration values, making it easier to set up and reducing the need for hardcoded values.
104108
- versions.tf:
105109
- Contains the `terraform` and `provider` blocks, specifying required versions.
110+
- If {input.base_config} is a Docker resource, set kreuzwerker/docker as the provider with appropriate version constraints.
111+
- If {input.base_config} is an AWS resource, set hashicorp/aws as the provider with suitable version constraints.
112+
106113
- Structure the `terraform` block as:
107114
terraform {{
108115
required_version = ">= 1.0"

0 commit comments

Comments
 (0)