https://pulumi.com logo
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
general
  • b

    better-rainbow-14549

    05/22/2019, 2:01 PM
    just wondering if the local state thing is fixed?
    w
    • 2
    • 5
  • t

    tall-librarian-49374

    05/22/2019, 2:39 PM
    Would it make sense to add automated tests that check if there are no changes for well-known examples in new versions? That could detect the replace suggestions like this?
    w
    • 2
    • 1
  • b

    better-rainbow-14549

    05/22/2019, 2:46 PM
    I have a block that create an NS record based on another record:
    new azure.dns.NsRecord(`${args.ZoneArgs.name}`, {
            name: args.ZoneArgs.name,
            resourceGroupName: parentZone.resourceGroupName,
            zoneName: parentZone.name,
            record: pulumi.output(dnsZone.nameServers).apply(x => x.map(y => ({ nsdname: y }))),
            ttl: args.Ttl
        });
    but it always wants to update the resource - I suspect azure is shuffling the records order around to load balance the servers in some way, it's only ever the order that changes. Is the best workaround just to sort them?
    w
    • 2
    • 4
  • b

    better-rainbow-14549

    05/22/2019, 3:44 PM
    trying to update referenced pulumi packages in a cluster i deployed ages ago.. getting this
    error: azure:containerservice/kubernetesCluster:KubernetesCluster resource 'Operations-AKS' has a problem: "linux_profile.0.ssh_key": required field is not set
        error: azure:containerservice/kubernetesCluster:KubernetesCluster resource 'Operations-AKS' has a problem: linux_profile.0: invalid or unknown key: ssh_keys
  • b

    better-rainbow-14549

    05/22/2019, 3:46 PM
    if i fix that it wants to deploy the whole cluster again
  • b

    better-rainbow-14549

    05/22/2019, 3:54 PM
    ah no worries i edited the state file and its ok
  • b

    better-rainbow-14549

    05/22/2019, 3:54 PM
    sshKeys: [{...}] --> sshKey: {...}
  • a

    average-dream-51210

    05/22/2019, 8:44 PM
    Im current transcribing our Cognito User Pool into Pulumi. The way I have done it is to use the terraform export tool which outputs a JSON state of the resource, then go line by line to transcribe each property.
  • a

    average-dream-51210

    05/22/2019, 8:45 PM
    In the tfstate there are properties that have a 0, which I assume is like a 'false' or 'unfilled' property like so:
  • a

    average-dream-51210

    05/22/2019, 8:45 PM
    I wanted our Pulumi objects to be more explicit and have every possible attribute. Would I just set the property in Pulumi to be false?
  • a

    average-dream-51210

    05/22/2019, 10:53 PM
    How do I change AWS Profile so that Pulumi can point to a different AWS account?
    f
    • 2
    • 2
  • a

    average-dream-51210

    05/22/2019, 11:13 PM
    Hm, so I just created a Cognito User Pool through Pulumi, and I editted an attribute to be required from false to true. It deleted Cognito and made a Replacement. What If I wanted to change an attribute without deleting and replacing Cognito?
    w
    • 2
    • 4
  • e

    early-intern-90238

    05/23/2019, 12:02 AM
    Hey guys, I have an urgent issue. I can't get the HorizontalPodAutoscaler working and I think its because it has a scaleTargetRef that wants me to specify a name for the deployment but the name from Pulumi has an autogenerated id on it which I think is cuasing it to not match the HPA to the Deployment
  • e

    early-intern-90238

    05/23/2019, 12:09 AM
    So I have literally the stupidest hack to make this work, but there has to be a correct way to do this...here is my hack...
  • e

    early-intern-90238

    05/23/2019, 12:10 AM
  • e

    early-intern-90238

    05/23/2019, 12:10 AM
    I can't use 'id' on its own because its value is default/foo-d81n7khw
  • e

    early-intern-90238

    05/23/2019, 12:11 AM
    so i parse it, it works now
  • w

    white-balloon-205

    05/23/2019, 1:15 AM
    @early-intern-90238 are you unblocked for now? I don’t exactly follow what’s at the root of the problem here. If you set
    name
    explicitly then Pulumi will not auto name with a random postfix. It sounds like your worker did not specify a
    name
    ?
    e
    • 2
    • 1
  • a

    average-dream-51210

    05/23/2019, 5:20 AM
    Hm, we've got a CMS app with 24 Lambdas and associated API Gateways, Cognito, DynamoDB and RDS. Would it make sense to organize all infra in one stack? ANd use different stacks as different environments (dev, stage prod)?
  • a

    average-dream-51210

    05/23/2019, 5:21 AM
    Trying to wrap my head around how to use Projects and multiple Stacks under a project.
  • a

    average-dream-51210

    05/23/2019, 5:23 AM
    Ah nevermind, i will RTFM: https://pulumi.io/reference/organizing-stacks-projects.html 🙂
  • m

    microscopic-nightfall-25404

    05/23/2019, 12:23 PM
    hi, perhaps i’ve missed it in the docs, but how to work with pulumi if you’ve already existing infrastructure created by terraform? is there an easy way to import it into pulumi state?
    r
    • 2
    • 2
  • b

    better-rainbow-14549

    05/23/2019, 1:18 PM
    is there an example or schema for the --json preview output please?
  • t

    tall-librarian-49374

    05/23/2019, 2:33 PM
    Hi!
    pulumi.output(azure.core.getClientConfig({})).apply(c => servicePrincipalObjectId)
    is empty when I run pulumi on my dev pc. Is there a way to get the current user ID? I need to use it as
    objectId
    for permissions.
    r
    c
    • 3
    • 5
  • c

    creamy-jelly-91590

    05/23/2019, 3:01 PM
    @white-balloon-205 any idea why creating a GKE K8S Ingress would be stuck like this?
    ++  ├─ kubernetes:extensions:Ingress  hello-kubernetes-us-east1         creating replacement..   [diff: ~metadata]; [2/3] Waiting for update of .status.loadBalancer with hostname/IP
    r
    w
    c
    • 4
    • 83
  • f

    full-dress-10026

    05/23/2019, 3:54 PM
    A
    pulumi up
    failed and now I get several messages like this:
    aws:elasticloadbalancingv2:LoadBalancer (e839e3dc):
        error: Plan apply failed: refreshing urn:pulumi:fib-autoscale::fib::awsx:x:elasticloadbalancingv2:ApplicationLoadBalancer$aws:elasticloadbalancingv2/loadBalancer:LoadBalancer::e839e3dc: Error retrieving ALB: ValidationError: 'arn:aws:elasticloadbalancing:us-west-2:710312645543:loadbalancer/app/e839e3dc-3597e49/e54545127f980ecc' is not a valid load balancer ARN
        	status code: 400, request id: e2522ac7-7d72-11e9-a259-a7fa9e6e25ad
    How do you resolve this kind of error?
    w
    • 2
    • 2
  • b

    better-rainbow-14549

    05/23/2019, 3:59 PM
    the JSON preview output is great, can now require approval for deploy right in the CI PR
    🎉 7
    w
    c
    j
    • 4
    • 8
  • c

    cool-kite-89497

    05/23/2019, 5:12 PM
    error: cloudflare:index/zoneSettingsOverride:ZoneSettingsOverride resource '<zone>-zonesettings' has a problem: settings.0: invalid or unknown key: tls13
    error: cloudflare:index/zoneSettingsOverride:ZoneSettingsOverride resource '<zone>-zonesettings' has a problem: settings.0: invalid or unknown key: tls12_only
    Running into an issue with a CF ZoneSettingsOverride. Has anyone seen this before?
    • 1
    • 1
  • o

    orange-tailor-85423

    05/23/2019, 6:09 PM
    Not sure if it’s by design but noticed that if you run
    pulumi preview --suppress-outputs --json
    , the outputs end up in the JSON anyway
    w
    b
    • 3
    • 5
  • a

    average-dream-51210

    05/23/2019, 11:59 PM
    Hm, i'm using the JS sdk, what's a good way of organizing code? I currently have 3 Cognito user pools in 3 seperate files, require'd into the index.js . - Is this a good pattern? I'm planning to have the index.js be kind of like a 'Table of Contents' and put resources in their own folders to be require'd into the index.js.
    w
    • 2
    • 2
Powered by Linen
Title
a

average-dream-51210

05/23/2019, 11:59 PM
Hm, i'm using the JS sdk, what's a good way of organizing code? I currently have 3 Cognito user pools in 3 seperate files, require'd into the index.js . - Is this a good pattern? I'm planning to have the index.js be kind of like a 'Table of Contents' and put resources in their own folders to be require'd into the index.js.
w

white-balloon-205

05/24/2019, 3:57 AM
Yes - that’s generally a good way to organize. Splitting components or groups of related resources into serrated files/folders - and then using index.js in the root (or even in subfolders) to aggregate things together into the final application you want.
a

average-dream-51210

05/24/2019, 4:52 AM
awesome thanks!
View count: 1