pulumi-django-azure 1.0.16__py3-none-any.whl → 1.0.17__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-django-azure might be problematic. Click here for more details.
- pulumi_django_azure/django_deployment.py +18 -4
- {pulumi_django_azure-1.0.16.dist-info → pulumi_django_azure-1.0.17.dist-info}/LICENSE +1 -1
- {pulumi_django_azure-1.0.16.dist-info → pulumi_django_azure-1.0.17.dist-info}/METADATA +5 -5
- pulumi_django_azure-1.0.17.dist-info/RECORD +7 -0
- {pulumi_django_azure-1.0.16.dist-info → pulumi_django_azure-1.0.17.dist-info}/WHEEL +1 -1
- pulumi_django_azure-1.0.16.dist-info/RECORD +0 -7
- {pulumi_django_azure-1.0.16.dist-info → pulumi_django_azure-1.0.17.dist-info}/top_level.txt +0 -0
|
@@ -65,7 +65,7 @@ class DjangoDeployment(pulumi.ComponentResource):
|
|
|
65
65
|
vnet: azure.network.VirtualNetwork,
|
|
66
66
|
pgsql_sku: azure.dbforpostgresql.SkuArgs,
|
|
67
67
|
pgsql_ip_prefix: str,
|
|
68
|
-
|
|
68
|
+
app_service_ip_prefix: str,
|
|
69
69
|
app_service_sku: azure.web.SkuDescriptionArgs,
|
|
70
70
|
storage_account_name: str,
|
|
71
71
|
storage_allowed_origins: Optional[Sequence[str]] = None,
|
|
@@ -83,7 +83,7 @@ class DjangoDeployment(pulumi.ComponentResource):
|
|
|
83
83
|
:param vnet: The virtual network to create the subnets in.
|
|
84
84
|
:param pgsql_sku: The SKU for the PostgreSQL server.
|
|
85
85
|
:param pgsql_ip_prefix: The IP prefix for the PostgreSQL subnet.
|
|
86
|
-
:param
|
|
86
|
+
:param app_service_ip_prefix: The IP prefix for the app service subnet.
|
|
87
87
|
:param app_service_sku: The SKU for the app service plan.
|
|
88
88
|
:param storage_account_name: The name of the storage account. Should be unique across Azure.
|
|
89
89
|
:param storage_allowed_origins: The origins (hosts) to allow access through CORS policy. You can specify '*' to allow all.
|
|
@@ -113,7 +113,7 @@ class DjangoDeployment(pulumi.ComponentResource):
|
|
|
113
113
|
# Subnet for the apps
|
|
114
114
|
self._app_subnet = self._create_subnet(
|
|
115
115
|
name="app-service",
|
|
116
|
-
prefix=
|
|
116
|
+
prefix=app_service_ip_prefix,
|
|
117
117
|
delegation_service="Microsoft.Web/serverFarms",
|
|
118
118
|
service_endpoints=["Microsoft.Storage"],
|
|
119
119
|
)
|
|
@@ -751,6 +751,7 @@ class DjangoDeployment(pulumi.ComponentResource):
|
|
|
751
751
|
secrets: Optional[dict[str, str]] = None,
|
|
752
752
|
comms_data_location: Optional[str] = None,
|
|
753
753
|
comms_domains: Optional[list[HostDefinition]] = None,
|
|
754
|
+
dedicated_app_service_sku: Optional[azure.web.SkuDescriptionArgs] = None,
|
|
754
755
|
vault_administrators: Optional[list[str]] = None,
|
|
755
756
|
) -> azure.web.WebApp:
|
|
756
757
|
"""
|
|
@@ -768,6 +769,7 @@ class DjangoDeployment(pulumi.ComponentResource):
|
|
|
768
769
|
and the name of the secret in the Key Vault.
|
|
769
770
|
:param comms_data_location: The data location for the Communication Services (optional if you don't need it).
|
|
770
771
|
:param comms_domains: The list of custom domains for the E-mail Communication Services (optional).
|
|
772
|
+
:param dedicated_app_service_sku: The SKU for the dedicated App Service Plan (optional).
|
|
771
773
|
:param vault_administrator: The principal ID of the vault administrator (optional).
|
|
772
774
|
"""
|
|
773
775
|
|
|
@@ -830,11 +832,23 @@ class DjangoDeployment(pulumi.ComponentResource):
|
|
|
830
832
|
]
|
|
831
833
|
|
|
832
834
|
allowed_hosts = pulumi.Output.concat(*[pulumi.Output.concat(host.full_host, ",") for host in website_hosts])
|
|
835
|
+
|
|
836
|
+
# Create a dedicated App Service Plan if requested
|
|
837
|
+
if dedicated_app_service_sku:
|
|
838
|
+
app_service_plan = azure.web.AppServicePlan(
|
|
839
|
+
f"asp-{self._name}-{name}",
|
|
840
|
+
resource_group_name=self._rg,
|
|
841
|
+
kind="Linux",
|
|
842
|
+
reserved=True,
|
|
843
|
+
sku=dedicated_app_service_sku,
|
|
844
|
+
)
|
|
845
|
+
else:
|
|
846
|
+
app_service_plan = self._app_service_plan
|
|
833
847
|
|
|
834
848
|
app = azure.web.WebApp(
|
|
835
849
|
f"app-{name}-{self._name}",
|
|
836
850
|
resource_group_name=self._rg,
|
|
837
|
-
server_farm_id=
|
|
851
|
+
server_farm_id=app_service_plan.id,
|
|
838
852
|
virtual_network_subnet_id=self._app_subnet.id,
|
|
839
853
|
identity=azure.web.ManagedServiceIdentityArgs(
|
|
840
854
|
type=azure.web.ManagedServiceIdentityType.SYSTEM_ASSIGNED,
|
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: pulumi-django-azure
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.17
|
|
4
4
|
Summary: Simply deployment of Django on Azure with Pulumi
|
|
5
5
|
Author-email: Maarten Ureel <maarten@youreal.eu>
|
|
6
6
|
License: MIT License
|
|
@@ -33,9 +33,9 @@ Classifier: Programming Language :: Python :: 3
|
|
|
33
33
|
Requires-Python: >=3.9
|
|
34
34
|
Description-Content-Type: text/markdown
|
|
35
35
|
License-File: LICENSE
|
|
36
|
-
Requires-Dist: pulumi>=3.
|
|
37
|
-
Requires-Dist: pulumi-azure-native>=2.
|
|
38
|
-
Requires-Dist: pulumi-random>=4.
|
|
36
|
+
Requires-Dist: pulumi>=3.146.0
|
|
37
|
+
Requires-Dist: pulumi-azure-native>=2.82.0
|
|
38
|
+
Requires-Dist: pulumi-random>=4.17.0
|
|
39
39
|
|
|
40
40
|
# Pulumi Django Deployment
|
|
41
41
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
pulumi_django_azure/__init__.py,sha256=5RY9reSVNw-HULrOXfhcq3cyPne-94ojFmeV1m6kIVg,79
|
|
2
|
+
pulumi_django_azure/django_deployment.py,sha256=y5Jk4W9tIYihlc46z8Nt-Jrn_fmKLDJfc3nbo66M9oY,44619
|
|
3
|
+
pulumi_django_azure-1.0.17.dist-info/LICENSE,sha256=NX2LN3U319Zaac8b7ZgfNOco_nTBbN531X_M_13niSg,1087
|
|
4
|
+
pulumi_django_azure-1.0.17.dist-info/METADATA,sha256=p-UAXhOPFUb5d5kX9wpMmh0bauaYA7p8xDfORsJ8nYQ,13955
|
|
5
|
+
pulumi_django_azure-1.0.17.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
6
|
+
pulumi_django_azure-1.0.17.dist-info/top_level.txt,sha256=MNPRJhq-_G8EMCHRkjdcb_xrqzOkmKogXUGV7Ysz3g0,20
|
|
7
|
+
pulumi_django_azure-1.0.17.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
pulumi_django_azure/__init__.py,sha256=5RY9reSVNw-HULrOXfhcq3cyPne-94ojFmeV1m6kIVg,79
|
|
2
|
-
pulumi_django_azure/django_deployment.py,sha256=NorAfJ8i4zhzY6dZ7TBDB3NKwqfAMH2-PyMQv5IurPw,43986
|
|
3
|
-
pulumi_django_azure-1.0.16.dist-info/LICENSE,sha256=tlZQiilfsHDYlvhWMA5PvDV2FxpaCQbE9aapcygnhEQ,1088
|
|
4
|
-
pulumi_django_azure-1.0.16.dist-info/METADATA,sha256=SZX_zbLE-ytF-NYk3krUN8k3hbKzfyiGil0Sz9ATk3g,13954
|
|
5
|
-
pulumi_django_azure-1.0.16.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
6
|
-
pulumi_django_azure-1.0.16.dist-info/top_level.txt,sha256=MNPRJhq-_G8EMCHRkjdcb_xrqzOkmKogXUGV7Ysz3g0,20
|
|
7
|
-
pulumi_django_azure-1.0.16.dist-info/RECORD,,
|
|
File without changes
|