billions-judge-9412
02/06/2022, 6:28 PMgreat-sunset-355
02/07/2022, 7:41 AMstack init
colossal-car-2729
02/07/2022, 10:29 AMpulumi preview --show-secrets --diff
but it still outputs + data : "[secret]"
any idea how to check what pulumi will do?ancient-eve-13947
02/07/2022, 1:13 PMpulumi refresh
command pulumi for the next pulumi up
got the idea that an sql server instance had to be re-created. (Despite our Pulumi code regarding the databases not having changed at all.)
As a result, all databases on said server were lost.
Luckily, this was our DEV environment, so no harm done, BUT I would like to investigate why this happened, to ensure something like this can never happen on PROD.
How do we go about this?
I can point you guys at the relevant pulumi up and refresh builds, I assume you can see more in your logs than I do, to figure out why this happened.
On a separate note, I think that even if pulumi decides a database server needs to be re-created, at the very least it should come with a HUGE warning that one needs to actively confirm.
Even better would be if it copied the databases, so no data gets lost.many-yak-61188
02/07/2022, 2:42 PM3.17.1
- https://search.nixos.org/packages?channel=21.11&from=0&size=50&sort=relevance&type=packages&query=pulumi any insight on how / when / who updates it? We use nix with direnv to set up developer machines without any instructions. This isn't pressing but pulumi does like to remind everyone that we are on an older versionaverage-vase-95893
02/07/2022, 2:44 PMmammoth-art-6111
02/07/2022, 5:48 PMimport * from webhooks
and it will instantiate whatever is in webhooks.ts
?mammoth-art-6111
02/07/2022, 5:48 PMmammoth-art-6111
02/07/2022, 5:49 PMpulumi-examples
aren't big projects, and all of the infra is in one filehappy-minister-40132
02/07/2022, 8:56 PMmillions-journalist-34868
02/07/2022, 9:57 PMlemon-salesclerk-6224
02/08/2022, 1:45 AMstraight-caravan-63576
02/08/2022, 6:00 AMprovider resources may not be read
?abundant-notebook-11210
02/08/2022, 7:30 AMbrainy-lion-38675
02/08/2022, 10:01 AM./resources.go:49:42: cannot use fortios.Provider() (type "<http://github.com/hashicorp/terraform-plugin-sdk/terraform|github.com/hashicorp/terraform-plugin-sdk/terraform>".ResourceProvider) as type *"<http://github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema|github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema>".Provider in argument to sdkv2.NewProvider`
// go.mod
module <http://github.com/pulumi/pulumi-fortios/provider|github.com/pulumi/pulumi-fortios/provider>
go 1.16
replace (
<http://github.com/hashicorp/go-getter|github.com/hashicorp/go-getter> v1.5.0 => <http://github.com/hashicorp/go-getter|github.com/hashicorp/go-getter> v1.4.0
<http://github.com/hashicorp/terraform-plugin-sdk/v2|github.com/hashicorp/terraform-plugin-sdk/v2> => <http://github.com/pulumi/terraform-plugin-sdk/v2|github.com/pulumi/terraform-plugin-sdk/v2> v2.0.0-20210402103405-f5979773e8ba
<http://github.com/terraform-providers/terraform-provider-fortios|github.com/terraform-providers/terraform-provider-fortios> => <http://github.com/fortinetdev/terraform-provider-fortios|github.com/fortinetdev/terraform-provider-fortios> v1.14.0
)
require (
<http://github.com/pulumi/pulumi-terraform-bridge/v3|github.com/pulumi/pulumi-terraform-bridge/v3> v3.13.0
<http://github.com/pulumi/pulumi/sdk/v3|github.com/pulumi/pulumi/sdk/v3> v3.19.0
<http://github.com/terraform-providers/terraform-provider-fortios|github.com/terraform-providers/terraform-provider-fortios> v1.3.0
)
// resources.go
package fortios
import (
"fmt"
"path/filepath"
"<http://github.com/pulumi/pulumi-fortios/provider/pkg/version|github.com/pulumi/pulumi-fortios/provider/pkg/version>"
"<http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge>"
shim "<http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim>"
shimv2 "<http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2>"
"<http://github.com/pulumi/pulumi/sdk/v3/go/common/resource|github.com/pulumi/pulumi/sdk/v3/go/common/resource>"
"<http://github.com/terraform-providers/terraform-provider-fortios/fortios|github.com/terraform-providers/terraform-provider-fortios/fortios>"
)
// all of the token components used below.
const (
// This variable controls the default name of the package in the package
// registries for nodejs and python:
mainPkg = "fortios"
// modules:
mainMod = "index" // the fortios module
)
// preConfigureCallback is called before the providerConfigure function of the underlying provider.
// It should validate that the provider can be configured, and provide actionable errors in the case
// it cannot be. Configuration variables can be read from `vars` using the `stringValue` function -
// for example `stringValue(vars, "accessKey")`.
func preConfigureCallback(vars resource.PropertyMap, c shim.ResourceConfig) error {
return nil
}
// Provider returns additional overlaid schema and metadata associated with the provider..
func Provider() tfbridge.ProviderInfo {
// Instantiate the Terraform provider
p := shimv2.NewProvider(fortios.Provider())
// Create a Pulumi provider mapping
prov := tfbridge.ProviderInfo{
P: p,
Name: "fortios",
DisplayName: "",
...
brainy-lion-38675
02/08/2022, 11:28 AMagreeable-terabyte-59853
02/08/2022, 12:13 PMHello, have anyone encountered this error message?
"Error: Cannot find module '@pulumi/pulumi/runtime/index.js"
I have tried npm install without luck.
flat-chef-71334
02/08/2022, 3:55 PMfamous-train-16653
02/08/2022, 4:31 PMerror: program failed: missing project name
exit status 1
Any idea in which file I omitted the project name to be specified?billowy-vr-96461
02/08/2022, 4:33 PMfierce-lion-84511
02/08/2022, 4:42 PMimport * as rancher2 from '@pulumi/rancher2'
const rancher2ProviderBootstrap = new rancher2.Provider(
'ComponentResource::AwsClusterK3s::rancher2Provider',
{
apiUrl: `<https://test.test.com>`,
bootstrap: true,
timeout: '5m',
},
)
And when I run pulumi up or pulumi preview I get this error
goroutine 71 [running]:
panic: fatal: An assertion has failed
goroutine 71 [running]:
<http://github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.failfast(...)|github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.failfast(...)>
/Users/runner/work/pulumi/pulumi/sdk/go/common/util/contract/failfast.go:23
<http://github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.Assert(...)|github.com/pulumi/pulumi/sdk/v3/go/common/util/contract.Assert(...)>
/Users/runner/work/pulumi/pulumi/sdk/go/common/util/contract/assert.go:26
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy/providers.mustNewReference({0xc00030c0e0|github.com/pulumi/pulumi/pkg/v3/resource/deploy/providers.mustNewReference({0xc00030c0e0>, 0x6a}, {0x1ffccaa, 0x24})
/Users/runner/work/pulumi/pulumi/pkg/resource/deploy/providers/reference.go:134 +0xce
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy/providers.(*Registry).Check(0xc000e61d60|github.com/pulumi/pulumi/pkg/v3/resource/deploy/providers.(*Registry).Check(0xc000e61d60>, {0xc00030c0e0, 0x6a}, 0x0, 0xc0010ea8d0, 0x0, 0xc000128000)
/Users/runner/work/pulumi/pulumi/pkg/resource/deploy/providers/registry.go:284 +0x40e
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepGenerator).generateSteps(0xc00083c6c0|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepGenerator).generateSteps(0xc00083c6c0>, {0x190d74b4960, 0xc0004e4c60})
/Users/runner/work/pulumi/pulumi/pkg/resource/deploy/step_generator.go:427 +0x10fb
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepGenerator).GenerateSteps(0xc00083c6c0|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*stepGenerator).GenerateSteps(0xc00083c6c0>, {0x190d74b4960, 0xc0004e4c60})
/Users/runner/work/pulumi/pulumi/pkg/resource/deploy/step_generator.go:185 +0x46
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).handleSingleEvent(0xc0004b1248|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).handleSingleEvent(0xc0004b1248>, {0x235e820, 0xc0004e4c60})
/Users/runner/work/pulumi/pulumi/pkg/resource/deploy/deployment_executor.go:413 +0xe5
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).Execute.func3(0xc000f0f260|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).Execute.func3(0xc000f0f260>, 0xc0004b1248, 0xc000dd8f10, {0x23902f0, 0xc0001a0dc0}, 0x0, 0x0, {0x2390398, 0xc001005800})
/Users/runner/work/pulumi/pulumi/pkg/resource/deploy/deployment_executor.go:250 +0x273
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).Execute(0xc0004b1248|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*deploymentExecutor).Execute(0xc0004b1248>, {0x2390398, 0xc001005800}, {{0x190d74b26d8, 0xc000183080}, 0x7fffffff, 0x0, 0x0, {0x0, 0x0, ...}, ...}, ...)
/Users/runner/work/pulumi/pulumi/pkg/resource/deploy/deployment_executor.go:266 +0x95f
<http://github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*Deployment).Execute(0xc000602dc0|github.com/pulumi/pulumi/pkg/v3/resource/deploy.(*Deployment).Execute(0xc000602dc0>, {0x2390398, 0xc001005800}, {{0x190d74b26d8, 0xc000183080}, 0x7fffffff, 0x0, 0x0, {0x0, 0x0, ...}, ...}, ...)
/Users/runner/work/pulumi/pulumi/pkg/resource/deploy/deployment.go:447 +0xd0
<http://github.com/pulumi/pulumi/pkg/v3/engine.(*deployment).run.func1()|github.com/pulumi/pulumi/pkg/v3/engine.(*deployment).run.func1()>
/Users/runner/work/pulumi/pulumi/pkg/engine/deployment.go:269 +0x250
created by <http://github.com/pulumi/pulumi/pkg/v3/engine.(*deployment).run|github.com/pulumi/pulumi/pkg/v3/engine.(*deployment).run>
/Users/runner/work/pulumi/pulumi/pkg/engine/deployment.go:252 +0x371
Created also stack overflow question - https://stackoverflow.com/questions/71037919/pulumi-rancher2-provider-creation-is-throwing-errorchilly-plastic-75584
02/08/2022, 6:58 PMgorgeous-minister-41131
02/08/2022, 9:22 PMacoustic-fireman-23577
02/08/2022, 9:38 PMlimited-ability-67435
02/08/2022, 9:51 PMelegant-monkey-64304
02/08/2022, 11:33 PMpulumi preview
fails because it tries to invoke the getter even if the resource doesn't exist yet.
I can't use the depens_on
argument as ResourceOptions
has because InvokeOptios
doesn't support that.
Many thanks.bright-stone-12333
02/09/2022, 12:16 AMcolossal-boots-62227
02/09/2022, 9:17 AMContainerDefinition
with embedded Input
’s rather than building a big JSON string) for the AWS classic provider? It’s defined as pulumi.Input[str]
in TaskDefinitionArgs
which seems to force us to serialize it as a string (after using all/apply/concat on the Output
’s as usual). I assume this is an upstream (Terraform) restriction, yet it works for awsx
somehow.high-leather-15669
02/09/2022, 12:19 PMpulumi up/destroy/preview/etc..
is there a variable which I could use inside my `python`programs? something like pulumi.cli.arg[1]
or so?quiet-laptop-13439
02/09/2022, 2:54 PM~/.pulumi
. pulumi plugin ls -p
doesn't show that plugin in use. However, when we try to run pulumi up, it is still downloaded.quiet-laptop-13439
02/09/2022, 2:54 PM~/.pulumi
. pulumi plugin ls -p
doesn't show that plugin in use. However, when we try to run pulumi up, it is still downloaded.echoing-dinner-19531
02/09/2022, 3:09 PMpulumi stack export > file.json
to get the state and edit out any reference to that plugin and then pulumi stack import
quiet-laptop-13439
02/09/2022, 3:11 PM