hallowed-author-21638
03/09/2021, 12:58 PMerror: program failed: missing project name
the project name is defined in Pulumi.yaml correct?
I'm mostly trying to step through my code atm to understand my output values a bit bettersticky-bear-14421
03/10/2021, 1:43 PMpulumi up
against the aws api the credentials are taken from my environment, which is perfectly fine. Now I have to switch into a different iam role in my code to manage different resources. In terraform I know how to define an aliased second or third aws provider to manage resources. Im looking for an example on how to do this using pulumi. Do you know of any examples that does this without splitting the code into two different projects?average-plastic-1763
03/16/2021, 2:31 PMpulumi preview
, it still goes to download the older versions of the plugins that were used for the stack before. Is there anything else I need to do to update the stack to use the newer plugin versions?big-state-95297
03/18/2021, 4:51 PMhallowed-author-21638
03/19/2021, 5:20 PMwhite-balloon-205
Apply<TypeName>
methods, encouraging use of ApplyT
directly instead (the former is a light syntactic sugar over the latter). This would be a breaking change (though with a fairly mechanical change to update code to continue working the same), and we would expect to make it in the upcoming 3.0 release if we decide to take this change. See https://github.com/pulumi/pulumi/issues/6592 for details.
We would love any feedback/input from this group on the idea of making this change. Please take a look at the issue and provide any input you have there!adorable-alligator-23779
03/22/2021, 3:23 PMerror: no resource plugin 'kubernetes' found in the workspace or on your $PATH
any ideas?adorable-alligator-23779
03/22/2021, 3:24 PMadorable-alligator-23779
03/22/2021, 3:24 PMadorable-alligator-23779
03/22/2021, 3:32 PMpulumi plugin ls
NAME KIND VERSION SIZE INSTALLED LAST USED
aws resource 3.26.1 260 MB 5 days ago 5 days ago
kubernetes resource 2.8.3 67 MB 10 minutes ago 10 minutes ago
adorable-alligator-23779
03/22/2021, 3:49 PMmicroscopic-agent-70604
03/23/2021, 11:50 AMerror: program failed: 1 error occurred:
* rpc error: code = Unknown desc = invocation of aws:ec2/getVpc:getVpc returned an error: could not validate provider configuration: 9 errors occurred:
* Invalid or unknown key
* Invalid or unknown key
* Invalid or unknown key
* Invalid or unknown key
* Invalid or unknown key
* Invalid or unknown key
* Invalid or unknown key
* Invalid or unknown key
* Invalid or unknown key
exit status 1
Could anybody please give a hint where to go?bored-car-38257
03/23/2021, 4:08 PMpulumi golang
project …. ended up getting this error ..
go build <http://github.com/pulumi/pulumi-gcp/sdk/v4/go/gcp/compute|github.com/pulumi/pulumi-gcp/sdk/v4/go/gcp/compute>: /usr/local/go/pkg/tool/linux_amd64/compile: signal: killed
My machine is a mac — and the image am trying to build is as below
FROM golang:1.16.2-alpine3.13
ENV PATH=$PATH:/root/.pulumi/bin
RUN apk update && \
apk add --no-cache bash curl libc6-compat && \
curl -fsSL <https://get.pulumi.com> | sh
After this i copy the project and run pulumi
commands — login is successful to gcs state .wide-crayon-4093
03/27/2021, 8:57 AM.htpasswd
credential secrets from golang runtime? tricky part is it's not deterministic and hash is always differenteager-branch-34449
03/27/2021, 3:37 PMpulumi.String
from a pulumi.StringOutput
? (get the value of pulumi.StringOutput
which is private) I’m trying to put together a policy statement with functions and the pulumi.StringOutput
is giving me a headache.quiet-lock-69596
03/28/2021, 2:56 PMerror: aws:ecs/taskDefinition:TaskDefinition resource 'api-task' has a problem: ECS Task Definition container_definitions is invalid: Error decoding JSON: json: cannot unmarshal number into Go struct field KeyValuePair.Environment.Value of type string. Examine values at 'TaskDefinition.ContainerDefinitions'.
So to my understanding is that my type conversion is wrong in some way. Can anybody maybe point me in the right direction or to some example covering how to add the variables.
Snippet of my code:
tmpContainerDef, err := json.Marshal([]map[string]interface{}{
{
"name": pulumi.Sprintf("%q", image.ImageName),
"image": pulumi.Sprintf("%q", image),
"cpu": 256,
"memory": 512,
"portMappings": []map[string]interface{}{
{
"containerPort": 8888,
},
},
"environment": []map[string]interface{}{
{
"name": "APP_ENV",
"value": "prod",
},
{
"name": "API_PORT",
"value": 8888,
},
{
"name": "DB_DRIVER",
"value": "postgres",
},
{
"name": "DB_HOST",
"value": pulumi.Sprintf("%q", dbCluster.Endpoint),
},
{
"name": "DB_NAME",
"value": pulumi.Sprintf("%q", dbCluster.DatabaseName),
},
{
"name": "DB_USER",
"value": pulumi.Sprintf("%q", dbCluster.MasterUsername),
},
{
"name": "DB_PORT",
"value": pulumi.Sprintf("%d", dbCluster.Port),
},
},
"secret": []map[string]interface{}{
{
"name": "API_SECRET",
"valueFrom": pulumi.Sprintf("%q", apiSecret.Arn),
},
{
"name": "DB_PASSWORD",
"valueFrom": pulumi.Sprintf("%q", dbSecret.Arn),
},
},
},
})
if err != nil {
return err
}
steep-florist-33509
03/29/2021, 6:28 PMloadBalancerIP := chart.GetResource("extensions/v1beta1/Ingress", "server", "default").
ApplyT(func(input interface{}) pulumi.StringOutput {
ingress := input.(*v1beta1.Ingress)
return ingress.Status.LoadBalancer().Ingress().Index(<http://pulumi.Int|pulumi.Int>(0)).Ip().Elem()
})
ctx.Export("loadBalancerIP", loadBalancerIP)
The IP shows as expected from the Export
but I want to use the IP in a DNS record:
_, err = dns.NewRecordSet(ctx, "serverRecordSet", &dns.RecordSetArgs{
Rrdatas: pulumi.StringArray{loadBalancerIP},
[snip]
loadBalancerIP is of type pulumi.Output
, not pulumi.StringOutput
so it isn’t accepted.
Anybody have a hint on how I can handle the conversion?microscopic-agent-70604
04/03/2021, 7:17 PMfunc GetIngressNginxServiceStatus(ingressControllerChartResources pulumi.Output) pulumi.Output {
ingressServiceStatus := ingressControllerChartResources.ApplyT(func(arg interface{}) corev1.ServiceStatusPtrOutput {
x := arg.(map[string]pulumi.Resource)
return x["v1/Service::ingress-nginx/ingress-nginx-controller"].(*corev1.Service).Status
})
return ingressServiceStatus
}
But currently we use flux for our initial deployment and want to use it for ingress-controller as well.
So the question. How to make GetService or applier wait for other resources and do not be executed on pulumi preview? Earlier I used ctx.DryRun() to exclude some stuff from the preview, but here this hostname is used in other further code and I can't just miss this code
if !ctx.DryRun() {...}
sticky-bear-14421
04/12/2021, 7:33 AMpulumi config set adminRole "foobar"My code has a string variable defined I will load the value into ..
var adminRole string
conf := config.New(ctx, "")
conf.RequireObject("adminRole", &adminRole)But, running pulumi up fails with an error I fail to understand:
panic: fatal: A failure has occurred: unable to unmarshall required configuration variable 'my_project:adminRole'; invalid character 'o' in literal false (expecting 'a')
wide-crayon-4093
04/13/2021, 9:00 AM"<http://kubernetes.io/service-account-token|kubernetes.io/service-account-token>"
, and now want to grab the certificate and tokenripe-shampoo-80285
04/14/2021, 11:34 PMripe-shampoo-80285
04/14/2021, 11:35 PMripe-shampoo-80285
04/14/2021, 11:35 PMripe-shampoo-80285
04/14/2021, 11:36 PMripe-shampoo-80285
04/14/2021, 11:49 PMripe-shampoo-80285
04/14/2021, 11:50 PMripe-shampoo-80285
04/14/2021, 11:50 PMripe-shampoo-80285
04/14/2021, 11:52 PMripe-shampoo-80285
04/14/2021, 11:52 PMError: providerCredentialOpts and AWS config setting aws:profile must be set together: Error: providerCredentialOpts and AWS config setting aws:profile must be set together
ripe-shampoo-80285
04/15/2021, 2:34 AM