Skip to content

Add python-mongo template terraform - #532

Merged
HadwaAbdelhalem merged 35 commits into
Azure:mainfrom
kaizentm:cse/add-template-terraform
Sep 2, 2022
Merged

Add python-mongo template terraform#532
HadwaAbdelhalem merged 35 commits into
Azure:mainfrom
kaizentm:cse/add-template-terraform

Conversation

@HadwaAbdelhalem

@HadwaAbdelhalem HadwaAbdelhalem commented Aug 26, 2022

Copy link
Copy Markdown
Contributor

this PR adds the terraform modules code for todo-python-mongo template by adding :

  • Python-mongo infra terraform code.
  • application-insights, a common infra module, terraform code.
  • repo.yaml, and azure.yaml config files for the template repo generation.

➡Note : Target template remote to be created Azure-Samples/todo-python-mongo-terraform

➡Note : The generated template has a dependency on this issue being addressed rewrite module path normalization .

fixes #232

hattan and others added 23 commits August 3, 2022 12:09
… list to match wider pattern repo*.yaml, refactor infra to infra/bicep in common, and common/projects
Co-authored-by: Hattan Shobokshi <hattan.shobokshi@microsoft.com>
Co-authored-by: Hattan Shobokshi <hattan.shobokshi@microsoft.com>
Co-authored-by: Hattan Shobokshi <hattan.shobokshi@microsoft.com>
Co-authored-by: Hattan Shobokshi <hattan.shobokshi@microsoft.com>
Co-authored-by: Hadwa Gaber <hadwaa@microsoft.com>
Co-authored-by: Hattan Shobokshi <hattan.shobokshi@microsoft.com>
Co-authored-by: Hattan Shobokshi <hattan.shobokshi@microsoft.com>
Co-authored-by: Hattan Shobokshi <hattan.shobokshi@microsoft.com>
Co-authored-by: Hattan Shobokshi <hattan.shobokshi@microsoft.com>
Co-authored-by: Hattan Shobokshi <hattan.shobokshi@microsoft.com>
Co-authored-by: Hattan Shobokshi <hattan.shobokshi@microsoft.com>
Co-authored-by: Hattan Shobokshi <hattan.shobokshi@microsoft.com>
Co-authored-by: Hattan Shobokshi <hattan.shobokshi@microsoft.com>
@HadwaAbdelhalem HadwaAbdelhalem changed the title add python-mongo template terraform Add python-mongo template terraform Aug 26, 2022
@HadwaAbdelhalem HadwaAbdelhalem linked an issue Aug 26, 2022 that may be closed by this pull request
2 tasks
@HadwaAbdelhalem
HadwaAbdelhalem requested a review from hattan August 26, 2022 20:17
@HadwaAbdelhalem HadwaAbdelhalem self-assigned this Aug 26, 2022

@wbreza wbreza left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good so far - added a few comments.

Comment thread templates/todo/projects/python-mongo/.repo/terraform/infra/main.tf Outdated
Comment thread templates/todo/projects/python-mongo/.repo/terraform/infra/main.tf Outdated
Comment thread templates/todo/projects/python-mongo/.repo/terraform/infra/provider.tf Outdated
Comment thread templates/common/infra/terraform/applicationinsights.tf
Comment thread templates/common/infra/terraform/applicationinsights_variables.tf
Comment thread templates/todo/projects/python-mongo/.repo/terraform/infra/apps.tf
Comment thread templates/todo/projects/python-mongo/.repo/terraform/infra/variables.tf Outdated
Comment thread templates/todo/projects/python-mongo/.repo/terraform/infra/main.tf
@karolz-ms

Copy link
Copy Markdown
Contributor

@HadwaAbdelhalem are you planning to add launch.json and tasks.json files for local development?

We might want to reuse them between this template and the Bicep-based one. This would require moving them to a shared folder.

@wbreza wbreza left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great - a few more comments around the appinsights module.

Comment thread templates/common/infra/terraform/applicationinsights.tf
Comment thread templates/todo/projects/python-mongo/.repo/terraform/infra/main.tf Outdated
@HadwaAbdelhalem

Copy link
Copy Markdown
Contributor Author

@HadwaAbdelhalem are you planning to add launch.json and tasks.json files for local development?

We might want to reuse them between this template and the Bicep-based one. This would require moving them to a shared folder.

@karolz-ms , I had them in a previous PR. and received feedback to exclude them as they are specific tothe todo-apps 60a463b

Comment thread templates/todo/projects/python-mongo/.repo/terraform/azure.yaml

@wbreza wbreza left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great, thank you!

Comment thread templates/todo/projects/python-mongo/.repo/terraform/azure.yaml
Comment thread templates/todo/projects/python-mongo/.repo/terraform/azure.yaml
@karolz-ms

Copy link
Copy Markdown
Contributor

@HadwaAbdelhalem are you planning to add launch.json and tasks.json files for local development?
We might want to reuse them between this template and the Bicep-based one. This would require moving them to a shared folder.

@karolz-ms , I had them in a previous PR. and received feedback to exclude them as they are specific tothe todo-apps 60a463b

@HadwaAbdelhalem and I synced offline. The VS Code files will be included automatically as part of template generation; and the files that we have for Python-Mongo flavor of the ToDo app will work unchanged.

@azure-sdk

Copy link
Copy Markdown
Collaborator

Repoman Generation Results

Repoman pushed changes to remotes for the following projects:

Project: todo-python-mongo-terraform

Remote: azure-samples-staging

Branch: pr/532

You can initialize this project with:

azd init -t Azure-Samples/todo-python-mongo-terraform -b pr/532

View Changes | Compare Changes


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Terraform support for todo-python-mongo template

7 participants