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
general
  • b

    billions-lock-73409

    02/08/2019, 3:15 PM
    I know you can use extraIncludePaths to pull in additional files but you still need to define a callback closure
  • b

    billions-lock-73409

    02/08/2019, 4:44 PM
    Just re-read the https://github.com/pulumi/docs/blob/master/reference/serializing-functions.md document, this helps and I think I can move forward there
  • b

    billions-lock-73409

    02/08/2019, 4:51 PM
    For lambda env varibles, is it possible to enable the transit encryption option? I see we can supply a KMS ARN but that only covers it at rest
    w
    • 2
    • 1
  • b

    brainy-magician-83981

    02/08/2019, 5:27 PM
    Is there an article to clearly define and explain the distinctions between the different available apis? And when to best use them? For example, I see there is a cloud api, an aws api, an awsx api, and the aws-serverless api.
    w
    • 2
    • 3
  • g

    gorgeous-egg-16927

    02/08/2019, 7:01 PM
    message has been deleted
  • m

    millions-judge-24978

    02/08/2019, 8:26 PM
    Does Pulumi perform a deep diff/compare of things like the
    spec
    property of a k8s Ingress resource? https://pulumi.io/reference/pkg/nodejs/@pulumi/kubernetes/extensions/v1beta1/#Ingress-spec I am finding that when updating the JSON of this field, which looks like
    { rules: ... }
    , where the
    ...
    changes, Pulumi is showing no changes.
    c
    g
    • 3
    • 52
  • l

    lemon-greece-30910

    02/08/2019, 8:52 PM
    i am new to AWS. i want to do as the title of this thread says... i want to assign a static IP address to a docker container or some other serverless solution. i have a ECS instance running on aws, this has a static IP assigned to it because i was able to find the option. this EC2 instance then runs a docker container with a caddy server to serve static content, and manage routing paths and subdomains. suppose i owned "helloworld.com"; i can create a subdomains like "test.helloworld.com" and route paths like "https://helloworld.com/hello/world" i would prefer not to need a ec2 instance running if i can figure out how to do this serverless-ly. as i mentioned previously, i am new to AWS and i think using pulumi.io exactly fits my requirements and seems to be easy to understand. ... but i cant figure out how to assign a static IP address to a container running on AWS. i'm new to AWS, so any guidance is appreciated.
  • h

    helpful-ice-5738

    02/08/2019, 9:39 PM
    I am setting up an API with `aws.apigateway.x.API()`:
    const api = new aws.apigateway.x.API("name", {
    	stageName: "demo",
        routes: [
    	    {
    	        path: "/",
    	        method: "POST",
    	        eventHandler: lambda,
    	    },
    	    {
    	    	path: "/",
    	    	method: "PUT",
    	    	eventHandler: lambda,
    	    }
        ]
    });
    and am attempting to attach an api key…
    const api_key = new aws.apigateway.ApiKey("demo", {
    	name: "demo",
    	stageKeys: [{
    		restApi: api.id,
    		stageName: api.stageName
    	}]
    })
    output from pulumi up is:
    aws:apigateway:ApiKey (demo):
        warning: urn:pulumi:pulumi_demo::webserver::aws:apigateway/apiKey:ApiKey::demo verification warning: "stage_key": [DEPRECATED] Since the API Gateway usage plans feature was launched on August 11, 2016, usage plans are now required to associate an API key with an API stage
        error: aws:apigateway/apiKey:ApiKey resource 'demo' has a problem: "stage_key.0.stage_name": required field is not set
        error: aws:apigateway/apiKey:ApiKey resource 'demo' has a problem: "stage_key.0.rest_api_id": required field is not set
    with api.ts, I am able to set stageName per
    const stageName = args.stageName || "stage"; `
    but apikey.ts doesn’t seem to ingest the var?
    • 1
    • 4
  • b

    brainy-magician-83981

    02/08/2019, 9:44 PM
    I was running a
    pulumi destroy
    ... it listed a resource that was not created by my pulumi stack to be deleted. This resource was a prior existing resource that was added into the stack via an aws resource id. Will pulumi destroy this resource? If so, how do you tell pulumi to never destroy a resource not created by it? I got this resource via a
    get
    call.
    const not_my_tbl = aws.dynamodb.Table.get('not_my_table', 'not_my_table')
    *In general, is there a way to mark a resource to never be destroyed?
    w
    b
    • 3
    • 4
  • h

    helpful-ice-5738

    02/08/2019, 10:26 PM
    Is there a way to pass apigateway.Method arguments to apigateway.x.API()? I am having a hard time tracking
    apiKeyRequired
    and use of apigateway.Method at all (I have an apikey, usageplan, and usageplankey)
    w
    l
    • 3
    • 10
  • c

    chilly-photographer-60932

    02/08/2019, 11:09 PM
    This code is causing
    panic
    panic__runtime_error__invalid_memory_address_or_nil_pointer_dereference.ts
    c
    m
    • 3
    • 30
  • o

    orange-tailor-85423

    02/08/2019, 11:14 PM
    Is there a good general design around functions that pass computed objects but then keep having URN naming collisions? Example is code where I feed in an array of service account emails from Service Account objects created earlier in the program.
  • o

    orange-tailor-85423

    02/08/2019, 11:14 PM
    keep getting [Object object] collisions
    c
    w
    • 3
    • 12
  • o

    orange-tailor-85423

    02/08/2019, 11:37 PM
    -.ts
  • e

    enough-quill-87570

    02/08/2019, 11:59 PM
    I created my first empty stack, but the web console shows "Bad Request: Stack still contains resources" when I attempt a delete. Even though I haven't touched anything on it. 🤔
    w
    b
    • 3
    • 5
  • e

    enough-quill-87570

    02/09/2019, 12:02 AM
    In addition when I do a
    pulumi new aws-javascript -s X
    I get
    error: no Pulumi project found in the current working directory
    . Even though it says it do this in an empty directory (which it is).
    w
    • 2
    • 4
  • e

    enough-quill-87570

    02/09/2019, 12:53 AM
    Thanks for the help with the issues @bitter-oil-46081 and @white-balloon-205. I'm a long time Terraform and Serverless.js user, trying Pulumi out for the weekend as a replacement for some projects possibly.
    🙌 1
  • e

    enough-quill-87570

    02/09/2019, 12:53 AM
    May do a writeup on it 👍
    g
    • 2
    • 1
  • b

    bitter-oil-46081

    02/09/2019, 12:53 AM
    Thanks for trying us out! Sorry you had a rough go of it, but we'll be here to help.
  • c

    chilly-photographer-60932

    02/09/2019, 1:38 AM
    Just updated to the latest
    gcp
    and we are seeing
    error: [500] Internal Server Error
    m
    • 2
    • 7
  • g

    gentle-parrot-98690

    02/09/2019, 1:39 AM
    I'm seeing the same for lots of operations, and can't access app.pulumi.com
  • g

    gentle-parrot-98690

    02/09/2019, 1:39 AM
    Just pulumi preview on a previously working stack (with no component updates) gives me that error
  • b

    bitter-oil-46081

    02/09/2019, 1:40 AM
    Yes, some alarms on our end just went off and we are investigating.
  • b

    bitter-oil-46081

    02/09/2019, 1:50 AM
    We are seeing elevated error rates from our production service and are investigating. We'll share an update by 6:00 PST
  • b

    bitter-oil-46081

    02/09/2019, 2:03 AM
    We believe the issue is related to high CPU usage in our backend database and are failing over to a replica. We'll update again at 6:15 PST.
  • b

    bitter-oil-46081

    02/09/2019, 2:18 AM
    We believe the problem is solved, and will be monitoring all systems for subsequent issues.
    👍 2
  • g

    gentle-parrot-98690

    02/09/2019, 2:34 AM
    Thank you for the quick response; things are working again for me
    👍 2
  • e

    enough-quill-87570

    02/09/2019, 3:29 AM
    Is there a "best practices" document/writeup, or possibly a big example of a real world backend? I see the snippets of examples on Git, but have so many things in my mind... Primarily proper organization as the backend scales.
  • c

    chilly-photographer-60932

    02/09/2019, 3:45 AM
    This is from the example code and it is running into an error
    error: unexpected null property rrdatas[0]
    Sample_of_creating_a_static_IP_in_GCP.ts
    m
    g
    • 3
    • 10
  • c

    chilly-photographer-60932

    02/10/2019, 1:20 PM
    Unable to create
    gcp
    dns
    recordset
    .
    import * as gcp from '@pulumi/gcp';
    
    const prod = new gcp.dns.ManagedZone('prod', {
      dnsName: 'naveen.xyz.io.'
    });
    new gcp.dns.RecordSet('naveen', {
      managedZone: prod.name,
      rrdatas: ['8.8.8.8'],
      ttl: 300,
      type: 'A'
    });
    gcp:dns:RecordSet (naveen):
        error: Plan apply failed: Error creating DNS RecordSet: googleapi: Error 400: Invalid value for 'entity.change.additions[0].name': 'naveen-ff1a1c6', invalid
    g
    • 2
    • 8
Powered by Linen
Title
c

chilly-photographer-60932

02/10/2019, 1:20 PM
Unable to create
gcp
dns
recordset
.
import * as gcp from '@pulumi/gcp';

const prod = new gcp.dns.ManagedZone('prod', {
  dnsName: 'naveen.xyz.io.'
});
new gcp.dns.RecordSet('naveen', {
  managedZone: prod.name,
  rrdatas: ['8.8.8.8'],
  ttl: 300,
  type: 'A'
});
gcp:dns:RecordSet (naveen):
    error: Plan apply failed: Error creating DNS RecordSet: googleapi: Error 400: Invalid value for 'entity.change.additions[0].name': 'naveen-ff1a1c6', invalid
Looks like the issue with the name is the issue and something similar https://github.com/terraform-providers/terraform-provider-google/issues/634
@microscopic-florist-22719 this is also related to the other one where we are unable to create the static IP. Now that I have hardcoded the static IP. I am still unable to create DNS Recordset.
Both the static ip and unable to create recordset are blockers from delivering what we have promised.
Would appreciate any update on this because this is critical for us
g

gentle-diamond-70147

02/11/2019, 5:45 PM
Hi Naveen, I'm looking into this now.
It looks like the
name
argument of
gcp.dns.RecordSet
must be the FQDN - e.g.
<http://naveen.naveen.xyz.io|naveen.naveen.xyz.io>
based on the values in your code.
this runs successfully...
import * as pulumi from '@pulumi/pulumi';
import * as gcp from '@pulumi/gcp';

const prod = new gcp.dns.ManagedZone('prod', {
    dnsName: 'naveen.xyz.io.'
});

new gcp.dns.RecordSet('naveen', {
    name: pulumi.interpolate `naveen.${prod.dnsName}`,
    managedZone: prod.name,
    rrdatas: ['8.8.8.8'],
    ttl: 300,
    type: 'A'
});
c

chilly-photographer-60932

02/11/2019, 6:57 PM
@gentle-diamond-70147 Thanks, that worked. Appreciate the help!
View count: 1