Skip to content

Commit ecd9110

Browse files
silvicirKrusty93
andauthored
infra: [SIW-3853] cleanup PagoPA resources (#692)
Co-authored-by: Krusty93 <andrea.grillo@pagopa.it>
1 parent 7d25378 commit ecd9110

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+797
-1757
lines changed

infra/resources/_modules/apim/README.md

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,8 @@ No requirements.
1515

1616
| Name | Source | Version |
1717
|------|--------|---------|
18-
| <a name="module_apim_v2_wallet_admin_api"></a> [apim\_v2\_wallet\_admin\_api](#module\_apim\_v2\_wallet\_admin\_api) | git::https://github.com/pagopa/terraform-azurerm-v4//api_management_api | v1.0.0 |
1918
| <a name="module_apim_v2_wallet_admin_product"></a> [apim\_v2\_wallet\_admin\_product](#module\_apim\_v2\_wallet\_admin\_product) | github.com/pagopa/terraform-azurerm-v4//api_management_product | v1.0.0 |
20-
| <a name="module_apim_v2_wallet_app_api"></a> [apim\_v2\_wallet\_app\_api](#module\_apim\_v2\_wallet\_app\_api) | git::https://github.com/pagopa/terraform-azurerm-v4//api_management_api | v1.0.0 |
2119
| <a name="module_apim_v2_wallet_app_product"></a> [apim\_v2\_wallet\_app\_product](#module\_apim\_v2\_wallet\_app\_product) | github.com/pagopa/terraform-azurerm-v4//api_management_product | v1.0.0 |
22-
| <a name="module_apim_v2_wallet_pdnd_api"></a> [apim\_v2\_wallet\_pdnd\_api](#module\_apim\_v2\_wallet\_pdnd\_api) | git::https://github.com/pagopa/terraform-azurerm-v4//api_management_api | v1.0.0 |
2320
| <a name="module_apim_v2_wallet_pdnd_product"></a> [apim\_v2\_wallet\_pdnd\_product](#module\_apim\_v2\_wallet\_pdnd\_product) | github.com/pagopa/terraform-azurerm-v4//api_management_product | v1.0.0 |
2421
| <a name="module_apim_v2_wallet_support_api"></a> [apim\_v2\_wallet\_support\_api](#module\_apim\_v2\_wallet\_support\_api) | git::https://github.com/pagopa/terraform-azurerm-v4//api_management_api | v1.0.0 |
2522
| <a name="module_apim_v2_wallet_support_product"></a> [apim\_v2\_wallet\_support\_product](#module\_apim\_v2\_wallet\_support\_product) | github.com/pagopa/terraform-azurerm-v4//api_management_product | v1.0.0 |
@@ -30,35 +27,20 @@ No requirements.
3027
| Name | Type |
3128
|------|------|
3229
| [azurerm_api_management_api_operation_policy.get_current_wallet_instance_status_policy](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/api_management_api_operation_policy) | resource |
33-
| [azurerm_api_management_api_operation_policy.health_check_pdnd_policy](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/api_management_api_operation_policy) | resource |
34-
| [azurerm_api_management_api_operation_policy.set_wallet_instance_status_pdnd_policy](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/api_management_api_operation_policy) | resource |
30+
| [azurerm_api_management_api_operation_policy.is_fiscal_code_whitelisted_policy](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/api_management_api_operation_policy) | resource |
3531
| [azurerm_api_management_api_operation_policy.set_wallet_instance_status_policy](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/api_management_api_operation_policy) | resource |
36-
| [azurerm_api_management_api_tag.wallet_admin](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/api_management_api_tag) | resource |
37-
| [azurerm_api_management_api_tag.wallet_app](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/api_management_api_tag) | resource |
38-
| [azurerm_api_management_api_tag.wallet_pdnd](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/api_management_api_tag) | resource |
3932
| [azurerm_api_management_api_tag.wallet_support](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/api_management_api_tag) | resource |
4033
| [azurerm_api_management_api_tag.wallet_web](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/api_management_api_tag) | resource |
41-
| [azurerm_api_management_named_value.app_func_key](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/api_management_named_value) | resource |
42-
| [azurerm_api_management_named_value.user_func_key](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/api_management_named_value) | resource |
43-
| [azurerm_api_management_named_value.user_func_key_admin](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/api_management_named_value) | resource |
4434
| [azurerm_api_management_tag.wallet](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/api_management_tag) | resource |
45-
| [azurerm_key_vault_secret.support_func_key_default](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source |
46-
| [azurerm_key_vault_secret.user_func_key_admin](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source |
47-
| [azurerm_key_vault_secret.user_func_key_app](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source |
48-
| [azurerm_key_vault_secret.user_func_key_ioweb](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/key_vault_secret) | data source |
4935

5036
## Inputs
5137

5238
| Name | Description | Type | Default | Required |
5339
|------|-------------|------|---------|:--------:|
5440
| <a name="input_apim"></a> [apim](#input\_apim) | APIM configuration variables | <pre>object({<br/> name = string<br/> resource_group_name = string<br/> id = string<br/> })</pre> | n/a | yes |
55-
| <a name="input_function_apps"></a> [function\_apps](#input\_function\_apps) | APIM configuration variables | <pre>object({<br/> user_function = object({<br/> function_hostname = string<br/> })<br/> support_function = object({<br/> function_hostname = string<br/> })<br/> })</pre> | n/a | yes |
56-
| <a name="input_key_vault_id"></a> [key\_vault\_id](#input\_key\_vault\_id) | Key Vault ID | `string` | n/a | yes |
57-
| <a name="input_key_vault_wallet_id"></a> [key\_vault\_wallet\_id](#input\_key\_vault\_wallet\_id) | Wallet Key Vault ID | `string` | n/a | yes |
5841
| <a name="input_product_id"></a> [product\_id](#input\_product\_id) | Product ID | `string` | n/a | yes |
5942
| <a name="input_project_legacy"></a> [project\_legacy](#input\_project\_legacy) | n/a | `string` | n/a | yes |
6043
| <a name="input_revision"></a> [revision](#input\_revision) | Revision | `string` | `"v1"` | no |
61-
| <a name="input_tags"></a> [tags](#input\_tags) | Resource tags | `map(any)` | n/a | yes |
6244

6345
## Outputs
6446

infra/resources/_modules/apim/api/admin/_base_policy.xml

Lines changed: 0 additions & 11 deletions
This file was deleted.

infra/resources/_modules/apim/api/admin/_swagger.json

Lines changed: 0 additions & 162 deletions
This file was deleted.
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
openapi: 3.0.3
2+
info:
3+
title: IO Wallet API Admin
4+
version: 1.0.0
5+
security:
6+
- SubscriptionKey: []
7+
paths:
8+
/wallet-instances:
9+
delete:
10+
operationId: deleteWalletInstances
11+
summary: Delete wallet instances
12+
parameters:
13+
- in: header
14+
name: fiscal-code
15+
required: true
16+
schema:
17+
$ref: '#/components/schemas/FiscalCode'
18+
responses:
19+
"204":
20+
description: Wallet instances successfully deleted
21+
"400":
22+
$ref: '#/components/responses/BadRequest'
23+
"422":
24+
$ref: '#/components/responses/UnprocessableContent'
25+
"500":
26+
$ref: '#/components/responses/InternalServerError'
27+
"503":
28+
$ref: '#/components/responses/ServiceUnavailable'
29+
components:
30+
securitySchemes:
31+
SubscriptionKey:
32+
type: apiKey
33+
name: Ocp-Apim-Subscription-Key
34+
in: header
35+
responses:
36+
BadRequest:
37+
description: Validation error
38+
content:
39+
application/json:
40+
schema:
41+
$ref: '#/components/schemas/ProblemJson'
42+
Unauthorized:
43+
description: Unauthorized
44+
content:
45+
application/json:
46+
schema:
47+
$ref: '#/components/schemas/ProblemJson'
48+
NotFound:
49+
description: The specified resource was not found
50+
content:
51+
application/json:
52+
schema:
53+
$ref: '#/components/schemas/ProblemJson'
54+
UnprocessableContent:
55+
description: Unprocessable Content
56+
content:
57+
application/json:
58+
schema:
59+
$ref: '#/components/schemas/ProblemJson'
60+
InternalServerError:
61+
description: Internal Server Error
62+
content:
63+
application/json:
64+
schema:
65+
$ref: '#/components/schemas/ProblemJson'
66+
ServiceUnavailable:
67+
description: Service Unavailable
68+
content:
69+
application/json:
70+
schema:
71+
$ref: '#/components/schemas/ProblemJson'
72+
schemas:
73+
FiscalCode:
74+
type: string
75+
description: User's fiscal code.
76+
format: FiscalCode
77+
x-import: '@pagopa/ts-commons/lib/strings'
78+
example: SPNDNL80R13C555X
79+
ProblemJson:
80+
type: object
81+
properties:
82+
type:
83+
type: string
84+
format: uri
85+
description: |
86+
An absolute URI that identifies the problem type. When dereferenced,
87+
it SHOULD provide human-readable documentation for the problem type
88+
(e.g., using HTML).
89+
default: about:blank
90+
example: https://example.com/problem/constraint-violation
91+
title:
92+
type: string
93+
description: >-
94+
A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable
95+
status:
96+
type: integer
97+
format: int32
98+
description: The HTTP status code generated by the origin server for this occurrence of the problem.
99+
minimum: 100
100+
maximum: 600
101+
exclusiveMaximum: true
102+
example: 500
103+
detail:
104+
type: string
105+
description: |
106+
A human readable explanation specific to this occurrence of the
107+
problem.
108+
example: There was an error processing the request
109+
instance:
110+
type: string
111+
format: uri
112+
description: An absolute URI that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.

infra/resources/_modules/apim/api/app/_base_policy.xml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)