wet-noon-14291
07/03/2022, 10:24 PMgreat-breakfast-61299
07/04/2022, 1:36 PMwarning: resource plugin kubernetes-cert-manager is expected to have version >=0.0.3, but has 0.0.1; the wrong version may be on your path, or this may be a bug in the plugin
bumpy-byte-21437
07/04/2022, 2:47 PMmost-mouse-38002
07/04/2022, 3:00 PMpulumi up -c "input1=123" -c "input2=345"
, but why are these prefixed with the name
from Pulumi.yaml?adventurous-breakfast-54578
07/05/2022, 12:05 PMprehistoric-sandwich-7272
07/05/2022, 2:54 PMexports.vpcId = eksVpc.id
But in Golang. Anyone knows?
In the docs there is no example for Golangfancy-spoon-7206
07/05/2022, 3:06 PM"outputs": {
"privateSubnets": [
"subnet-0ef90f8900aa4e533",
"subnet-06e84b274ae517d39",
"subnet-01465b8f34f6490ee"
],
"publicSubnets": [
"subnet-0c914a9aaec54e2a7",
"subnet-0893e2cfd9de09404",
"subnet-0216f9627f4fb20ef"
],
"vpcId": "vpc-0f0e8a3ca9c7c8b41"
},
My intention is to count the number of private/public subnets. The data type of outputs is map[string]interface{}
.
for _, res := range stack.Deployment.Resources {
privateSubnets := res.Outputs["privateSubnets"].(interface{})
log.Infoln(privateSubnets.([]string))
}
I would like to understand the type assertion to read through the values in the interface. Below is the error I get
--- FAIL: TestInfrastructure (319.75s)
panic: interface conversion: interface {} is []interface {}, not []string [recovered]
panic: interface conversion: interface {} is []interface {}, not []string
gentle-advantage-80069
07/05/2022, 3:33 PM➜ pulumi stack init test --secrets-provider="<gcpkms://projects/****/locations/global/keyRings/********/cryptoKeys/*****>"
Created stack 'test'
error: secrets (code=PermissionDenied): rpc error: code = PermissionDenied desc = Permission 'cloudkms.cryptoKeyVersions.useToEncrypt' denied on resource 'projects/prj-83923-s-orbit-8935/locations/global/keyRings/*****/cryptoKeys/******' (or it may not exist).
➜
I created the KMS ring and key manually in the console, and added my email in the permissions with KMS admin, and using the same email with gcloud auth on cmd line.
------------------
Not sure what is missing, but i really need some help here fixing this, thanks.adamant-father-26302
07/05/2022, 4:41 PMpgqlProvider := postgresql.Endpoint.ApplyT(func(x string) (*pgql.Provider, error) {
host := strings.Split(x, ":")[0]
port, err := strconv.Atoi(strings.Split(x, ":")[1])
if err != nil {
return nil, err
}
return pgql.NewProvider(ctx, "psql", &pgql.ProviderArgs{
Database: kratosDbName,
Username: dbUsername,
Password: password.Result,
Superuser: pulumi.Bool(true),
Host: pulumi.String(host),
Port: <http://pulumi.Int|pulumi.Int>(port),
})
})
because this produces a pulumi.Output
which does not implement pulumi.ResourceOption (missing applyResourceOption method)
gentle-advantage-80069
07/05/2022, 4:53 PMcool-flower-46371
07/05/2022, 4:58 PM[ { name: "SECRET", valueFrom: "<resource-arn>" }]
where resource-arn
is the pulumi Output from an aws.ssm.Parameter
that I defined earlier in the code.cool-flower-46371
07/05/2022, 4:59 PMarn
value is a Pulumi output, it's not known/resolvable at the time that I'm trying to set up my ECS task def. As I'm working in typescript, I'm used to working with promises - but I'm not sure how I should change the structure of my code to indicate to Pulumi that the arn
is an Output that will need to be resolved and passed to valueFrom
.cool-flower-46371
07/05/2022, 5:00 PMstack
, but I honestly am not understanding the difference between getOutput
, requireOutput
, and requireOutputValue
.cool-flower-46371
07/05/2022, 5:00 PMcool-flower-46371
07/05/2022, 5:02 PMcool-flower-46371
07/05/2022, 5:02 PMcool-flower-46371
07/05/2022, 5:03 PM"valueFrom":"Calling [toJSON] on an [Output<T>] is not supported.\n\nTo get the value of an Output as a JSON value or JSON string consider either:\n 1: o.apply(v => v.toJSON())\n 2: o.apply(v => JSON.stringify(v))\n\nSee <https://pulumi.io/help/outputs> for more details.\nThis function may throw in a future version of @pulumi/pulumi."}
cool-flower-46371
07/05/2022, 5:03 PMcool-flower-46371
07/05/2022, 5:30 PMarn
in an apply
call, I'm seeing the account-id portion of the ARN is either being obfuscated or masked as * - is that what is actually being passed into AWS and if so, then it would make sense why I'm getting an error about invalid characters in my ARN.cool-flower-46371
07/05/2022, 5:42 PMgorgeous-car-25108
07/05/2022, 6:29 PMcool-flower-46371
07/05/2022, 9:04 PMcool-flower-46371
07/05/2022, 9:04 PMcool-flower-46371
07/05/2022, 9:07 PMblue-leather-96987
07/05/2022, 10:36 PMquick-wolf-8403
07/05/2022, 11:38 PMrapid-raincoat-36492
07/06/2022, 2:25 AMlate-nest-59850
07/06/2022, 7:58 AMk8s.helm.v3.Chart
resource recreating/updating resources every time, even though nothing has changed? Eg. the ALB-intgress-controller
deployed using the Chart
resource recreates the tls-secret every time and updates the ALB-webhooks
when nothing has changed in the actual pulumi declaration of the resourcegreat-breakfast-61299
07/06/2022, 9:07 AMgentle-advantage-80069
07/06/2022, 9:14 AM