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

    great-sunset-355

    12/17/2021, 3:27 PM
    Can anyone advise how to approach ECS Task docker images changes with Pulumi? I feel like I'm going to run into some chicken-egg problems. I'd like to just
    git tag
    for things to happen.
    n
    • 2
    • 7
  • l

    limited-electrician-71574

    12/20/2021, 6:31 PM
    Hi all, I'm currently trying to create an EventRule to trigger a Lambda after a successful execution of a Glue job. It appears that the
    event_pattern
    parameter in
    aws.cloudwatch.EventRule
    must be a string. The Glue job configured has a random suffix attached to the resource name. How do I specify the job name in the
    event_pattern
    given that
    gluejob.name
    is an
    Output
    type? I'm coding w/ Python. Thanks!
    l
    • 2
    • 1
  • c

    colossal-market-93154

    12/21/2021, 1:34 PM
    does anyone know how to use local at RouteTable?
    new aws.ec2.RouteTable("main-route-table", {
      routes: [
        {
          cidrBlock: "172.30.0.0/16",
          localGatewayId: "local",  // THIS PART HERE
        },
    All of the options for routes parameter are asking for ids:
    error creating route: one of `carrier_gateway_id, egress_only_gateway_id, gateway_id, instance_id, local_gateway_id, nat_gateway_id, network_interface_id, transit_gateway_id, vpc_endpoint_id, vpc_peering_connection_id` must be specified
    l
    • 2
    • 4
  • a

    ancient-cricket-42076

    12/22/2021, 4:48 PM
    Hello, what is the argument in the RDS instance method to attach an existing VPC?
    r
    • 2
    • 2
  • e

    elegant-kangaroo-93165

    12/23/2021, 4:34 AM
    Hi, I've spent the best part of the day setting up an AWS Managed Windows Directory, and attached an FSx Drive to it. So far so good. However, I can't quite figure out how to connect my FSx drive when I create (or after I create) a new EC2 instance. The Console let's me connect the new EC2 to the directory service, but I don't see that as an option in the pulumi aws.ec2 settings.. Does anyone know how to do this? If you also know how to assign a drive to it, you get extra bonus Christmas points...
  • g

    glamorous-australia-21342

    12/23/2021, 3:41 PM
    Anyone know what I might be doing wrong with this OIDC import?
    $ pulumi import aws:iam/openIdConnectProvider:OpenIdConnectProvider stack-oidcProvider arn:aws:iam::<ACCOUNT_ID>:oidc-provider/oidc.eks.us-east-2.amazonaws.com/id/<OIDC_UID>
    Previewing import (stack/name)
    
         Type                              Name                      Plan       Info
         pulumi:pulumi:Stack               company-stack             1 error
     =   └─ aws:iam:OpenIdConnectProvider  stack-oidcProvider  import     2 errors
    
    Diagnostics:
      aws:iam:OpenIdConnectProvider (stack-oidcProvider):
        error: aws:iam/openIdConnectProvider:OpenIdConnectProvider resource 'stack-oidcProvider' has a problem: "url" has to use HTTPS scheme (i.e. begin with https://). Examine values at 'OpenIdConnectProvider.Url'.
        error: Preview failed: one or more inputs failed to validate
    
      pulumi:pulumi:Stack (stack-stack):
        error: preview failed
    b
    • 2
    • 1
  • a

    ancient-cricket-42076

    12/23/2021, 8:21 PM
    Hello again, I've been wrestling with an Elastic Beanstalk deploy lately and I ran into this issue, what I'm wondering is where I can attach (under what namespace) the subnets is asking for, and, do I need to do two times the namespace or put the subnets on a list?
    Creating load balancer failed Reason: At least two subnets in two different Availability Zones must be specified (Service: AmazonElasticLoadBalancing; Status Code: 400; Error Code: ValidationError; Request ID: 7cc7ae7e-17dc-4361-8fec-8b0b0bb5df96; Proxy: null)
    l
    • 2
    • 9
  • p

    purple-megabyte-83002

    12/25/2021, 3:01 PM
    hello I have a
    Output<string>
    that i’d like to input in a
    string
    field, how should I do ?
    q
    • 2
    • 5
  • p

    purple-megabyte-83002

    12/25/2021, 3:04 PM
    const jwtSecretParam = new aws.ssm.Parameter('JWT_SECRET', {
      type: 'SecureString',
      value: cfg.requireSecret('JWT_SECRET'),
    });
    
    const service = new awsx.ecs.FargateService('api', {
      desiredCount: 2,
      taskDefinitionArgs: {
        cpu: '256',
        memory: '512',
        container: {
          secrets: [
            {
              name: 'JWT_SECRET',
              valueFrom: jwtSecretParam.arn,
            },
          ],
        },
      },
    });
  • p

    purple-megabyte-83002

    12/25/2021, 3:05 PM
    here the
    jwtSecretParam.arn
    is a
    Output<string>
  • p

    purple-megabyte-83002

    12/25/2021, 3:06 PM
    while
    secrets[].valueFrom
    needs a
    string
    q
    • 2
    • 8
  • r

    rhythmic-photographer-84959

    12/28/2021, 3:53 AM
    Hello I usually used pulumi with aws. I have some error. I wrote down error situation. I tried this
    new aws.glue.CatalogTable(`${databaseName}.${tableName}.view`, {
        databaseName: databaseName,
        name: `${tableName}`,
        tableType: 'VIRTUAL_VIEW',
        parameters: {
            comment: 'Presto View',
            presto_view: 'true',
        },
        retention: 0,
        viewExpandedText: '/* Presto View */',
        viewOriginalText: '/* Presto View: eyJvcmlnaW5hbFNxbCI6IlNFTEVDVFxuICBpZFxuLCBwbGF0Zm9ybV9yb29tX2lkXG4sIHBsYXRmb3JtX3VzZXJfaWRcbiwgZXZlbnRfdHlwZVxuLCByZWNlaXZlZFxuLCBDQVNUKFJPVyAoXCJqc29uX2V4dHJhY3Rfc2NhbGFyXCIoYm9keSwgJyQucGxhdGZvcm0nKSwgUk9XIChcImpzb25fZXh0cmFjdF9zY2FsYXJcIihib2R5LCAnJC5wYXJhbXMuYWNjZXNzVG9rZW4nKSwgXCJqc29uX2V4dHJhY3Rfc2NhbGFyXCIoYm9keSwgJyQucGFyYW1zLmNoYW5uZWxTZWNyZXQnKSwgXCJqc29uX2V4dHJhY3Rfc2NhbGFyXCIoYm9keSwgJyQucGFyYW1zLnVzZVVybFNob3J0ZW5lcicpKSwgUk9XIChcImpzb25fZXh0cmFjdF9zY2FsYXJcIihib2R5LCAnJC51c2VyLmhhc2hlZFVzZXJJZCcpLCBcImpzb25fZXh0cmFjdF9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wicGljdHVyZXVybFwiIHZhcmNoYXIsXCJ1bmlxdWVpZFwiIHZhcmNoYXIsXCJuYW1lXCIgdmFyY2hhcikpLFwibWVzc2FnZVwiIHJvdyhcImltYWdlXCIgcm93KFwicHJldmlld2ltYWdldXJsXCIgdmFyY2hhcixcIm9yaWdpbmFsY29udGVudHVybFwiIHZhcmNoYXIsXCJ0eXBlXCIgdmFyY2hhciksXCJ0ZXh0XCIgcm93KFwidGV4dFwiIHZhcmNoYXIsXCJ0eXBlXCIgdmFyY2hhciksXCJ2aWRlb1wiIHJvdyhcInByZXZpZXdpbWFnZXVybFwiIHZhcmNoYXIsXCJvcmlnaW5hbGNvbnRlbnR1cmxcIiB2YXJjaGFyLFwidHlwZVwiIHZhcmNoYXIpKSxcInR5cGVcIiB2YXJjaGFyLFwidGltZXN0YW1wXCIgaW50ZWdlcikifSx7Im5hbWUiOiJ0aW1lc3RhbXAiLCJ0eXBlIjoidmFyY2hhciJ9LHsibmFtZSI6Im5lcl9yZXN1bHRzIiwidHlwZSI6InJvdyhcImVtb2ppXCIgdmFyY2hhcixcIm5lclwiIGFycmF5KHJvdyhcImxhYmVsXCIgdmFyY2hhcixcInRleHRcIiB2YXJjaGFyLFwiZW5kXCIgaW50ZWdlcixcInN0YXJ0XCIgaW50ZWdlcikpLFwiZGlhbG9nXCIgdmFyY2hhcikifSx7Im5hbWUiOiJuZXJfc3RhdHVzIiwidHlwZSI6ImludGVnZXIifSx7Im5hbWUiOiJzdWdnZXN0X3N0YXR1cyIsInR5cGUiOiJpbnRlZ2VyIn0seyJuYW1lIjoiY3JlYXRlZF9hdCIsInR5cGUiOiJ2YXJjaGFyIn0seyJuYW1lIjoidXBkYXRlZF9hdCIsInR5cGUiOiJ2YXJjaGFyIn0seyJuYW1lIjoiY29tcGxldGVkIiwidHlwZSI6ImJvb2xlYW4ifSx7Im5hbWUiOiJkZWxldGVkIiwidHlwZSI6ImludGVnZXIifV19 */',
        storageDescriptor: {
            parameters: {},
            compressed: false,
            numberOfBuckets: 0,
            storedAsSubDirectories: false,
            serDeInfo: {
                parameters: {},
            },
            columns: [
                {
                    name: 'id',
                    type: 'int'
                },
                {
                    name: 'platform_room_id',
                    type: 'int'
                },
                {
                    name: 'platform_user_id',
                    type: 'int',
                },
                {
                    name: 'event_type',
                    type: 'string',
                },
                {
                    name: 'received',
                    type: 'boolean',
                },
                {
                    name: 'body',
                    type: 'struct<platform:string,params:struct<accesstoken:string,channelsecret:string,useurlshortener:string>,user:struct<hasheduserid:string,userid:string,appid:string,clientid:string,type:string,profile:struct<pictureurl:string,uniqueid:string,name:string>>,message:struct<image:struct<previewimageurl:string,originalcontenturl:string,type:string>,text:struct<text:string,type:string>,video:struct<previewimageurl:string,originalcontenturl:string,type:string>>,type:string,timestamp:int>'
                },
                {
                    name: 'timestamp',
                    type: 'string'
                },
                {
                    name: 'ner_results',
                    type: 'struct<emoji:string,ner:array<struct<label:string,text:string,end:int,start:int>>,dialog:string>'
                },
                {
                    name: 'ner_status',
                    type: 'int'
                },
                {
                    name: 'suggest_status',
                    type: 'int'
                },
                {
                    name: 'created_at',
                    type: 'string'
                },
                {
                    name: 'updated_at',
                    type: 'string'
                },
                {
                    name: 'completed',
                    type: 'boolean'
                },
                {
                    name: 'deleted',
                    type: 'int'
                },
            ],
        },
    }
    then I tried SQL on athena. returned error like this.
    HIVE_METASTORE_ERROR: Required Table SerDe information is not populated. (Service: null; Status Code: 0; Error Code: null; Request ID: null; Proxy: null)
    How should I do resolve error?
    b
    • 2
    • 2
  • g

    glamorous-australia-21342

    12/28/2021, 4:34 PM
    Does anyone know how to import resources with the aws-native provider? I feel like i've tried everything and ca't get the syntax right. There doesnt appear to be any imports in the docs either.
    h
    g
    • 3
    • 2
  • h

    high-grass-3103

    12/30/2021, 7:22 AM
    Hi! Have anyone managed to use an existing image from the public ECR?
    c
    • 2
    • 1
  • k

    kind-carpenter-52856

    01/04/2022, 3:02 PM
    Hi guys, anyone experience this error when update instance
    * Error launching source instance: InvalidIPAddress.InUse: Address 172.16.10.20 is in use.
        	status code: 400, request id: eb5c9b5a-970f-472b-9092-f1e82a3760a3
    But if i try to change ip address, pulumi can update it
    b
    l
    • 3
    • 5
  • m

    magnificent-lifeguard-15082

    01/05/2022, 8:13 PM
    Is there any library/package available which has some IAM abstractions such as those seen in
    terraform-aws-modules/iam/aws
    ? Eg. A package with some nice ResourceComponent abstractions like
    AssumableRole
    ,
    Group
    etc.
    l
    b
    s
    • 4
    • 5
  • t

    tall-beard-99429

    01/06/2022, 12:42 PM
    Hi, I am trying to use version
    latest
    on the EKS addons, however, I get the following error:
    error: aws:eks/addon:Addon resource 'vpc-cni' has a problem: invalid value for addon_version (must follow semantic version format). Examine values at 'Addon.AddonVersion'.
    But the documentation on EKS seems to not agree with this, is this a bug or an
    eksctl
    specific feature? https://docs.aws.amazon.com/eks/latest/userguide/managing-vpc-cni.html
  • a

    agreeable-processor-5681

    01/06/2022, 4:36 PM
    Any idea why pulumi is always pushing to docker.io and not my ecr?
    const ecrRepo = new aws.ecr.Repository(
            _.kebabCase(`${projectName} Repository`),
            {
                tags: {
                    name: _.kebabCase(`${projectName} repository`),
                },
                imageTagMutability: "MUTABLE",
                imageScanningConfiguration: {
                    scanOnPush: true,
                },
                name: _.kebabCase(`${environment} ${projectName} Repository`),
            },
        );
    
        const {password, userName} = await aws.ecr.getAuthorizationToken({
            registryId: ecrRepo.registryId,
        });
    
        const dockerImage = new docker.Image(
            _.kebabCase(`${projectName} Docker Image`),
            {
                imageName: _.kebabCase(`${projectName}`),
                build: {
                    context: `./`,
                    dockerfile: "Dockerfile",
                },
                registry: {
                    server: ecrRepo.repositoryUrl,
                    password: password,
                    username: userName,
                },
            },
            {
                parent: ecrRepo,
            },
        );
    b
    • 2
    • 4
  • p

    purple-megabyte-83002

    01/06/2022, 7:43 PM
    Hi how to do
    pulumi up
    with a Stack stored on a S3 Backend on AccountA while having the default provider be Account B ?
    b
    • 2
    • 5
  • b

    bored-table-20691

    01/07/2022, 5:51 AM
    I think this has been asked before but my search here/GitHub/Google hasn’t really led to satisfying answers - what’s the best way to have a set of AWS tags apply to every resource, even if that resource is already created? As far as I understand,
    defaultTags
    doesn’t quite have this behavior, as it will not modify already existing resources unless there is something else that needs to update them, and it won’t really show that this is being done.
    b
    p
    • 3
    • 5
  • p

    proud-art-41399

    01/07/2022, 11:18 AM
    Hi, it seems that AWS doesn't propagate tags to ECS cluster when provisioning the Batch compute environment (which I also found mentioned here on Stack Overflow). The ComputeEnvironment resource provides an
    ecs_cluster_arn
    output. Would it be possible to somehow apply the tags after creating the ECS cluster using Pulumi?
    b
    • 2
    • 2
  • f

    fast-river-57630

    01/07/2022, 7:16 PM
    Not sure why but our setup has 1 ECR repo for all 3 stacks. I'm adding some new FargateServices and using
    awsx.ecs.Image.fromPath
    . seems like it demands an ECR repo per stack? I cant pass
    awsx.ecs.Image.fromPath(name-of-existing-ecr-repo)
    into it?
    m
    • 2
    • 4
  • p

    purple-airline-31398

    01/07/2022, 11:49 PM
    Hi, I have this error when run
    pulumi stack select dev
    in a gitlab ci stage.
    error: failed to load checkpoint: blob (key ".pulumi/stacks/dev.json") (code=Unknown): MissingEndpoint: 'Endpoint' configuration is required for this service.
    , How should I do?
    g
    • 2
    • 1
  • h

    high-grass-3103

    01/10/2022, 10:00 AM
    My S3 bucket ACL gets ignored
    Previewing update (prod):
         Type                 Name                  Plan       Info
         pulumi:pulumi:Stack  mystack             
     ~   └─ aws:s3:Bucket     mybucket              update     [diff: ~grants]
     
    Outputs:
      + bucketAcl : [
      +     [0]: {
              + permissions: [
              +     [0]: "WRITE"
              +     [1]: "READ"
                ]
              + type       : "Group"
              + uri        : "arn:aws:iam::432025153586:group/root"
            }
        ]
      + bucketName: "mybucket"
    
    Resources:
        ~ 1 to update
        2 unchanged
    
    Do you want to perform this update? yes
    Updating (prod):
         Type                 Name                  Status      Info
         pulumi:pulumi:Stack  mystack              
     ~   └─ aws:s3:Bucket     mybucket              updated     [diff: ~grants]
     
    Outputs:
      + bucketAcl : []
    Can anyone offer a hint please?
    • 1
    • 1
  • b

    breezy-branch-28232

    01/10/2022, 2:44 PM
    Hello everyone! I’m trying to figure if I can use some sort of dynamic configuration when defining a Cloudfront function. Basically I want the function body to use an array with some information that’s not hardcoded within the function. Is this something that’s possible?
    m
    • 2
    • 2
  • a

    acoustic-window-73051

    01/10/2022, 3:41 PM
    so starting last thursday or so when I try to bring up my EKS stack I get: (First pulumi up): Warning: apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition (if I pulumi up again I instead get): error: an unhandled error occurred: Program exited with non-zero exit code: -1 any ideas? I've since version-locked my cluster to 1.20, and rolled back to pulumi 3.19 to no avail.
    b
    • 2
    • 23
  • e

    early-airline-53287

    01/10/2022, 7:22 PM
    Hi, should it be possible to use docker-based Lambda resource directly with publicly available Docker image: https://gallery.ecr.aws/grafana/lambda-promtail (via Docker image uri) ?
    m
    • 2
    • 6
  • h

    high-grass-3103

    01/10/2022, 7:40 PM
    Does anyone have an example for ECS service on EC2?
    g
    • 2
    • 5
  • f

    fast-river-57630

    01/10/2022, 8:26 PM
    no tags on aws.amp.Workspace? that is an issue coming from terraform?
    b
    • 2
    • 4
  • l

    lemon-salesclerk-6224

    01/11/2022, 6:02 AM
    How can I configure a lambda
    callbackFunction
    to use a specific cloudwatch log group? I am able to create the log group and set it as a dependency of the lambda, but another cloudwatch group gets created when I deploy and logs are instead sent to that new group instead of the one I specified as a dependency.
    • 1
    • 2
Powered by Linen
Title
l

lemon-salesclerk-6224

01/11/2022, 6:02 AM
How can I configure a lambda
callbackFunction
to use a specific cloudwatch log group? I am able to create the log group and set it as a dependency of the lambda, but another cloudwatch group gets created when I deploy and logs are instead sent to that new group instead of the one I specified as a dependency.
It seems like what's happening is the cloudwatch log group I define is being created and from the pulumi output it looks like it's a dependency of the lambda created from the
callbackFunction
call. However, when the lambda is actually deployed, a default cloudwatch log group is being used instead. This one is not tracked in the stack and cannot be destroyed using pulumi. Not sure if i'm maybe just missing some config somewhere, but this behavior seems odd.
nvm resolved. Didn't realize for lambdas the function name has to match the cloudwatch name and that you couldn't assign a custom one with a different name.
👍 1
View count: 8