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

    big-psychiatrist-43588

    09/29/2022, 12:15 PM
    Do we have any option to copy the config and secrets in case of renaming the module
  • t

    thousands-engineer-52020

    09/29/2022, 2:00 PM
    hi, in the documentation, it's referencing to Config setter "The programming model offers a
    Config
    object with various getters and setters for retrieving values." https://www.pulumi.com/docs/intro/concepts/config/ But I can't find any setter in the API documentation
    r
    3 replies · 2 participants
  • a

    average-printer-31589

    09/29/2022, 2:30 PM
    How does one configure the parallelization factor in lambda via pulumi? I went through the pulumi Lambda resource, but couldn’t find the valid arguments for it. Reference: https://aws.amazon.com/blogs/compute/using-aws-lambda-as-a-consumer-for-amazon-kinesis/ Any help is appreciated!
  • r

    red-table-91012

    09/29/2022, 2:44 PM
    Hi, I am trying to change routeTableAssociation by creating new routeTableAssociation. According to the docs In case there is exising association I have to import the existing. although I did it i still get the error: "Resource.AlreadyAssociated: the specified association for route pulumi..." can u help me figure what I am missing?
  • c

    creamy-window-21036

    09/29/2022, 6:11 PM
    I am using inline python code to create eks cluster and I also have s3 backend configured this way 👇
    project_settings=auto.ProjectSettings(
        name=project_name,
        runtime="python",
        backend={"url": "<s3://bucket-in-different-region-or-other-account>"})
    stack = auto.create_or_select_stack(stack_name=stack_name,
                                        project_name=project_name,
                                        program=pulumi_program,
                                        opts=auto.LocalWorkspaceOptions(project_settings=project_settings,
                                                                        secrets_provider=secrets_provider}))
    I am using pulumi_eks to provision a cluster
    import pulumi_eks as eks
    eks.Cluster(...)
    Is there a way to to pass seperate credential to both of the context? I mean separate creds for pulumi login and separate creds to provision EKS cluster
    e
    8 replies · 2 participants
  • f

    fierce-xylophone-92490

    09/29/2022, 7:11 PM
    Can anyone recommend a resource to host my own Pulumi state on S3? (so not paying for Pulumi and giving up the nice managed features)
    r
    e
    +1
    5 replies · 4 participants
  • b

    brash-restaurant-84207

    09/29/2022, 8:02 PM
    Hi, I have the following code: user_data = """ #!/bin/bash whoami >> /script_output apt-get update -y >> script_output apt-get install awscli -y >> script_output apt-get install nginx -y >> script_output mkdir -p /var/lib/cloud/scripts/per-boot/ """ ec2_instance = aws.ec2.Instance("ec2_instance", ami=ubuntu.id, instance_type = "t3.medium", subnet_id = vpc.public_subnet_ids[0], key_name = "my-kp", vpc_security_group_ids = [my_sec_group.id], user_data=user_data, user_data_replace_on_change=True, tags={ "Name": "ec2_instance", }) pulumi creates the instance as defined but does not run the user_data for some reason. why would this be?
    b
    k
    +1
    22 replies · 4 participants
  • t

    thankful-king-67661

    09/29/2022, 11:10 PM
    Hello Everyone
  • t

    thankful-king-67661

    09/29/2022, 11:10 PM
    I am new to pulumi and I am facing a bit of an issue here
  • t

    thankful-king-67661

    09/29/2022, 11:11 PM
    AZURE_EXISTING_CONTAINER_REGISTRY_ID = config.require_secret("AZURE_EXISTING_CONTAINER_REGISTRY_ID")
  • t

    thankful-king-67661

    09/29/2022, 11:11 PM
    I am getting a secret and using it to import an already existing resource in the azure cloud by doing below
  • t

    thankful-king-67661

    09/29/2022, 11:12 PM
    opts=ResourceOptions(
                                        import_=AZURE_EXISTING_CONTAINER_REGISTRY_ID,
                                        retain_on_delete=True,
                                        protect=True
    )
    l
    7 replies · 2 participants
  • t

    thankful-king-67661

    09/29/2022, 11:12 PM
    I have used
    .apply
    method as well but it does not work
  • t

    thankful-king-67661

    09/29/2022, 11:13 PM
    the error it throws is this
  • t

    thankful-king-67661

    09/29/2022, 11:13 PM
    req = resource_pb2.RegisterResourceRequest(
        TypeError: bad argument type for built-in operation
  • t

    thankful-king-67661

    09/29/2022, 11:13 PM
    I would really appreciate if somebody knows why this is happening
  • f

    fierce-xylophone-92490

    09/30/2022, 2:55 AM
    Noob question: Is it safe to mix Pulumi code with code that interacts with the resources? I'd like to create a GitHub repo and push some generated file with
    git push ...
    . But those files wouldn't be tracked by the pulumi state. Would this work? Or would pulumi freak out if I try to do
    pulumi destroy
    on the drifted repo later? I'd love any resources that show someone trying to accomplish something similar
    e
    1 reply · 2 participants
  • f

    flaky-arm-38472

    09/30/2022, 7:13 AM
    Hi, anytime now that I try to install pulumi it just does not install properly. This is happening just recently. This is the output after running `curl -fsSL https://get.pulumi.com | sh`:
    cp: cannot open 'pulumi.X3wA11JaNP/pulumi/./pulumi-language-yaml' for reading: Permission denied
    cp: cannot open 'pulumi.X3wA11JaNP/pulumi/./pulumi-language-nodejs' for reading: Permission denied
    cp: cannot open 'pulumi.X3wA11JaNP/pulumi/./pulumi-language-python' for reading: Permission denied
    cp: cannot open 'pulumi.X3wA11JaNP/pulumi/./pulumi-language-dotnet' for reading: Permission denied
    cp: cannot open 'pulumi.X3wA11JaNP/pulumi/./pulumi-language-java' for reading: Permission denied
    cp: cannot open 'pulumi.X3wA11JaNP/pulumi/./pulumi-language-go' for reading: Permission denied
    And all the new projects get this:
    error: failed to load language plugin go: Could not automatically download and install language plugin 'pulumi-language-go', install the plugin using `pulumi plugin install language go`.
    Underlying error: 404 HTTP error fetching plugin from <https://api.github.com/repos/pulumi/pulumi-go/releases/latest>. If this is a private GitHub repository, try providing a token via the GITHUB_TOKEN environment variable. See: <https://github.com/settings/tokens>
    Running above command still throws the same error 404
    e
    2 replies · 2 participants
  • a

    adorable-butcher-51503

    09/30/2022, 8:15 AM
    hallo
  • a

    adorable-butcher-51503

    09/30/2022, 8:16 AM
    how to create a keypair with ec2
  • a

    adorable-butcher-51503

    09/30/2022, 8:18 AM
    import pulumi
    from pulumi_aws import s3
    
    import pulumi
    import pulumi_aws as aws
    
    
    # Create an AWS resource (S3 Bucket)
    bucket = s3.Bucket('my-bucket')
    
    # Export the name of the bucket
    pulumi.export('bucket_name', bucket.id)
    
    
    size = 't2.micro'
    ami = aws.get_ami(most_recent="true",
                      owners=[""],
                      filters=[{"name":"name","values":["amzn-ami-hvm-*"]}])
    
    group = aws.ec2.SecurityGroup('webserver-secgrp',
        description='Enable HTTP access',
        ingress=[
            { 'protocol': 'tcp', 'from_port': 22, 'to_port': 22, 'cidr_blocks': ['0.0.0.0/0'] },
            { 'protocol': 'tcp', 'from_port': 80, 'to_port': 80, 'cidr_blocks': ['0.0.0.0/0'] }
        ])
    
    user_data = """
    #!/bin/bash
    echo "Hello, World!" > index.html
    nohup python -m SimpleHTTPServer 80 &
    """
    
    server = aws.ec2.Instance('webserver-www',
        instance_type=size,
        vpc_security_group_ids=[group.id], # reference security group from above
        user_data=user_data,
        ami=ami.id)
    
    pulumi.export('publicIp', server.public_ip)
    pulumi.export('publicHostName', server.public_dns)
    s
    2 replies · 2 participants
  • b

    busy-dentist-99842

    09/30/2022, 2:08 PM
    Hello All, I am having an issue with
    config
    in a custom Pulumi template. It seems
    default
    can't handle an object for
    aws:defaultTags
    . Here is my
    Pulumi.yaml
    in the template
    name: ${PROJECT}
    description: ${DESCRIPTION}
    runtime: nodejs
    stackConfigDir: config/
    template:
      description: A minimal AWS TypeScript Pulumi program
      config:
        aws:defaultTags:
          default:
            tags:
              Tag1: value1
              Tag2: value2
        aws:region:
          description: The AWS region to deploy into
          default: us-east-1
    I run the
    pulumi new
    command and get the following error
    $ pulumi new ~/dev/rs-pulumi-templates/aws-typescript --name sandbox --stack sandbox --yes
    error: yaml: unmarshal errors:
      line 10: cannot unmarshal !!map into string
    The behavior I expect is to get a Pulumi project created with this in the
    Pulumi.sandbox.yaml
    encryptionsalt: v1:X5f2X+HrmBA=:v1:W4AbC74tERwws/44:W9KutY3Gg2o7xh4sMr//DrIeCmj+lQ==
    config:
      aws:region: us-east-1
      aws:defaultTags:
        tags:
          Tag1: value1
          Tag2: value2
    I was able to get the configurations I want by running
    pulumi new
    with the
    --config-path
    and
    --config
    flags. I was also able to get the expected result using the
    pulumi config
    command. Ideally, I'd like to get the expected outcome from the template, not the command line. Any ideas on what I am doing wrong or if it is even possible? Thanks
    a
    2 replies · 2 participants
  • a

    average-tiger-58107

    09/30/2022, 3:28 PM
    I am running a github action that will build a docker image tagged w/ current git SHA, and push to ecr. I then have an action that will use pulumi to deploy a fargate ecs task using the image tagged/pushed by the previous step. It is important for us to separate our versioned build artifact from the code that deploys said artifact to a given environment, so we will be using raw docker commands to do the building / pushing, and will use pulumi to actually deploy to fargate ecs. I will however, need access to the SHA of the commit (available on github runner environment) inside my pulumi code that deploys to fargate. I couldn't find any documentation on reading environment variables from system env in my pulumi code. Is it as simple as using
    process.env
    (node)?
    👀 1
    s
    9 replies · 2 participants
  • f

    future-journalist-90839

    09/30/2022, 4:40 PM
    Hello! It's been a long not using Pulumi. Is there a way to upload my static site to an existing bucket and specific the folder (key)?
    s
    m
    20 replies · 3 participants
  • f

    fierce-xylophone-92490

    10/01/2022, 10:20 AM
    I opened an issue with
    pulumi-github
    because it seemed like one of the resources was hitting the wrong GitHub endpoint. Under the hood, how do you fix things like that in Pulumi? Do you have to change an underlying Terraform provider? https://github.com/pulumi/pulumi-github/issues/248
    e
    2 replies · 2 participants
  • d

    damp-rain-39201

    10/01/2022, 12:43 PM
    Hello I’m creating a multi language support pulumi sdk sdk in typescript . When I usung the command make generate to build the sdk by using pulumi provided generator.go file it’s overwriting the name of package.json for instance my package name @atmakur/pulumi-mymodule to @pulumi/pulumi-mymodule
    e
    4 replies · 2 participants
  • c

    clever-helmet-2777

    10/01/2022, 1:36 PM
    Hello I can't find how to update my billing information (company information...) if someone can guide me. Thanks
    b
    2 replies · 2 participants
  • m

    most-napkin-6669

    10/02/2022, 1:16 PM
    Hey team! I create ecs cluster and log-group to store the logs in there, but whenever the job has done and i want to destroy the resources the logs from cloudwatch are getting deleted also. How can i keep the log group but destroying all the other resources?
    e
    2 replies · 2 participants
  • m

    melodic-car-16900

    10/02/2022, 6:54 PM
    If I want to share some config between two separate stacks, what's my best option?
  • m

    melodic-car-16900

    10/02/2022, 6:54 PM
    including some secrets
Powered by Linen
Title
m

melodic-car-16900

10/02/2022, 6:54 PM
including some secrets
View count: 1