future-window-78560
09/26/2022, 5:25 PMbucket01
in <mailto:gcpacc11@gmail.com|gcpacc11@gmail.com>
and bucket01
in <mailto:gcpacc22@gmail.com|gcpacc22@gmail.com>
especially when <mailto:gcpacc11@gmail.com|gcpacc11@gmail.com>
is deleted
I get this error so I have to change the bucket name in the script every time which is a manual step in the automation process and we need to avoid that
googleapi: Error 409: The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again., conflict
-----------------------------------------------
Also, Team!!
2. We need to know if creating a new GCP project is possible without specifying any project_ID in the pulumi script?
Our purpose is to have a console-free IAC which is possible through pulumi but we have to create a GCP project manually first because we need a project ID as input for creating a new GCP project.steep-lock-88842
09/26/2022, 9:33 PMGCP CloudRun
service, but as specified in the docs, unless you specify a ServiceTemplateSpec serviceAccountName
it will use the default cloud engine service account which has Editor permissions and therefore gets a permission denied on SecretManager resources for example. I’m setting my service account credentials in my stack config file through the gcp:credentials
value.
Any help or tips would be greatly appreciated!future-barista-4090
09/27/2022, 7:22 AMrhythmic-branch-12845
09/27/2022, 9:55 AMpulumi up -r
, I keep seeing “diffs”, even if nothing has changed in the underlying infrastructure?
Previewing update (dev)
View Live: <https://app.pulumi.com/><redacted>/<proj>/dev/previews/<id>
Type Name Plan Info
pulumi:pulumi:Stack proj-dev
├─ aws:ec2:LaunchTemplate aaaaa [diff: ~vpcSecurityGroupIds]
├─ aws:lb:TargetGroup api
├─ aws:autoscaling:Group aaaaa [diff: ~launchTemplate,vpcZoneIdentifiers]
├─ aws:ec2:LaunchTemplate api [diff: ~vpcSecurityGroupIds]
├─ aws:lb:TargetGroup aaaaa
└─ aws:autoscaling:Group api [diff: ~launchTemplate,vpcZoneIdentifiers]
Resources:
7 unchanged
When I select details
, I get this:
Do you want to perform this update? details
pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:dev::proj::pulumi:pulumi:Stack::proj-dev]
~ pulumi:pulumi:Stack: (refresh)
[urn=urn:pulumi:dev::proj::pulumi:pulumi:Stack::proj-dev]
~ aws:autoscaling/group:Group: (refresh)
[id=api]
[urn=urn:pulumi:dev::proj::aws:autoscaling/group:Group::api]
[provider=urn:pulumi:dev::proj::pulumi:providers:aws::default_5_10_0::ec8eab8a-ed6a-4102-ba45-8538c78b7cf8]
~ aws:autoscaling/group:Group: (refresh)
[id=aaaaa]
[urn=urn:pulumi:dev::proj::aws:autoscaling/group:Group::aaaaa]
[provider=urn:pulumi:dev::proj::pulumi:providers:aws::default_5_10_0::ec8eab8a-ed6a-4102-ba45-8538c78b7cf8]
~ aws:lb/targetGroup:TargetGroup: (refresh)
[id=arn:aws:elasticloadbalancing:ap-southeast-1:<aws_id>:targetgroup/aaaaa/8e2bbbab0efedbad]
[urn=urn:pulumi:dev::proj::aws:lb/targetGroup:TargetGroup::aaaaa]
[provider=urn:pulumi:dev::proj::pulumi:providers:aws::default_5_10_0::ec8eab8a-ed6a-4102-ba45-8538c78b7cf8]
~ aws:lb/targetGroup:TargetGroup: (refresh)
[id=arn:aws:elasticloadbalancing:ap-southeast-1:<aws_id>:targetgroup/api/df555747b8eaeb92]
[urn=urn:pulumi:dev::proj::aws:lb/targetGroup:TargetGroup::api]
[provider=urn:pulumi:dev::proj::pulumi:providers:aws::default_5_10_0::ec8eab8a-ed6a-4102-ba45-8538c78b7cf8]
~ aws:ec2/launchTemplate:LaunchTemplate: (refresh)
[id=lt-09afb8d3b2f6ae9ac]
[urn=urn:pulumi:dev::proj::aws:ec2/launchTemplate:LaunchTemplate::aaaaa]
[provider=urn:pulumi:dev::proj::pulumi:providers:aws::default_5_10_0::ec8eab8a-ed6a-4102-ba45-8538c78b7cf8]
~ aws:ec2/launchTemplate:LaunchTemplate: (refresh)
[id=lt-0b38e76b0e7b3a1e9]
[urn=urn:pulumi:dev::proj::aws:ec2/launchTemplate:LaunchTemplate::api]
[provider=urn:pulumi:dev::proj::pulumi:providers:aws::default_5_10_0::ec8eab8a-ed6a-4102-ba45-8538c78b7cf8]
swift-apple-16812
09/27/2022, 11:42 AMpulumi stack import
, because I don't have a stack state file like that,
• I can't use pulumi up
, because that wants to create things that already exist,
• I can't use pulumi refresh
, because it (apparently) doesn't care what I've declared, only what's in the stack state file.
• I refuse to believe that the idea is to manually import each resource again, like a peasant.
I should also point out that it would be nice if nomenclature and docs could be clearer on what's a resource in a program, in a stack state and with the actual cloud provider, at least two of these are very different, right?clean-football-9795
09/27/2022, 11:57 AMwet-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