full-artist-27215
11/10/2022, 4:12 PMvalue must be one of "string", "integer", "boolean", "array"
) suggests that's not allowed.nutritious-memory-95521
11/10/2022, 4:13 PMhallowed-printer-89159
11/10/2022, 4:43 PMconst sshKey = new SshPublicKey('test', {
expirationTimeUsec: '250000',
key: '',
project: 'example',
user: '<mailto:----@univision.net|----@univision.net>',
});
The types for SshPublicKey is but the Args are not enough clear and I got Error creating SSHPublicKey: googleapi: Error 400: SSH key is expired.
/**
* Create a SshPublicKey resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: SshPublicKeyArgs, opts?: pulumi.CustomResourceOptions);
ripe-russia-4239
11/10/2022, 9:28 PMApply()
on the result to return a stubbed value? How do I go about finding this out, even?
E.g. given a call in my stack like this, what do I need to stub out in my tests to make it work?
Output<string> connectionString = ListNamespaceKeys.Invoke(new ListNamespaceKeysInvokeArgs
{
AuthorizationRuleName = authorisationRule.Name,
NamespaceName = _eventHubNamespace.Name,
ResourceGroupName = ResourceGroupName
}, _invokeOptions).Apply(o => Output.CreateSecret(o.PrimaryConnectionString));
little-cartoon-10569
11/10/2022, 11:44 PMconfig:
obj1:
value:
prop1: val1
prop2: val2
And Pulumi.stack.yaml
config:
obj1:
prop2: val20
prop3: val3
I'm seeing all the stack level values in my stack, but prop1 is gone. I'm guessing it's just using the stack object, completely overwriting the default project-level object.brainy-beach-36627
11/11/2022, 7:55 AM├── myApp
│ ├── index.ts
│ ├── Pulumi.yaml
│ ├── Pulumi.staging.yaml
│ └── Pulumi.prod.yaml
└── ...
And we configured pulumi-kubernetes-operator to watch the myApp folder and deploy changes. So, we needed to create one branch per environment because we had only one folder for all environments. This is commonly known as an anti pattern when applied to gitops.
Then we decided to try this other solution :
├── myApp
| ├── staging
| ├── Pulumi.yaml
│ └── Pulumi.staging.yaml
| ├── prod
| ├── Pulumi.yaml
│ └── Pulumi.prod.yaml
| ├── pulumi-module
│ └── index.ts
└── ...
We have one folder per environment and we avoid code duplication by adding a dependency to the pulumi-module folder. But this structure is way more complicate to manage in local for our developments.
Any thoughts about this 2 solutions ? Does someone manage to do it differently ?gorgeous-country-43026
11/11/2022, 8:24 AMfull-soccer-21780
11/11/2022, 11:31 AMearly-plastic-49211
11/11/2022, 1:37 PMx.Apply(x => $"https://{x}")
). Right now, to do this, I do something like the following, but it feels wrong. Is there a better way to do that?
Input<string> variableToResolve; // Just to show you the type, let's assume there's a value
_ = variableToResolve.Apply(x =>
{
methodRequiringValueAsString(x);
return true; // This feels hacky
});
Also, let's say I wanted to verify what the value of x
is, would it be valid to throw an exception inside the Apply block?damp-honey-93158
11/11/2022, 3:56 PMlively-needle-84406
11/11/2022, 7:43 PMpulumi up
and apply these files as helm charts via the k8s.helm.v3.Chart resource.
How can I make the Pulumi runtime honor my requests to GitHub, and then apply/track ~20 helm charts?
Others have mentioned Dynamic Providers & Component Resources, but I have not yet got these to work successfully. Any ideas?
P.S. almost to the point of writing a separate script that gets ran in my CI/CD that does this (but I would lose any tracking capabilities of Pulumi for these charts)alert-midnight-11504
11/11/2022, 8:15 PMError creating WorkloadIdentityPoolProvider: googleapi: Error 409: Requested entity already exists
. But if use Pulumi to .get
a resource to check if it exists the CLI also throws an error.thankful-gpu-3329
11/12/2022, 3:56 PM@pulumi/pulumi
– https://joeysharesthings.com/rTT3tZglamorous-answer-86536
11/13/2022, 7:26 AMcareful-apartment-69053
11/13/2022, 2:49 PMplain-hair-43030
11/13/2022, 5:58 PMpulumi import github:repository:Repository p pulumi/pulumi
.
sadly this results in error: Preview failed: unrecognized resource type (Read): github:repository:Repository
An earlier attempt resulted in error: import type "github:Repository" is not a valid resource type token. Type tokens must be of the format <package>:<module>:<type> - refer to the import section of the provider resource documentation.
That led me to look further at https://www.pulumi.com/registry/packages/github/api-docs/repository/, but I don't see info there on how to import, neither is there a module name being shown (in contrast to other some other - larger - providers such as for gcp which do are splitted up into different modules).
So what is the correct invocation I need to import some existing github repository into my pulumi code?dry-receptionist-10179
11/13/2022, 6:01 PMmost-state-94104
11/13/2022, 7:08 PMfierce-ability-58936
11/13/2022, 9:43 PMrefined-printer-32244
11/13/2022, 11:23 PMOutput
values to concrete values. everything I find online seems to call methods that don't exist for me or don't seem to work as the stuff I find online says. currently, I have an output named projectName
on one stack, and I use a stack reference to get that value from from the other stack as a pulumi.AnyOutput
and then use that with .AsStringOutput()
to give me a pulumi.StringOutput
(it's a string, this seems to work fine). however, i'm trying to take that value and pass it into a digitalocean.LookupProject
where the Name
arg expects *string
. I've tried a bunch of iterations, including ApplyT
with a func(projName string) *string
, but I just can't seem to get the value the lookup expects. I'm also having a hard time taking pulumi.StringOutput
to string
at times as well. it sounds like it's supposed to be ApplyT
, but that just returns an output that gets me back into the same pulumi.StringOutput
. anyone have some tips for me?most-mouse-38002
11/14/2022, 12:17 PMdazzling-kilobyte-32990
11/14/2022, 1:27 PMdamp-painting-47843
11/14/2022, 2:33 PMsalmon-hairdresser-65532
11/14/2022, 4:32 PMawsx.ec2.Vpc
with disabled default providers, I always get the error Default provider for 'awsx' disabled. 'awsx:ec2:DefaultVpc' must use an explicit provider.
although I defined an explicit provider for the resource. An extremely simple example to reproduce the error (default providers are disabled in the config):
import pulumi
import pulumi_aws as aws
import pulumi_awsx as awsx
west = aws.Provider("provider", region="us-east-1")
awsx.ec2.Vpc("vpc", opts=pulumi.ResourceOptions(provider=west))
Does anyone have the same problem or know a solution?
@elegant-window-55250cool-dress-96114
11/14/2022, 11:04 PMoutput.ApplyT
. How do you error handle with it in the Golang SDK?
I’d rather not panic if I can help it. Docs don’t say a ton https://pkg.go.dev/github.com/pulumi/pulumi/sdk/v3/go/pulumi#OutputState.ApplyTlittle-soccer-5693
11/15/2022, 12:18 AMhallowed-horse-57635
11/15/2022, 2:31 AMfierce-ability-58936
11/15/2022, 3:13 AMearly-analyst-76866
11/15/2022, 7:51 AMCurrent stack outputs (1):
OUTPUT VALUE
vid vpc-0515230c3d5f949a8
I am able to reference my stack using stack_ref = pulumi.StackReference("PulumiPlay-dev")
but I am not sure how to print the value of vid now. I have tried using the get_output
method but it is not returning anything.white-lizard-28216
11/15/2022, 10:59 AMwhite-lizard-28216
11/15/2022, 10:59 AM