Skip to content
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

[#IOCIT-182] add fn public #316

Merged
merged 15 commits into from
Dec 19, 2022
Merged

[#IOCIT-182] add fn public #316

merged 15 commits into from
Dec 19, 2022

Conversation

arcogabbo
Copy link
Contributor

List of changes

  • created function_public with azure functions runtime v4
  • created shared_plan_1 service plan

Motivation and context

porting from old infrastructure and various improvements

Type of changes

  • Add new resources
  • Update configuration to existing resources
  • Remove existing resources

Env to apply

  • DEV
  • UAT
  • PROD

Does this introduce a change to production resources with possible user impact?

  • Yes, users may be impacted applying this change
  • No

Does this introduce an unwanted change on infrastructure? Check terraform plan execution result

  • Yes
  • No

Other information


If PR is partially applied, why? (reserved to mantainers)

How to apply

After PR is approved

  1. run deploy pipeline from Azure DevOps io-platform-iac-projects
  2. select PR branch
  3. wait for approval

default = null
}

variable "plan_shared_sku_tier" {
Copy link
Member

@pasqualedevita pasqualedevita Dec 3, 2022

Choose a reason for hiding this comment

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

Suggested change
variable "plan_shared_sku_tier" {
variable "plan_shared_1_sku_tier" {

add 1 to respect naming convention, there are many others changes to do

Copy link
Contributor Author

Choose a reason for hiding this comment

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

solved in 46bd324

@@ -222,6 +222,11 @@ variable "cidr_subnet_cgn" {
description = "Function cgn address space."
}

variable "cidr_subnet_shared" {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
variable "cidr_subnet_shared" {
variable "cidr_subnet_shared_1" {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

solved in 46bd324

src/core/function_public.tf Outdated Show resolved Hide resolved
src/core/function_shared.tf Outdated Show resolved Hide resolved
src/core/function_shared.tf Outdated Show resolved Hide resolved
src/core/function_shared.tf Outdated Show resolved Hide resolved
pasqualedevita
pasqualedevita previously approved these changes Dec 6, 2022
@arcogabbo arcogabbo marked this pull request as ready for review December 19, 2022 08:39
@arcogabbo arcogabbo requested a review from a team December 19, 2022 08:39
@arcogabbo arcogabbo requested review from a team as code owners December 19, 2022 08:39
michaeldisaro
michaeldisaro previously approved these changes Dec 19, 2022
function_public = {
app_settings_common = {
FUNCTIONS_WORKER_RUNTIME = "node"
WEBSITE_NODE_DEFAULT_VERSION = "14.16.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

this can be removed

Copy link
Member

@pasqualedevita pasqualedevita left a comment

Choose a reason for hiding this comment

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

try this

resource_group_name = azurerm_resource_group.shared_rg.name
function_app_name = module.function_public.name
function_app_id = module.function_public.id
app_service_plan_id = azurerm_app_service_plan.shared_1_plan.id
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
app_service_plan_id = azurerm_app_service_plan.shared_1_plan.id
app_service_plan_id = azurerm_app_service_plan.shared_1_plan.id

Copy link
Contributor

Choose a reason for hiding this comment

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

what is the difference?

@arcogabbo
Copy link
Contributor Author

arcogabbo commented Dec 19, 2022

to address terraform resource attributes determination while performing plan, I will add the function in another PR and run the apply of the resources in this PR. therefore in this commit, i removed the function_public.tf file

EDIT: the new PR is #345

@michaeldisaro michaeldisaro merged commit e7d5942 into main Dec 19, 2022
@michaeldisaro michaeldisaro deleted the IOCIT-182-add-fn-public branch December 19, 2022 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants