https://pulumi.com logo
Docs
Join the conversationJoin Slack
Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
plugin-framework
pulumi-cdk
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumi-service
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by Linen
python
  • b

    bland-lamp-97030

    02/11/2019, 10:33 PM
    do I have to move to an async runner? And then do I need to run that future myself from main if so?
  • b

    bland-lamp-97030

    02/11/2019, 10:33 PM
    Context: https://pulumi-community.slack.com/archives/CDE799L1M/p1549754540176600
  • s

    stocky-spoon-28903

    02/12/2019, 12:55 AM
    @little-river-49422 The latest Azure provider is released - 0.16.8
    ๐Ÿ˜˜ 1
  • s

    stocky-spoon-28903

    02/12/2019, 12:55 AM
    The docs will be up soon too
  • l

    little-river-49422

    02/12/2019, 7:30 AM
    sweet signalr connectionstring is working, now I'm going to sit and wait for k8s custom resources ๐Ÿ™‚
    ๐ŸŽ‰ 1
  • f

    flat-river-10700

    02/12/2019, 11:18 PM
    Happy to see that Pulumi delete parallelism for Python is shipping in 0.17.0. Do we have an ETA on that release? Ref: https://github.com/pulumi/pulumi/pull/2443
  • i

    incalculable-sundown-82514

    02/12/2019, 11:19 PM
    Weโ€™re actually thinking of releasing it in the next point release - since at this point there are not any users that we are aware of that are using the old Python 2 only SDK.
    ๐Ÿ˜€ 1
  • f

    flat-river-10700

    02/12/2019, 11:19 PM
    Oh sweet!
  • f

    flat-river-10700

    02/12/2019, 11:19 PM
    Even sooner then
  • i

    incalculable-sundown-82514

    02/12/2019, 11:20 PM
    yep! ๐Ÿ˜„
    ๐ŸŽ‰ 1
  • l

    little-river-49422

    02/13/2019, 5:17 PM
    hey folks, I'm looking at a really weird behaviour
  • l

    little-river-49422

    02/13/2019, 5:17 PM
    print(redis_acct.primary_access_key)
    returns <pulumi.output.Output object at 0x04FDC310>
  • l

    little-river-49422

    02/13/2019, 5:17 PM
    and I get the same in the configmap. wut
  • l

    little-river-49422

    02/13/2019, 5:18 PM
    signalr, storage account, application insights work just fine
  • l

    little-river-49422

    02/13/2019, 5:19 PM
    ok, appears printing doesnt really work, but not sure why do I still get this same output in the configmap, should it not resolve it?
  • l

    little-river-49422

    02/13/2019, 5:25 PM
    yeah, really weird behaviour. connection strings\keys from all the other resources get extracted just fine
    g
    • 2
    • 7
  • l

    little-river-49422

    02/14/2019, 9:06 PM
    ok, i really think I'm looking at a bug right now ๐Ÿ™‚
  • l

    little-river-49422

    02/14/2019, 9:07 PM
    I'm using
    subnet.id
    in a AKS resource definition and it does this:
    error: azure:containerservice/kubernetesCluster:KubernetesCluster resource 'aks' has a problem: Can not parse "agent_pool_profile.0.vnet_subnet_id" as a resource id: Cannot parse Azure ID: parse : empty url
    if I comment out AKS and provision network and remove comments and rerun it works
  • l

    little-river-49422

    02/14/2019, 9:11 PM
    import pulumi
    from pulumi import ResourceOptions
    from pulumi_azure.core import ResourceGroup
    from pulumi_azure.role import Assignment
    from <http://pulumi_azure.ad|pulumi_azure.ad> import Application, ServicePrincipal, ServicePrincipalPassword
    from pulumi_azure.containerservice import KubernetesCluster, Registry
    from pulumi_azure.network import VirtualNetwork, Subnet
    from pulumi_kubernetes import Provider
    from pulumi_kubernetes.apiextensions.v1beta1 import CustomResourceDefinition
    from pulumi_kubernetes.rbac.v1 import ClusterRole
    
    
        app = Application(
            'aks-app',
            name=gen_name('aks-app')
        )
    
        sp = ServicePrincipal(
            'aks-sp',
            application_id=app.application_id
        )
    
        sppwd = ServicePrincipalPassword(
            'aks-sp-pwd',
            service_principal_id=sp.id,
            end_date='2020-01-01T01:02:03Z',
            value="ASKNH(U#D2fji0nfh2f"
        )
    
        rg = ResourceGroup(
            'rg',
            name=gen_name('rg'),
            location='westeurope'
        )
    
        vnet = VirtualNetwork(
            'vnet',
            name=gen_name('vnet'),
            location=rg.location,
            resource_group_name=rg.name,
            address_spaces=['10.0.0.0/8']
        )
    
        subnet = Subnet(
            'subnet',
            name=gen_name('subnet'),
            resource_group_name=rg.name,
            address_prefix='10.0.0.0/24',
            virtual_network_name=vnet.name
        )
    
        aks = KubernetesCluster(
            'aks',
            name=gen_name('aks'),
            location=rg.location,
            resource_group_name=rg.name,
            kubernetes_version="1.12.4",
            dns_prefix="dns",
            agent_pool_profile=(
                {
                    "name": "type1",
                    "count": 2,
                    "vmSize": "Standard_B2ms",
                    "osType": "Linux",
                    "maxPods": 110,
                    "vnet_subnet_id": subnet.id
                }
            ),
            linux_profile=(
                {
                    "adminUsername": "azureuser",
                    "ssh_key": [
                        {
                            "keyData": "sshkey"
                        }
                    ]
                }
            ),
            service_principal={
                "clientId": app.application_id,
                "clientSecret": sppwd.value
            },
            role_based_access_control={
                "enabled": "true"
            },
            network_profile=(
                {
                    "networkPlugin": "azure",
                    "serviceCidr": "10.10.0.0/16",
                    "dns_service_ip": "10.10.0.10",
                    "dockerBridgeCidr": "172.17.0.1/16"
                }
            )
        )
  • l

    little-river-49422

    02/14/2019, 9:11 PM
    you would need a gen_name function or just replace it with something. if you are wondering why its indented, i have it defined as function a call from another place, forgot to unindent, sorry
  • l

    little-river-49422

    02/14/2019, 9:34 PM
    oh yeah, this configuration got another weird behaviour in it
  • l

    little-river-49422

    02/14/2019, 9:34 PM
    error: azure:ad/servicePrincipalPassword:ServicePrincipalPassword resource 'aks-sp-pwd' has a problem: "service_principal_id" isn't a valid UUID (""): uuid string is wrong length
  • l

    little-river-49422

    02/14/2019, 9:34 PM
    if you run first 2 resource and comment everything out and then uncomment service principal password it works ๐Ÿ™‚
  • l

    little-river-49422

    02/14/2019, 9:35 PM
    so you got 2-in-1 ๐Ÿ˜‰
  • i

    incalculable-sundown-82514

    02/14/2019, 9:39 PM
    I donโ€™t know much about Azure but that error message about
    vnet_subnet_id
    makes it sound like itโ€™s looking for a resourceID - is that different than what
    subnet.id
    returns?
  • l

    little-river-49422

    02/14/2019, 9:41 PM
    no, like i said, if I comment everything after subnet out, run first part and then uncomment everything works
  • l

    little-river-49422

    02/14/2019, 9:41 PM
    same with the sppwd
  • i

    incalculable-sundown-82514

    02/14/2019, 9:42 PM
    I hear you, Iโ€™m just speculating. What do you believe the bug is?
  • l

    little-river-49422

    02/14/2019, 9:42 PM
    well, it looks like its trying to expand the value before getting the value
  • l

    little-river-49422

    02/14/2019, 9:42 PM
    in both cases
Powered by Linen
Title
l

little-river-49422

02/14/2019, 9:42 PM
in both cases
View count: 1