github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/python/cue-static-web-app.py (about)

     1  import pulumi
     2  import pulumi_azure_native as azure_native
     3  
     4  rawkode_group = azure_native.resources.ResourceGroup("rawkode-group", location="WestUs")
     5  rawkode_storage = azure_native.storage.StorageAccount("rawkode-storage",
     6      resource_group_name=rawkode_group.name,
     7      kind="StorageV2",
     8      sku=azure_native.storage.SkuArgs(
     9          name="Standard_LRS",
    10      ))
    11  rawkode_website = azure_native.storage.StorageAccountStaticWebsite("rawkode-website",
    12      resource_group_name=rawkode_group.name,
    13      account_name=rawkode_storage.name,
    14      index_document="index.html",
    15      error404_document="404.html")
    16  rawkode_index_html = azure_native.storage.Blob("rawkode-index.html",
    17      resource_group_name=rawkode_group.name,
    18      account_name=rawkode_storage.name,
    19      container_name=rawkode_website.container_name,
    20      content_type="text/html",
    21      type=azure_native.storage.BlobType.BLOCK,
    22      source=pulumi.FileAsset("./website/index.html"))
    23  stack72_group = azure_native.resources.ResourceGroup("stack72-group", location="WestUs")
    24  stack72_storage = azure_native.storage.StorageAccount("stack72-storage",
    25      resource_group_name=stack72_group.name,
    26      kind="StorageV2",
    27      sku=azure_native.storage.SkuArgs(
    28          name="Standard_LRS",
    29      ))
    30  stack72_website = azure_native.storage.StorageAccountStaticWebsite("stack72-website",
    31      resource_group_name=stack72_group.name,
    32      account_name=stack72_storage.name,
    33      index_document="index.html",
    34      error404_document="404.html")
    35  stack72_index_html = azure_native.storage.Blob("stack72-index.html",
    36      resource_group_name=stack72_group.name,
    37      account_name=stack72_storage.name,
    38      container_name=stack72_website.container_name,
    39      content_type="text/html",
    40      type=azure_native.storage.BlobType.BLOCK,
    41      source=pulumi.FileAsset("./website/index.html"))