sticky-exabyte-94099
01/20/2022, 2:44 PMOutput.Format($"@Microsoft.KeyVault(SecretUri={KeyVault.VaultUri}secrets/{connectionStringSecret.Name}/{connectionStringSecret.Version}");
I guess you would do it like this?
But I get error (Cannot implicitly convert type 'Pulumi.Output<string>' to 'string'
) on setting the ResourceGroupName and VaultName... how do I solve that?magnificent-lifeguard-15082
01/20/2022, 2:49 PMapi:*
spans. I'm ideally looking for which [AWS] resource types is pulumi spending so much time in so I can optimise?gentle-monitor-55086
01/20/2022, 4:30 PMglamorous-cpu-85849
01/20/2022, 6:01 PMpulumi/action-install-pulumi-cli
officially deprecated in favor of pulumi/setup-pulumi
for GitHub Actions? Is there a public notice for this somewhere?bored-table-20691
01/20/2022, 9:03 PMpulumi up
should ideally work.
2. If the SSH tunnel provisions a dynamic local port (e.g. to handle several concurrent tunnels being on the machine), is this going to mess up the provider as the port changes every time?fast-easter-23401
01/20/2022, 9:14 PMripe-park-70944
01/21/2022, 12:26 PMimport
, I've tried adding all of --debug --verbose 9 --logtostderr --logflow
to the import
command, but there's no trace of the exact request made or logging of the client id / client secret, just loads of noise.
I've triple checked and the configured auth parameters work using the same client_credentials
grant flow in a postman query to the azure auth and then management api so I'm looking to double check that the commands Pulumi is sending to azure are what I'd expect and check them for issues (maybe bad escaping on the password or something like that)bored-barista-23480
01/21/2022, 1:10 PMhigh-leather-15669
01/21/2022, 2:44 PMcannot check existence of resource '/subscriptions/xxx/resourceGroups/%2Fsubscriptions%xx%2FresourceGroups%2Fxxx/providers/Microsoft.Compute/diskEncryptionSets/des-xxx': status code 400, {"error":{"code":"InvalidApiVersionParameter","message":"The api-version '2020-12-01' is invalid. The supported versions are '2021-04-01,2021-01-01,2020-10-01,2020-09-01,2020-08-01,2020-07-01,2020-06-01,2020-05-01,2020-01-01,2019-11-01,2019-10-01,2019-09-01,2019-08-01,2019-07-01,2019-06-01,2019-05-10,2019-05-01,2019-03-01,2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'."}}
Any idea why?
(also posted on the #azure channel, but haven't had a response)sticky-airline-40485
01/21/2022, 3:15 PMBucket bucket = Bucket.Get("bucket", "my-bucket")
; but then how do I modify bucket
, for example, to enable Versioning? bucket.Versioning = ...
gives an error because Versioning
is read-only. Stuck on this for several hours now 😞sticky-exabyte-94099
01/21/2022, 4:45 PMvar App = new AzureNative.Web.WebApp("myapp", new AzureNative.Web.WebAppArgs
{
ResourceGroupName = ResourceGroup.Apply(t => t.Name),
Location = ResourceGroup.Apply(t => t.Location),
ServerFarmId = AppServicePlan.Id,
SiteConfig = new AzureNative.Web.Inputs.SiteConfigArgs
{
AppSettings = {
new AzureNative.Web.Inputs.NameValuePairArgs{
Name = "WEBSITE_RUN_FROM_PACKAGE",
Value = BlazorCodeBlobEndpoint,
},
new AzureNative.Web.Inputs.NameValuePairArgs{
Name = "ASPNETCORE_ENVIRONMENT",
Value = Deployment.Instance.StackName.ToLower(),
},
//Abp.io
new AzureNative.Web.Inputs.NameValuePairArgs{
Name = "App:SelfUrl", //<-- So do this
Value = MyEndpoint,
}
},
},
Tags =
{
{ "environment", StackName },
},
});
and not in appSettings.json
{
"App": {
"SelfUrl": "<https://me.com>",
... etc
}
And should I then get rid of every settings in appSettings.json?able-hair-32695
01/21/2022, 11:21 PMsticky-exabyte-94099
01/22/2022, 12:25 PMbillions-lawyer-5518
01/22/2022, 5:42 PMconst remoteInstance = new docker.Provider(
"remote",
{
host: interpolate`<ssh://user>@${externalIP}:22`,
},
{ dependsOn: dockerInstallation }
);
thousands-student-41479
01/22/2022, 6:26 PMmagnificent-lifeguard-15082
01/23/2022, 10:29 AMup
) It conflicts with my prettier config and I'd rather not just ignore pulumi*.yml files and have consistency across all of our yaml.proud-pizza-80589
01/23/2022, 12:33 PMmagnificent-lifeguard-15082
01/23/2022, 9:28 PMerror: Error: Remote object was not 'function': {"type":"object","className":"Function","description":"Function","objectId":"{\"injectedScriptId\":2,\"id\":287}"}
witty-honey-13693
01/24/2022, 4:10 AMwitty-honey-13693
01/24/2022, 4:13 AMrough-intern-34947
01/24/2022, 12:39 PMsteep-beach-52652
01/24/2022, 5:21 PMbored-table-20691
01/24/2022, 5:52 PM$ pulumi plugin install resource command v3.0.0
[resource plugin command-3.0.0] installing
error: [resource plugin command-3.0.0] downloading from : 403 HTTP error fetching plugin from <https://get.pulumi.com/releases/plugins/pulumi-resource-command-v3.0.0-darwin-amd64.tar.gz>
worried-author-3242
01/24/2022, 6:01 PMbored-table-20691
01/24/2022, 6:27 PMlocal.Command
. Here is my entire Pulumi program:
package main
import (
"<http://github.com/pulumi/pulumi-command/sdk/go/command/local|github.com/pulumi/pulumi-command/sdk/go/command/local>"
"<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 {
_, err := local.NewCommand(ctx, "test", &local.CommandArgs{
Create: pulumi.String("./create.sh hello"),
Delete: pulumi.String("./destroy.sh goodbye"),
Environment: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
})
if err != nil {
return err
}
return nil
})
}
Here is `create.sh`:
#!/bin/bash
echo "hello: $1" >> /tmp/pulumi_log.txt
and `destroy.sh`:
#!/bin/bash
echo "goodbye: $1" >> /tmp/pulumi_log.txt
When I run pulumi up
the first time, I get the hello: …
in the log file. If I run pulumi destroy
, I get the goodbye: ...
in the log file. However, if I were to change the environment
, nothing happens, the script does not seem to execute at all (nothing gets added to the log file.
Is this expected? Am I doing something wrong?fancy-egg-38667
01/24/2022, 8:08 PMpulumi state delete
only deletes the resource from the pulumi stack, right? It doesn't delete the resource on AWSminiature-quill-86620
01/24/2022, 10:17 PMbored-table-20691
01/24/2022, 11:18 PMlocal.Command
(in pulumi-command
), I’m seeing some odd behavior in regards to stderr
when the command itself fails.
Specifically, if my command script fails (exits with a non-zero code), I get this reported on my status:
Diagnostics:
command:local:Command (my-script):
error: exit status 1
pulumi:pulumi:Stack (mystack-dev):
error: update failed
But stderr
is never set. Specifically, I’ve tried the following:
ctx.Export("stdout", cmd.Stdout)
ctx.Export("stderr", cmd.Stderr)
pulumi.All(cmd.Stdout, cmd.Stderr).ApplyT(func(args []interface{}) string {
stdout := args[0].(string)
stderr := args[1].(string)
fmt.Println("stdout", stdout)
fmt.Println("stderr", stderr)
return ""
})
But none of this prints out. I also tried just stdout and stderr individually, and no dice.
If, however, the command exits successfully (with a zero error code), then stdout/stderr complete successfully.
My main use case is one of debugging - I want to know why my script fails and that information exists in stderr
, but I cannot access it in the case I need it, which is when it fails 🙂 Am I doing something wrong?thankful-table-80113
01/25/2022, 1:27 AMbrave-room-27374
01/25/2022, 3:40 AMapple M1
and getting 403 HTTP error fetching plugin
while doing pulumi up
, basically, I can't install kubernetes plugin
😀 ➜ pulumi plugin install resource kubernetes v1.0.6
[resource plugin kubernetes-1.0.6] installing
error: [resource plugin kubernetes-1.0.6] downloading from : 403 HTTP error fetching plugin from <https://get.pulumi.com/releases/plugins/pulumi-resource-kubernetes-v1.0.6-darwin-arm64.tar.gz>
I followed the document on troubleshooting
but that does not work as well
https://www.pulumi.com/docs/troubleshooting/#i-dont-have-access-to-an-intel-based-computer
any further guide to make it work on apple M1 chip?