• l

    lemon-salesclerk-6224

    8 months ago
    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.
    l
    2 replies
    Copy to Clipboard
  • f

    full-sugar-56177

    8 months ago
    Is it better to set the AWS IAM Assumed Role as a configuration option or as a new provider inside the program to deploy my resources?
    f
    1 replies
    Copy to Clipboard
  • l

    lemon-salesclerk-6224

    8 months ago
    Any ideas why when I pass a name to
    aws.lambda.Function()
    that name gets used exactly when the lambda is spun up, but when I pass a name to
    aws.lambda.CallbackFunction()
    a hash is appended to the end of the name? For example if I pass
    test-callback
    to the callback function, the lambda spun up from the callback function will be something like
    test-callback-9283a32
    l
    g
    3 replies
    Copy to Clipboard
  • n

    nice-pharmacist-5320

    8 months ago
    Hello everyone, I have created an EKS cluster and installed ALB controller in it. I have defined an ingress of class
    alb
    which brings up a loadbalancer in AWS with dns name something like
    <http://k8s-kubesyst-octestal-f8d469242e-698581751.ap-south-1.elb.amazonaws.com|k8s-kubesyst-octestal-f8d469242e-698581751.ap-south-1.elb.amazonaws.com>
    const albIngress = new k8s.networking.v1beta1.Ingress(`${projectName}-alb-ingress`, {
        metadata: {
            name: `${projectName}-alb-ingress`,
            namespace: 'kube-system',
            annotations: {
                '<http://kubernetes.io/ingress.class|kubernetes.io/ingress.class>': 'alb',
                '<http://alb.ingress.kubernetes.io/scheme|alb.ingress.kubernetes.io/scheme>': 'internet-facing',
                '<http://alb.ingress.kubernetes.io/target-type|alb.ingress.kubernetes.io/target-type>': 'ip',
            },
        },
        spec: {
            rules: [
                {
                    http: {
                        paths: [
                            {
                                path: '/*',
                                backend: { serviceName: ingressNginxService.metadata.name, servicePort: 80 }
                            }
                        ]
                    }
                }
            ]
        },
    }, { provider: cluster.provider });
    
    const www = new aws.route53.Record("www", {
        zoneId: '<Redacted>',
        name: 'dev-server',
        type: 'A',
        aliases: [{
            name: albIngress.status.loadBalancer.ingress[0].hostname, // <http://k8s-kubesyst-octestal-f8d469242e-698581751.ap-south-1.elb.amazonaws.com|k8s-kubesyst-octestal-f8d469242e-698581751.ap-south-1.elb.amazonaws.com>
            zoneId: exampleZone.zoneId, // <---------------------------------- how do i get the zone id?
            evaluateTargetHealth: true,
        }],
    });
    The problem is when creating a route53 record for this loadbalancer, i need a
    zoneId
    , where do i get it from? Any help is appreciated
    n
    b
    +2
    17 replies
    Copy to Clipboard
  • m

    magnificent-lifeguard-15082

    8 months ago
    Is there any way to signal to pulumi that all resources of a certain type, or with a shared parent, should be deleted before others created? Wonder if this is non computable in terms of dependencies. The problem I have is re-naming an ApiGateway Route, where the newly named resource clashes because the old one is not yet deleted. Naming ofc doesn't change too often but it's a nice problem to solve at the platform level if possible for more "throw away and change things quickly" dev environments.
    m
    b
    3 replies
    Copy to Clipboard
  • c

    colossal-boots-62227

    8 months ago
    Is it possible to specify a
    serial-number
    and
    token-code
    when assuming a role in the AWS Classic provider? It does not appear so from the Pulumi AWS installation-configuration and provider documentation. This is to allow using YubiKey MFA to assume more privileged role as described in this AWS tutorial.
    c
    b
    5 replies
    Copy to Clipboard
  • s

    swift-ambulance-7102

    8 months ago
    Trying to add the default tags to my IAC here, but its not applying tags and I am not sure what I am missing here.
    s
    b
    5 replies
    Copy to Clipboard
  • f

    fast-river-57630

    8 months ago
    Fighting to adapt an existing aws.ec2.Vpc to awsx.ecs.Cluster. I built the compatible object via
    new awsx.ec2.Vpc('...', {vpc})
    . (ExistingVpcArgs) but the cluster won't provision because the subnets I've configured arent part of the compatible vpc (awsx) object. Oh I can probably use ExistingVpcIdArgs and pass it my existing privateSubnetIds/publicSubnetIds.
    f
    1 replies
    Copy to Clipboard
  • s

    swift-ambulance-7102

    8 months ago
    Kinda curious what others are doing but I am wondering how much you guys are using the conf file for your environments? I have a bunch of stuff in my conf file for each environment and I am thinking about pulling some of it back into the main.py (Python) file instead. Still playing with options but curious what others are doing? I come from a heavy Terraform (tfvars) world so putting a lot of the environment-specific info in the conf file makes sense.
    s
    f
    +2
    15 replies
    Copy to Clipboard
  • s

    stale-king-21470

    8 months ago
    Hello, I'm very new to Pulumi and I'm trying to implement this https://www.pulumi.com/registry/packages/aws/how-to-guides/video-thumbnailer however I run into the following issue when running pulumi up:
    #5 29.97 Collecting pip
        #5 30.17   Downloading <https://files.pythonhosted.org/packages/da/f6/c83229dcc3635cdeb51874184241a9508ada15d8baa337a41093fab58011/pip-21.3.1.tar.gz> (1.7MB)
        #5 30.79     Complete output from command python setup.py egg_info:
        #5 30.79     Traceback (most recent call last):
        #5 30.79       File "<string>", line 1, in <module>
        #5 30.79       File "/tmp/pip-build-hQd70M/pip/setup.py", line 7
        #5 30.79         def read(rel_path: str) -> str:
        #5 30.79                          ^
        #5 30.79     SyntaxError: invalid syntax
        #5 30.79
        #5 30.79     ----------------------------------------
        #5 30.82 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-hQd70M/pip/
        #5 31.38 You are using pip version 8.1.1, however version 21.3.1 is available.
        #5 31.38 You should consider upgrading via the 'pip install --upgrade pip' command.
        #5 ERROR: executor failed running [/bin/sh -c apt-get update &&     apt-get install python-dev python-pip -y &&     apt-get clean && pip install --upgrade pip]: exit code: 1
        ------
         > [2/4] RUN apt-get update &&     apt-get install python-dev python-pip -y &&     apt-get clean && pip install --upgrade pip:
        ------
        executor failed running [/bin/sh -c apt-get update &&     apt-get install python-dev python-pip -y &&     apt-get clean && pip install --upgrade pip]: exit code: 1
    My code is identical to the one in the article, Docker is running, I'm on MacOS 12.1.
    s
    b
    2 replies
    Copy to Clipboard