red-football-97286
01/28/2022, 11:53 AMbland-camera-22041
01/28/2022, 2:11 PM➜ infrastructure git:(master) ✗ pulumi destroy
Previewing destroy (test):
error: could not load plugin for aws provider 'urn:pulumi:test::office-booker::pulumi:providers:aws::default_3_2_1': no resource plugin 'aws-v3.2.1' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource aws v3.2.1`
➜ infrastructure git:(master) ✗ pulumi plugin install resource aws v3.2.1
[resource plugin aws-3.2.1] installing
error: [resource plugin aws-3.2.1] downloading from : 403 HTTP error fetching plugin from <https://get.pulumi.com/releases/plugins/pulumi-resource-aws-v3.2.1-darwin-arm64.tar.gz>
➜ infrastructure git:(master) ✗
bland-camera-22041
01/28/2022, 2:12 PMbland-camera-22041
01/28/2022, 2:16 PMhelpful-account-44059
01/28/2022, 3:50 PMdazzling-author-49810
01/28/2022, 5:58 PMfancy-egg-38667
01/28/2022, 6:52 PMacoustic-fireman-23577
01/28/2022, 8:56 PMfast-easter-23401
01/28/2022, 9:05 PMpulumi stack history
, which seems to be a git-based history of the stack state. Is there any way to do that, whether it be using stack history
or some other means ?dazzling-author-49810
01/29/2022, 1:57 PMdazzling-author-49810
01/29/2022, 1:58 PMbitter-eve-53295
01/29/2022, 7:51 PMdazzling-author-49810
01/30/2022, 9:57 AMdazzling-author-49810
01/30/2022, 10:11 AMsteep-cartoon-89174
01/30/2022, 12:37 PMsteep-cartoon-89174
01/30/2022, 12:41 PMbillions-judge-9412
01/30/2022, 8:47 PMrich-kilobyte-15539
01/31/2022, 1:35 AMrough-intern-34947
01/31/2022, 9:16 AMbillions-judge-9412
01/31/2022, 11:35 AMlively-analyst-8785
01/31/2022, 2:50 PMlively-answer-93856
01/31/2022, 2:50 PMwitty-vegetable-61961
01/31/2022, 4:52 PMacoustic-room-2113
01/31/2022, 5:14 PM'replaceOnChanges' does not exist in type 'CustomResourceOptions'
using latest Pulumi, with TypeScript and having just run yard upgrade -l
. What am I missing?high-grass-3103
01/31/2022, 9:03 PMpolite-napkin-90098
01/31/2022, 9:06 PMpackage main
import (
k8s "<http://github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes|github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes>"
helm "<http://github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes/helm/v3|github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes/helm/v3>"
"<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi|github.com/pulumi/pulumi/sdk/v3/go/pulumi>"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// get the kubeconfig from the EKS stack
stackEKS, err := pulumi.NewStackReference(ctx, "EKS-test", nil)
if err != nil {
return err
}
kubeConfig := stackEKS.GetOutput(pulumi.String("kubeconfig"))
if err != nil {
return err
}
// create a provider with that config
eksProvider, err := k8s.NewProvider(ctx, "eksprov", &k8s.ProviderArgs{
Kubeconfig: kubeConfig,
})
if err != nil {
return err
}
// deploy redis from the helm chart
_, err = helm.NewChart(ctx, "redis", helm.ChartArgs{
Repo: pulumi.String("bitnami"),
Chart: pulumi.String("redis"),
Values: pulumi.Map{
"auth.password": pulumi.String("MyTopSecretPassword"),
},
},
pulumi.ProviderMap(map[string]pulumi.ProviderResource{
"kubernetes": eksProvider,
}),)
if err != nil {
return err
}
ctx.Export("output", kubeConfig)
return nil
})
}
If I comment out the from eksProvider down to the ctx.Export, I get what looks like a valid kubeconfig exported.
But as is this results in a typing error:
./main.go:22:4: cannot use kubeConfig (type pulumi.AnyOutput) as type pulumi.StringPtrInput in field value: pulumi.AnyOutput does not implement pulumi.StringPtrInput (missing ToStringPtrOutput method)
Can anyone help me understand what I need to do here?rapid-raincoat-36492
01/31/2022, 9:41 PMquick-fall-21011
02/01/2022, 7:16 AMkeycloak:url
and keycloak:password
as Stack Outputs. In Project B, I'd like to create a new Realm, and other related objects, however the login depends on these credentials being in Project B's config, or environment variables. I'd like it all to be automated, so although I can manually set the configuration in Project B, I'd like to avoid that. I tried the suggested alternative method, using Environment variables and setting them inside the project, e.g.
Environment.SetEnvironmentVariable("KEYCLOAK_CLIENT_ID", "admin-cli");
But seems the process can't access them, as it still complains that they're not set
Diagnostics:
keycloak:index:Realm (pinostrats):
error: 2 errors occurred:
* missing required configuration key "keycloak:clientId":
Set a value using the command `pulumi config set keycloak:clientId <value>`.
* missing required configuration key "keycloak:url": The base URL of the Keycloak instance, before `/auth`
Set a value using the command `pulumi config set keycloak:url <value>`.
Any ideas on how to get around this? Somehow manually instantiate the provider?stale-iron-26898
02/01/2022, 11:48 AMcurved-summer-41191
02/01/2022, 10:40 PMcurved-summer-41191
02/01/2022, 10:40 PM