fresh-actor-58531
10/06/2021, 7:20 AMgifted-greece-13666
10/06/2021, 8:12 AMerror: could not deserialize deployment: constructing secrets manager of type "service": could not find access token for <https://api.pulumi.com>, have you logged in?
, according to the doc i have to use pulumi stack change-secrets-provider "<awskms://alias/keyalias?region=myregion>"
.
Now, I must be doing something wrong in this part, but I can’t seem to figure it out:
I created a Symmetric key (trying with an asymmetric throws InvalidKeyUsageException
, copied the alias and used the change-secrets-provider command, but i get the following output: (I’m sure the alias is correct, I also tried using the keyId instead of the alias, but i get the same error. I tried with and without passing the region param)
Migrating old configuration and state to new secrets provider
I1006 09:53:48.314796 39657 sink.go:154] defaultSink::Error(error: bad value
<http://github.com/pulumi/pulumi/sdk/v3/go/common/resource/config.symmetricCrypter.DecryptValue|github.com/pulumi/pulumi/sdk/v3/go/common/resource/config.symmetricCrypter.DecryptValue>
/private/tmp/pulumi-20210928-78813-8xkwft/sdk/go/common/resource/config/crypt.go:158
<http://github.com/pulumi/pulumi/pkg/v3/resource/stack.(*cachingCrypter).DecryptValue|github.com/pulumi/pulumi/pkg/v3/resource/stack.(*cachingCrypter).DecryptValue>
/private/tmp/pulumi-20210928-78813-8xkwft/pkg/resource/stack/secrets.go:129
<http://github.com/pulumi/pulumi/sdk/v3/go/common/resource/config.Value.Value|github.com/pulumi/pulumi/sdk/v3/go/common/resource/config.Value.Value>
/private/tmp/pulumi-20210928-78813-8xkwft/sdk/go/common/resource/config/value.go:74
<http://github.com/pulumi/pulumi/sdk/v3/go/common/resource/config.Value.Copy|github.com/pulumi/pulumi/sdk/v3/go/common/resource/config.Value.Copy>
/private/tmp/pulumi-20210928-78813-8xkwft/sdk/go/common/resource/config/value.go:79
<http://github.com/pulumi/pulumi/sdk/v3/go/common/resource/config.Map.Copy|github.com/pulumi/pulumi/sdk/v3/go/common/resource/config.Map.Copy>
/private/tmp/pulumi-20210928-78813-8xkwft/sdk/go/common/resource/config/map.go:49
main.migrateOldConfigAndCheckpointToNewSecretsProvider
/private/tmp/pulumi-20210928-78813-8xkwft/pkg/cmd/pulumi/stack_change_secrets_provider.go:125
main.newStackChangeSecretsProviderCmd.func1
/private/tmp/pulumi-20210928-78813-8xkwft/pkg/cmd/pulumi/stack_change_secrets_provider.go:102
<http://github.com/pulumi/pulumi/sdk/v3/go/common/util/cmdutil.RunFunc.func1|github.com/pulumi/pulumi/sdk/v3/go/common/util/cmdutil.RunFunc.func1>
/private/tmp/pulumi-20210928-78813-8xkwft/sdk/go/common/util/cmdutil/exit.go:96
<http://github.com/pulumi/pulumi/sdk/v3/go/common/util/cmdutil.RunResultFunc.func1|github.com/pulumi/pulumi/sdk/v3/go/common/util/cmdutil.RunResultFunc.func1>
/private/tmp/pulumi-20210928-78813-8xkwft/sdk/go/common/util/cmdutil/exit.go:112
<http://github.com/spf13/cobra.(*Command).execute|github.com/spf13/cobra.(*Command).execute>
/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846
<http://github.com/spf13/cobra.(*Command).ExecuteC|github.com/spf13/cobra.(*Command).ExecuteC>
/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950
<http://github.com/spf13/cobra.(*Command).Execute|github.com/spf13/cobra.(*Command).Execute>
/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
main.main
/private/tmp/pulumi-20210928-78813-8xkwft/pkg/cmd/pulumi/main.go:48
runtime.main
/usr/local/Cellar/go/1.17.1/libexec/src/runtime/proc.go:255
runtime.goexit
/usr/local/Cellar/go/1.17.1/libexec/src/runtime/asm_amd64.s:1581
)
fresh-actor-58531
10/06/2021, 9:48 AMquiet-plumber-29358
10/06/2021, 9:58 AMdamp-accountant-65956
10/06/2021, 6:31 PMctx.Export()
to export an array of values? Like I am creating a VPC and then an arbitrary number of subnets and I want to export each subnet's ARN, ID and name so I was trying to export an array of maps but I can't quite figure out how to cast things to outputs properly and use apply... just wondering if there were any examples I could look at?fast-easter-23401
10/07/2021, 5:56 PMdelightful-fireman-31689
10/08/2021, 2:51 AMimport * as azure_native from "@pulumi/azure-native";
const b2cTenant = new azure_native.azureactivedirectory.B2CTenant("b2c", {
location: "Australia",
properties: {
countryCode: "AU",
displayName: "My Tenant",
},
resourceGroupName: "my-rg",
resourceName: "<http://mytenant123451234234523456456756789876.onmicrosoft.com|mytenant123451234234523456456756789876.onmicrosoft.com>",
sku: {
name: "PremiumP1",
tier: "A0",
},
});
and here is the log:
192-168-0-1:pulumi tuatara$ pulumi up --yes --skip-preview --debug --logflow --logtostderr
Please choose a stack, or create a new one: dev
Updating (dev)
View Live: <https://app.pulumi.com/[REDACTED]/myPulumiProject/dev/updates/2>
Type Name Status Info
pulumi:pulumi:Stack myPulumiProject-dev **failed** 1 error; 16 debugs
+ └─ azure-native:azureactivedirectory:B2CTenant b2c **creating failed** 1 error
Diagnostics:
azure-native:azureactivedirectory:B2CTenant (b2c):
error: resource partially created but read failed autorest/azure: Service returned an error. Status=404 Code="NotFound" Message="Resource with ID '[REDACTED]/my-rg/mytenant123451234234523456456756789876.onmicrosoft.com' does not exist." Target="resource": autorest/azure: Service returned an error. Status=404 Code="NotFound" Message="Resource with ID '[REDACTED]/my-rg/mytenant123451234234523456456756789876.onmicrosoft.com' does not exist." Target="resource"
pulumi:pulumi:Stack (myPulumiProject-dev):
debug: 2021/10/08 13:24:33 Testing if Service Principal / Client Certificate is applicable for Authentication..
debug: 2021/10/08 13:24:33 Testing if Multi Tenant Service Principal / Client Secret is applicable for Authentication..
debug: 2021/10/08 13:24:33 Testing if Service Principal / Client Secret is applicable for Authentication..
debug: 2021/10/08 13:24:33 Testing if Managed Service Identity is applicable for Authentication..
debug: 2021/10/08 13:24:33 Testing if Obtaining a token from the Azure CLI is applicable for Authentication..
debug: 2021/10/08 13:24:33 Using Obtaining a token from the Azure CLI for Authentication
debug: 2021/10/08 13:24:33 Getting OAuth config for endpoint <https://login.microsoftonline.com/> with tenant [REDACTED]
debug: Registering resource: t=pulumi:pulumi:Stack, name=myPulumiProject-dev, custom=false, remote=false
debug: RegisterResource RPC prepared: t=pulumi:pulumi:Stack, name=myPulumiProject-dev
debug: RegisterResource RPC finished: resource:myPulumiProject-dev[pulumi:pulumi:Stack]; err: null, resp: urn:pulumi:dev::myPulumiProject::pulumi:pulumi:Stack::myPulumiProject-dev,,,,
debug: Running program '[REDACTED]' in pwd '[REDACTED]' w/ args:
debug: Registering resource: t=azure-native:azureactivedirectory:B2CTenant, name=b2c, custom=true, remote=false
debug: RegisterResourceOutputs RPC prepared: urn=urn:pulumi:dev::myPulumiProject::pulumi:pulumi:Stack::myPulumiProject-dev
debug: RegisterResource RPC prepared: t=azure-native:azureactivedirectory:B2CTenant, name=b2c
debug: RegisterResourceOutputs RPC finished: urn=urn:pulumi:dev::myPulumiProject::pulumi:pulumi:Stack::myPulumiProject-dev; err: null, resp:
debug: RegisterResourceOutputs RPC finished: urn=urn:pulumi:dev::myPulumiProject::pulumi:pulumi:Stack::myPulumiProject-dev; err: null, resp:
error: update failed
Resources:
1 unchanged
Duration: 1m12s
swift-australia-96791
10/08/2021, 6:32 AM- uses: pulumi/actions@v3
with:
command: preview
stack-name: prod
upsert: true
work-dir: PulumiProject
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
While GitHub Action runs I m getting an error " pulumipulumiStack PulumiProject-prod create error: Missing required configuration variable 'PulumiProject:required_value' ", Can anyone assist me how to pass config values here?microscopic-addition-49262
10/09/2021, 2:06 PMmicroscopic-addition-49262
10/09/2021, 2:10 PMbroad-parrot-139
10/09/2021, 3:23 PMopts
argument to pass the cluster provider, but I don't see it documented on Helm Release classclean-easter-25831
10/10/2021, 7:18 PMaz aks pod-identity add --resource-group $ClusterRG --cluster-name $ClusterName --namespace $namespace --name $identity --identity-resource-id $IdentityResourceId
If I try and set this at cluster create time, I get the message:
"PodIdentity addon does not support assigning pod identities on creation."
How can I create the cluster first and then apply this? I don't really understand in Pulumi how to modify an object after creation. I'm using C# if it makes a difference.brave-nightfall-19158
10/10/2021, 7:23 PMdry-tiger-83274
10/11/2021, 9:48 PMchilly-plastic-75584
10/12/2021, 5:44 PMprehistoric-shampoo-51907
10/13/2021, 1:59 PMYAML
field of yaml.ConfigGroupArgs (pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes)
because it expects plain []string
, and I can’t use Transformations
as the docs state that any values set on the state must be prompt (not Output values)
.
The docs also state that I shouldn’t use Apply
and create the k8s resource in the callback because it could lead to pulumi preview
being wrong.
Is there a solution other than using native k8s sdk resources instead of yaml.ConfigGroups
?
Thanksfew-zebra-43062
10/13/2021, 9:17 PMdry-addition-79277
10/15/2021, 9:19 AMable-island-19908
10/15/2021, 11:35 PMfast-grass-52071
10/16/2021, 8:43 AMbrave-nightfall-19158
10/17/2021, 3:37 PMwhite-baker-74307
10/17/2021, 5:48 PMSorry, 'quickstart' is not a valid project name. A project with this name already exists.
and for the life of me I cannot figure out how to completely delete the local cli project. I even deleted the cache named quickstart in ~/.pulumi folder. Anyone?gray-beach-22985
10/18/2021, 2:24 PMfew-army-64952
10/18/2021, 5:29 PMswift-australia-96791
10/20/2021, 7:37 AMbig-plastic-81798
10/21/2021, 8:00 AMcolossal-vase-7526
10/21/2021, 4:52 PMlittle-soccer-5693
10/21/2021, 9:15 PMpulumi up
. Is this a bug or is something in my env not setup correctly? will paste stack trace in thread.some-honey-3067
10/22/2021, 2:37 AMfull-sugar-56177
10/22/2021, 6:33 PM