wet-noon-14291
09/27/2022, 1:19 PMshy-hydrogen-95871
09/27/2022, 4:37 PMshy-hydrogen-95871
09/27/2022, 4:38 PMclean-salesclerk-32849
09/27/2022, 7:08 PM> $ pulumi up ⬡ 16.17.0 [±feature-new-pulumi-load-balancer ●▴]
error: could not get cloud url: could not load current project: 1 error occurred:
* #/config: expected string or null, but got object
> $ pulumi logout ⬡ 16.17.0 [±feature-new-pulumi-load-balancer ●▴]
error: could not determine current cloud: could not load current project: 1 error occurred:
* #/config: expected string or null, but got object
> $ pulumi login ⬡ 16.17.0 [±feature-new-pulumi-load-balancer ●▴]
error: could not determine current cloud: could not load current project: 1 error occurred:
* #/config: expected string or null, but got object
witty-barista-69390
09/27/2022, 8:59 PMsquare-hair-965
09/27/2022, 9:21 PMconst account = aws.getCallerIdentity({});
const accountId = pulumi.output(account).apply(acc => `${acc.accountId}`);
Seems like checking that account id against a config value would do it but it's not that straight forward with how pulumi plansmammoth-camera-90962
09/28/2022, 12:42 AMpulumi up
? I'm looking to understand if there's potential improvements that could be made anywhere through the whole stack.creamy-byte-37608
09/28/2022, 1:23 AMstrong-helmet-83704
09/28/2022, 5:44 AMbillions-crowd-71510
09/28/2022, 6:30 AMdef import_cluster(self) -> None:
"""
Import an event hub cluster.
Args:
Returns:
None
"""
cluster_name = environment_variables.CLUSTER_NAME
cluster_id_import = '/subscriptions/' + self.eh_subscription_id + '/resourceGroups/' + self.eh_rg + '/providers/Microsoft.EventHub/clusters/' + cluster_name
azure_native.eventhub.Cluster(
resource_name=cluster_name,
cluster_name=cluster_name,
location='West Europe',
resource_group_name='streamming-pulumi-poc',
sku=azure_native.eventhub.ClusterSkuArgs(
capacity=1,
name="Dedicated",
),
tags={
},
opts=pulumi.ResourceOptions(import_=cluster_id_import)
)
bitter-twilight-16606
09/28/2022, 8:15 AMError building AzureAD Client: Error populating Client ID from the Azure CLI: No Authorization Tokens were found - please ensure the Azure CLI is installed and then log-in with `az login`.
I have latest azure CLI and pulumi installed and have run az login. Any ideas what is going on here?lively-france-83054
09/28/2022, 1:34 PMaws.glue.CatalogTableStorageDescriptorArgs
to manage Glue tables. i'm facing something strange - without changing code at all, pulumi up
always tries to update the table. pulumi preview --diff
does some something new.lively-france-83054
09/28/2022, 1:34 PMbrash-restaurant-84207
09/28/2022, 1:35 PMlively-france-83054
09/28/2022, 1:46 PM./venv/bin/pip install ...
brash-restaurant-84207
09/28/2022, 1:47 PMripe-russia-4239
09/28/2022, 2:15 PMmelodic-car-16900
09/28/2022, 5:33 PMagreeable-whale-35898
09/28/2022, 5:52 PMpulumi up
command, namely the CLI identity..) I found GetCallerIdentity.InvokeAsync().GetAwaiter().GetResult().UserId
, but couldn't find the actual user's name.
I want to add a transformation that adds a by
tag with the executor name.
Any idea how to do so in C# and AWS?stale-room-29458
09/28/2022, 6:55 PMlittle-soccer-5693
09/28/2022, 11:34 PMdomainValidationOption := exampleCertificate.DomainValidationOptions.ApplyT(func(options []acm.CertificateDomainValidationOption) interface{} {
return options[0]
})
^ DomainValidationOptions type is CertificateDomainValidationOptionArrayOutput which has an Index() method but not an associated Len() method. If I use Index() that exceeds the length of the array I get a pulumi crash:
goroutine 163 [running]:
<http://github.com/pulumi/pulumi-aws/sdk/v5/go/aws/acm.CertificateDomainValidationOptionArrayOutput.Index.func1({0xc000068da0|github.com/pulumi/pulumi-aws/sdk/v5/go/aws/acm.CertificateDomainValidationOptionArrayOutput.Index.func1({0xc000068da0>?, 0xc000052710?, 0x1?})
/tmp/7bdd55732174400744/vendor/github.com/pulumi/pulumi-aws/sdk/v5/go/aws/acm/pulumiTypes.go:133 +0x8e
reflect.Value.call({0x123aa40?, 0x1675698?, 0x40efe5?}, {0x160ba84, 0x4}, {0xc000640648, 0x1, 0xc000452480?})
/snap/go/9952/src/reflect/value.go:556 +0x845
reflect.Value.Call({0x123aa40?, 0x1675698?, 0x4a75bc?}, {0xc000640648, 0x1, 0x1})
/snap/go/9952/src/reflect/value.go:339 +0xbf
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.makeContextful.func1(|github.com/pulumi/pulumi/sdk/v3/go/pulumi.makeContextful.func1(>{0xc000640630?, 0x5?, 0x8?})
/tmp/7bdd55732174400744/vendor/github.com/pulumi/pulumi/sdk/v3/go/pulumi/types.go:384 +0x56
reflect.Value.call({0xc000401920?, 0xc00028a9c0?, 0x0?}, {0x160ba84, 0x4}, {0xc000404fa0, 0x2, 0x0?})
/snap/go/9952/src/reflect/value.go:556 +0x845
reflect.Value.Call({0xc000401920?, 0xc00028a9c0?, 0xc000122000?}, {0xc000404fa0, 0x2, 0x2})
/snap/go/9952/src/reflect/value.go:339 +0xbf
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*OutputState).ApplyTWithContext.func1()|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*OutputState).ApplyTWithContext.func1()>
/tmp/7bdd55732174400744/vendor/github.com/pulumi/pulumi/sdk/v3/go/pulumi/types.go:507 +0x2f0
created by <http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*OutputState).ApplyTWithContext|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*OutputState).ApplyTWithContext>
/tmp/7bdd55732174400744/vendor/github.com/pulumi/pulumi/sdk/v3/go/pulumi/types.go:495 +0x3fb
error: an unhandled error occurred: program exited with non-zero exit code: 2
how are callers supposed to get the length of DomainValidationOptions? followup would be can pulumi update the referenced example code to include this?lemon-salesclerk-6224
09/29/2022, 12:41 AMindex.ts
file that pulumi is running but when I do a pulumi up
I want to know whether the current run of the code is because of pulumi refresh
or pulumi deploy
for examplenarrow-cpu-35517
09/29/2022, 6:05 AMnarrow-cpu-35517
09/29/2022, 6:06 AMkubernetes:apps/v1:Deployment (deployment-game):
error: 4 errors occurred:
* the Kubernetes API server reported that "web-infra-ns/deployment-game" failed to fully initialize or become live: 'deployment-game' timed out waiting to be Ready
* [MinimumReplicasUnavailable] Deployment does not have minimum availability.
* [ProgressDeadlineExceeded] ReplicaSet "deployment-game-589b4c95dd" has timed out progressing.
* Minimum number of live Pods was not attained
narrow-cpu-35517
09/29/2022, 6:07 AMconst deployment = new k8s.apps.v1.Deployment(
"deployment-game",
{
metadata: { name: "deployment-game", namespace: namespaceName },
spec: {
replicas: 5,
selector: { matchLabels: { app: "2048" } },
template: {
metadata: { labels: { app: "2048" } },
spec: {
containers: [
{
image: `<http://xxxx.dkr.ecr.us-east-1.amazonaws.com/web-bff-d3f46e7:latest|xxxx.dkr.ecr.us-east-1.amazonaws.com/web-bff-d3f46e7:latest>`,
imagePullPolicy: "Always",
name: "2048",
ports: [{ containerPort: 80 }],
},
],
},
},
},
},
{ provider }
);
narrow-cpu-35517
09/29/2022, 6:07 AMbulky-rose-70012
09/29/2022, 7:04 AMcomment-on-pr: true
and diff: true
.enough-table-42729
09/29/2022, 7:18 AMVpc.fromExistingIds
by passing the existing vpc id, but it doesn't seem to populate the publicSubnetIds
and publicSubnetIds
fields of the resulting object. aws.ec2.getVpc
or aws.ec2.getSubnets
don't distinguish between public and private subnets. Am I missing something obvious? Is there some other way to do it?
The existing VPC and subnets should not be managed by the stack that is creating the clusters.
Thanks.lively-france-83054
09/29/2022, 8:26 AMbrash-restaurant-84207
09/29/2022, 11:31 AMbrash-restaurant-84207
09/29/2022, 11:31 AMechoing-dinner-19531
09/29/2022, 11:57 AMpulumi config set aws:profile <profile name>
That will set the profile for the current stackbrash-restaurant-84207
09/29/2022, 2:49 PMechoing-dinner-19531
09/29/2022, 7:11 PMpulumi config set
does, it just edits the Pulumi.stack.yaml file