• e

    early-ability-21848

    7 months ago
    hi, i'm getting an error
    Error creating EdgeCacheOrigin: googleapi: Error 404: Method not found.
    when trying to create an
    EdgeCacheOrigin
    for a bucket, pretty much from the documentation:
    const webStaticOrigin = new gcp.networkservices.EdgeCacheOrigin(
      "web-static-origin",
      {
        originAddress: webStaticBucket.url,
      }
    );
    any idea how to fix?
    e
    1 replies
    Copy to Clipboard
  • l

    lively-breakfast-59078

    7 months ago
    Hi everyone. Getting a strange error when setting up an ECR RegistryScanningConfiguration. The config can have multiple rules. A rule (according to the Pulumi source, and AWS config) can have a value of "SCAN_ON_PUSH", "CONTINUOUS", or "MANUAL". I've been able to provision a config with a "SCAN_ON_PUSH" rule. Adding a "MANUAL" rule causes it to break on validation.
    1 error occurred:
    	* updating urn:pulumi:production::<service-name>::aws:ecr/registryScanningConfiguration:RegistryScanningConfiguration::<service-name>: 1 error occurred:
    	* error creating ECR Registry Scanning Configuration: InvalidParameterException: Invalid parameter failed to satisfy constraint: 'Invalid scan frequency: MANUAL'
    Any pointers?
    l
    6 replies
    Copy to Clipboard
  • v

    victorious-wall-1075

    7 months ago
    Hello, is there an example of how to use Minio as backend ? I have a local minio instance that I want to use.. I tried this:
    ➜ pulumi login "<s3://pulumi-bucket?endpoint=192.168.31.2:54640&disableSSL=true&s3ForcePathStyle=true>"
    When I try to bring up the stack:
    ➜ pulumi up
    error: could not query backend for stacks: error listing stacks: could not list bucket: blob (code=Unknown): MissingRegion: could not find region configuration
    Also, my minio endpoint has login/password, I am not sure where to specify that
    v
    m
    7 replies
    Copy to Clipboard
  • b

    bored-table-20691

    7 months ago
    Let’s say I have a project and stack named
    itay/myproj/mystack
    , and then I use a StackReference to refer to it from another project and stack (
    itay/someproj/clientstack
    ). Then, say I rename the original stack to
    itay/myproj2/mystack2
    . Now, if I do a
    pulumi up
    on the
    itay/someproj/clientstack
    stack. Will I get an error saying that
    itay/myproj/mystack
    doesn’t exist, since it’s stored in the state of this client stack? What’s the right way to tackle this?
    b
    1 replies
    Copy to Clipboard
  • v

    victorious-wall-1075

    7 months ago
    TL; DR: Is “pulumi login” mandatory step before using automation API. Is there a way to specify the login details into the automation API? I am trying to run pulumi in automation mode (without having ~/.pulumi/credentials). I am configuring the projectSettings this way:
    self.projectSettings = auto.ProjectSettings(
                name=projectName,
                runtime="python",
                backend={"url": f"<s3://pulumi?region=us-east-1&endpoint={epUrl}&disableSSL=true&s3ForcePathStyle=true>"}
            )
    When I run my code - I see this:
    >           raise Exception(err)
    E           Exception: Error Deploying HELM -
    E            code: 255
    E            stdout:
    E            stderr: Logging in using access token from PULUMI_ACCESS_TOKEN
    E           error: invalid access token
    
    IACLib/src/pulumi_iac/platforms/kubernetes/__init__.py:145: Exception
    What am I missing here that pulumi is asking for PULUMI_ACCESS_TOKEN ? If I do pulumi login (and it produces the credentials file), things work fine.
    ➜ cat ~/.pulumi/credentials.json
    {
        "current": "<s3://pulumi?region=us-east-1>\u0026endpoint=192.168.31.2:54640\u0026disableSSL=true\u0026s3ForcePathStyle=true",
        "accessTokens": {
            "<s3://pulumi?region=us-east-1>\u0026endpoint=192.168.31.2:54640\u0026disableSSL=true\u0026s3ForcePathStyle=true": ""
        },
        "accounts": {
            "<s3://pulumi?region=us-east-1>\u0026endpoint=192.168.31.2:54640\u0026disableSSL=true\u0026s3ForcePathStyle=true": {
                "lastValidatedAt": "0001-01-01T00:00:00Z"
            }
        }
    }%
    
    and I have to set these exports:
    
    export AWS_ACCESS_KEY_ID=miniouser
    export AWS_SECRET_ACCESS_KEY=miniopasswd
    export AWS_PROFILE=minio
    I want to know how to pass the credentials via automation without having this file..
    v
    b
    3 replies
    Copy to Clipboard
  • s

    stocky-spring-27341

    7 months ago
    Hola! New user here. What's the suggested approach for filing bugs?
    s
    e
    +1
    11 replies
    Copy to Clipboard
  • e

    elegant-plumber-85706

    7 months ago
    Hey everybody, Does anyone knows how I can translate this azure cli command to Pulumi?
    az postgres flexible-server db create --resource-group
                                          --server-name
                                          [--charset]
                                          [--collation]
                                          [--database-name]
                                          [--subscription]
    e
    l
    5 replies
    Copy to Clipboard
  • s

    stocky-spring-27341

    7 months ago
    Heya again! I have a question regarding using existing resource parameters as inputs when creating new resources. I went through the "Input and Outputs" page on the documentation but I still can't seem to get it to work. For example - When I try to create a
    aws.cloudwatch.MetricAlarm
    and I want to use
    <http://aws.lb|aws.lb>.TargetGroup.name
    to construct the
    resource_name
    I get this error. source:
    aws.cloudwatch.MetricAlarm(
                resource_name=Output.concat("", target_group.name, "-CPUHigh-alarm"),
    error:
    raise TypeError("Expected resource name to be a string")
        TypeError: Expected resource name to be a string
        error: an unhandled error occurred: Program exited with non-zero exit code: 1
    Surprisingly, this same approach works for
    aws.cloudwatch.MetricAlarm.dimensions
    treat_missing_data="breaching",
                dimensions={
                    "TargetGroup": Output.concat("", args.target_group.name),
                },
    I haven't been able to figure out how to use existing resource fields when creating new resources. What am I missing?
    s
    m
    +1
    4 replies
    Copy to Clipboard
  • r

    rich-tiger-43483

    7 months ago
    Hi, I am creating my own provider using the TF bridge and having some troubles with id types when linking resources using
    ID
    . I have a resource called
    Group
    and other called
    Check
    . You should be able to use the
    groupId
    property of the
    Check
    in order to link them. The problem is when I tried to do it, I get this error message:
    error: checkly:index/check:Check resource 'pulumi-api-check' has a problem: Attribute must be a whole number, got 257503. Examine values at 'Check.GroupId'
    I guess this is related with types and for some reason the
    ID
    of the group is being returned as
    string
    when it should be a
    number
    . In my TF provider the
    ID
    has the correct type, so I am not sure why this is happening. I could try to manually parse the
    ID
    to integer when setting it in the group but don’t think will be a good DX. Here is the JS source of the example I am trying to make it work 👇
    const checkly = require( "@pulumi/checkly");
    
    const group = new checkly.CheckGroup("group", {
      activated: true,
      concurrency: 1,
      locations: ['us-east-1'],
    });
    
    new checkly.Check("api-check", {
      activated: true,
      frequency: 10,
      type: "API",
      groupId: group.id
    });
    Any help/suggestion will be appreciated 🙏
    r
    e
    6 replies
    Copy to Clipboard
  • w

    wonderful-portugal-96162

    7 months ago
    Hello all, just getting started and I ran into some behavior that I have questions on. 🧵
    w
    p
    +1
    37 replies
    Copy to Clipboard