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
aws
  • a

    alert-raincoat-81485

    01/08/2021, 8:02 PM
    Getting this error if someone can help to guide.
    aws.lb.ListenerDefaultActionArgs(
             AttributeError: module '<http://pulumi_aws.lb|pulumi_aws.lb>' has no attribute 'ListenerDefaultActionArgs'
             error: an unhandled error occurred: Program exited with non-zero exit code: 1
    g
    1 reply · 2 participants
  • a

    average-school-38756

    01/10/2021, 2:46 AM
    i'm splitting one project into two, by importing existing stack resources into the new stack. One has me stumped: i have a TargetGroupAttachment which won't validate.
    $ pulumi preview --diff
        = aws:lb/targetGroup:TargetGroup: (import)
            [id=arn:aws:elasticloadbalancing:us-east-2:REDACTED:targetgroup/exampleTargetGroup-20b6d5b/REDACTED]
            [urn=urn:pulumi:dev::hello::aws:lb/targetGroup:TargetGroup::exampleTargetGroup]
            [provider=urn:pulumi:dev::hello::pulumi:providers:aws::default_3_20_0::REDACTED]
            healthCheck                   : {
                enabled           : false
                healthyThreshold  : 5
                interval          : 35
                matcher           : "200"
                path              : "/"
                timeout           : 30
                unhealthyThreshold: 2
            }
            lambdaMultiValueHeadersEnabled: false
            name                          : "exampleTargetGroup-20b6d5b"
            targetType                    : "lambda"
    [...]
    error: Preview failed: refreshing urn:pulumi:dev::hello::aws:lb/targetGroupAttachment:TargetGroupAttachment::exampleTargetGroupAttachment: 1 error occurred:
            * Error reading Target Health: ValidationError: A target group ARN must be specified
            status code: 400, request id: 76b68087-feea-451d-8e22-2770fe1edafa
    Code looks like this (and works in the original stack):
    lb.TargetGroupAttachment("exampleTargetGroupAttachment",
        target_group_arn=example_target_group.arn,
        target_id=example_fn.arn,
        opts=pulumi.resource.ResourceOptions(depends_on=[example_target_group, with_lb, example_fn], import_='arn:aws:elasticloadbalancing:us-east-2:REDACTED:targetgroup/exampleTargetGroup-20b6d5b/REDACTED')
    )
    Why would it be saying the target group ARN isn't specified?
    2 replies · 1 participant
  • b

    bright-printer-59109

    01/10/2021, 5:53 AM
    Does someone know if there's a way to buy a domain through pulumi?
    b
    b
    7 replies · 3 participants
  • b

    bright-printer-59109

    01/10/2021, 5:53 AM
    if it does not exist of course.
  • m

    millions-market-17062

    01/11/2021, 1:35 PM
    Hey, Trying to spin up EKS Getting this error
    error: aws:ec2/launchConfiguration:LaunchConfiguration resource 'eks-matan-ng1-nodeLaunchConfiguration' has a problem: Attribute must be a single value, not a list
    b
    c
    13 replies · 3 participants
  • a

    alert-raincoat-81485

    01/11/2021, 8:18 PM
    Hello folks, Need to understand about the state of the stack. if i delete one or more resource from the existing stack, and when i run Pulumi up again, it doesn’t identify the deleted resources and create them again. Is that really possible if it identifies the state of the stack and create the deleted resources again?
    l
    13 replies · 2 participants
  • g

    gentle-account-13294

    01/12/2021, 1:14 AM
    I’m getting an error with: AWS Subnet update which results in a
    replace
    for the Subnet. Actually it is shown as a
    delete
    and a
    create
    Separately. This results in an error when running
    up
    as the
    create
    is getting executed before the
    delete
    . Thoughts on what to do here would be great !!
    l
    10 replies · 2 participants
  • s

    sparse-spring-91820

    01/12/2021, 8:20 AM
    This would be a nice feature to implement in the future: https://www.infracost.io/
    b
    2 replies · 2 participants
  • l

    limited-pager-46264

    01/12/2021, 1:06 PM
    Used
    get_vpc
    and upon previewing got the following error:
    Exception: invocation of aws:ec2/getVpc:getVpc returned an error: invoking aws:ec2/getVpc:getVpc: 1 error occurred:
    	* no matching VPC found
    Is this expected? If not, any idea about the fix?
    b
    3 replies · 2 participants
  • b

    bland-byte-34481

    01/12/2021, 5:51 PM
    👋 i'm seeing a fun issue when adding a ServiceRegistry to an ECS Service - please let me know if I should file this as a bug in /aws
    panic: fatal: An assertion has failed: Expected diff to not require deletion or replacement during Update of urn:pulumi:dev::sample-shared::fargate-nginx$aws:ecs/service:Service::sample-shar-app-service
        goroutine 1366 [running]:
        <http://github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.failfast(...)|github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.failfast(...)>
            /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.15.1-0.20201202214525-260620430c4c/go/common/util/contract/failfast.go:23
        <http://github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.Assertf(0xc0020f7800|github.com/pulumi/pulumi/sdk/v2/go/common/util/contract.Assertf(0xc0020f7800>, 0x773aaa5, 0x48, 0xc002467778, 0x1, 0x1)
            /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.15.1-0.20201202214525-260620430c4c/go/common/util/contract/assert.go:33 +0x1a5
        <http://github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfbridge.(*Provider).Update(0xc00000a780|github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfbridge.(*Provider).Update(0xc00000a780>, 0x80e1260, 0xc00141b1d0, 0xc0018c3f00, 0xc00000a780, 0x688db01, 0xc001c36500)
            /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v2@v2.15.3/pkg/tfbridge/provider.go:958 +0x831
        <http://github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler.func1(0x80e1260|github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler.func1(0x80e1260>, 0xc00141b1d0, 0x7443da0, 0xc0018c3f00, 0x7406e00, 0xc117940, 0x80e1260, 0xc00141b1d0)
            /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.15.1-0.20201202214525-260620430c4c/proto/go/provider.pb.go:2305 +0x8b
        <http://github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1(0x80e1260|github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1(0x80e1260>, 0xc001027980, 0x7443da0, 0xc0018c3f00, 0xc000a2eb80, 0xc000a2eba0, 0x0, 0x0, 0x8014560, 0xc00007e8d0)
            /home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x2f6
        <http://github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler(0x75046e0|github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler(0x75046e0>, 0xc00000a780, 0x80e1260, 0xc001027980, 0xc00241dbc0, 0xc001564c20, 0x80e1260, 0xc001027980, 0xc001617800, 0xb6f)
            /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.15.1-0.20201202214525-260620430c4c/proto/go/provider.pb.go:2307 +0x150
        <http://google.golang.org/grpc.(*Server).processUnaryRPC(0xc000a87180|google.golang.org/grpc.(*Server).processUnaryRPC(0xc000a87180>, 0x81060e0, 0xc00034a180, 0xc0003b0400, 0xc001603b30, 0xc0d2ff8, 0x0, 0x0, 0x0)
            /home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:1171 +0x522
        <http://google.golang.org/grpc.(*Server).handleStream(0xc000a87180|google.golang.org/grpc.(*Server).handleStream(0xc000a87180>, 0x81060e0, 0xc00034a180, 0xc0003b0400, 0x0)
            /home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:1494 +0xcc5
        <http://google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000368020|google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000368020>, 0xc000a87180, 0x81060e0, 0xc00034a180, 0xc0003b0400)
            /home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:834 +0xa5
        created by <http://google.golang.org/grpc.(*Server).serveStreams.func1|google.golang.org/grpc.(*Server).serveStreams.func1>
            /home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:832 +0x1fd
    c
    7 replies · 2 participants
  • h

    helpful-kitchen-78641

    01/12/2021, 10:51 PM
    Hi there, all of a sudden i'm getting the following error when trying to do a
    pulumi up
    or
    pulumi refresh
    using an S3 bucket as my backend:
    error: unable to discover AWS AccessKeyID and/or SecretAccessKey - see <https://pulumi.io/install/aws.html> for details on configuration
    AFAIK nothing has changed in my
    ~/.aws/config
    or
    ~/.aws/credentials
    file. I've also tried specifying a profile as suggested here ( github.com/pulumi/pulumi-aws/issues/252#issuecomment-401405577 ) but i'm continuing to bang my head on this problem
    b
    15 replies · 2 participants
  • q

    quaint-guitar-13446

    01/12/2021, 11:49 PM
    Is there a way I can ensure that docker images are built prior to creating the associated ecs services that use the image? They are built using
    fromDockerBuild
  • q

    quaint-guitar-13446

    01/12/2021, 11:49 PM
    So not built lazily when required, but explicitly before
  • b

    best-lifeguard-91445

    01/13/2021, 2:38 PM
    pulumi preview
    keeps showing changes to the stack, when none are made: Looks like the container definition / task definitions are showing changes due to ouputs being mapped to the environments: [] array, or secrets: [] array. Any ideas on how to solve this?
    +-aws:ecs/taskDefinition:TaskDefinition: (replace)
                [id=use1-dev-registrar-api]
                [urn=urn:pulumi:dev::aws::awsx:x:ecs:EC2TaskDefinition$aws:ecs/taskDefinition:TaskDefinition::use1-dev-registrar-api]
                [provider=urn:pulumi:dev::aws::pulumi:providers:aws::default_3_21_0::10e8b33b-1a70-4ffc-bb0e-8c586673f58f]
              ~ containerDefinitions: "[secret]" => "[secret]"
                > aws:autoscaling/group:Group: (read)
                    [id=ecs-use1-dev-edge-services-df916d8-Instances-OEURTU97PJME]
                    [urn=urn:pulumi:dev::aws::awsx:x:ecs:Cluster$awsx:x:autoscaling:AutoScalingGroup$aws:autoscaling/group:Group::ecs-use1-dev-edge-services]
                    [provider=urn:pulumi:dev::aws::pulumi:providers:aws::default_3_21_0::10e8b33b-1a70-4ffc-bb0e-8c586673f58f]
            ~ aws:ecs/service:Service: (update)
                [id=arn:aws:ecs:us-east-1:REDACTED:service/ecs-use1-dev-edge-services-cluster-7f77f63/use1-dev-registrar-api-ff48eab]
                [urn=urn:pulumi:dev::aws::awsx:x:ecs:EC2Service$aws:ecs/service:Service::use1-dev-registrar-api]
                [provider=urn:pulumi:dev::aws::pulumi:providers:aws::default_3_21_0::10e8b33b-1a70-4ffc-bb0e-8c586673f58f]
              ~ taskDefinition: "arn:aws:ecs:us-east-1:REDACTED:task-definition/use1-dev-registrar-api:569" => output<string>
    a
    l
    18 replies · 3 participants
  • e

    eager-city-66105

    01/13/2021, 5:31 PM
    Hello, I try to figure out how to launch a product from the service catalog and can not find any info on this, do anybody knows if this is supported in pulumi ?
  • t

    tall-winter-40504

    01/13/2021, 8:29 PM
    Hi… I’m trying to use the API here: https://www.pulumi.com/docs/reference/pkg/mysql/grant/ to create a user and grant them some permissions for a MySQL db in an RDS instance with no luck. Any help appreciated!
    b
    24 replies · 2 participants
  • a

    alert-raincoat-81485

    01/13/2021, 11:20 PM
    import * as aws from '@pulumi/aws'
    const bucket = new aws.s3.Bucket("mybucket");
    bucket.onObjectCreated("newObject", async (ev) => {
        console.log(JSON.stringify(ev));
    });
    export const bucketName = bucket.id;
    In this example, the
    onObjecyCreated
    method is related to the JS, is there any similar method available in Python for logging purpose?
    g
    1 reply · 2 participants
  • m

    millions-market-17062

    01/14/2021, 2:38 PM
    Hey, Does anyone have an example of EKS cluster with
    serviceIpv4Cidr
    configured?
  • b

    broad-dog-22463

    01/14/2021, 2:56 PM
    Hi @millions-market-17062 are you using pulumi-aws or pulumi-eks?
  • m

    millions-market-17062

    01/14/2021, 2:57 PM
    pulumi-eks
  • b

    broad-dog-22463

    01/14/2021, 2:58 PM
    I don't believe it's been plumbed through to that package as of this time - that package is undergoing some work to allow it to work in all languages (not just NodeJS)
  • b

    broad-dog-22463

    01/14/2021, 2:58 PM
    Can you raise an issue on the repo and tag me (@stack72) on it?
  • m

    millions-market-17062

    01/14/2021, 2:59 PM
    Sure.
  • b

    broad-dog-22463

    01/14/2021, 2:59 PM
    thank you! I will ensure we can get it taken care of ASAP
  • b

    broad-dog-22463

    01/14/2021, 2:59 PM
    sorry about that 😕
  • m

    millions-market-17062

    01/14/2021, 3:00 PM
    Will I be able to use pulumi-aws same as I use pulumi-eks in the mean time?
  • m

    millions-market-17062

    01/14/2021, 3:01 PM
    BTW - I think it’s already opened since Oct 2020 https://github.com/pulumi/pulumi-eks/issues/443
  • b

    broad-dog-22463

    01/14/2021, 3:03 PM
    yes, it exists in pulumi-aws
  • l

    little-cartoon-10569

    01/14/2021, 11:26 PM
    Not sure that it's a bug, but definitely a gotcha: updating an RDS optiongroup and the instance it's associated with in the same
    pulumi up
    fails.
    c
    7 replies · 2 participants
  • f

    future-oyster-5387

    01/15/2021, 6:40 PM
    I cannot find how to set the Access Token Validity for a Cognito User Pool App Client (UserPoolClient) that can be specified via the AWS Console. Is this possible with Pulumi right now?
    c
    5 replies · 2 participants
Powered by Linen
Title
f

future-oyster-5387

01/15/2021, 6:40 PM
I cannot find how to set the Access Token Validity for a Cognito User Pool App Client (UserPoolClient) that can be specified via the AWS Console. Is this possible with Pulumi right now?
c

cool-fireman-90027

01/15/2021, 7:44 PM
Is this what you are looking for: https://www.pulumi.com/docs/reference/pkg/aws/cognito/userpoolclient/#refreshtokenvalidity_nodejs
f

future-oyster-5387

01/15/2021, 7:46 PM
No, that only allows you to set the one property (refresh token) which is how long that token is valid for in days.
I am trying to set the other two properties, which determine how long a session lasts
c

cool-fireman-90027

01/15/2021, 7:50 PM
The upstream provider currently doesn’t allow it and that is why you can’t set it: https://github.com/hashicorp/terraform-provider-aws/issues/14840
f

future-oyster-5387

01/15/2021, 7:51 PM
Ah, thank you
View count: 1