clever-plumber-29709
07/09/2020, 9:11 PMmelodic-alarm-79754
07/09/2020, 10:39 PMmelodic-alarm-79754
07/09/2020, 10:39 PMrhythmic-napkin-82334
07/09/2020, 11:20 PMmammoth-caravan-51104
07/09/2020, 11:51 PMup
pulumi updates the stage definition by adding the oauthtoken. Did I miss something in config? can it be done just once? Thankslimited-solstice-34584
07/10/2020, 12:12 AMlimited-solstice-34584
07/10/2020, 12:26 AMlimited-solstice-34584
07/10/2020, 12:26 AMlimited-solstice-34584
07/10/2020, 12:27 AMbroad-breakfast-39210
07/10/2020, 8:31 AMgcloud
SDK has the following flag:
--set-cloudsql-instances <PROJECT_ID>:<CLOUD_SQL_REGION>:<INSTANCE_ID>
But I don't know how to pass it with Pulumi...
Once Pulumi creates a service (failed to start) I can ass the Cloud SQL instance through the Google Cloud Console manually, but next Pulumi deployment removes that connection šmillions-intern-37041
07/10/2020, 2:22 PMmillions-furniture-75402
07/10/2020, 2:23 PMclever-plumber-29709
07/10/2020, 4:09 PMpulumi.debug("foo")
?
I tried with --verbose 4
and some higher but is not shownmelodic-alarm-79754
07/10/2020, 4:10 PMthousands-train-20124
07/10/2020, 7:26 PMpulumi up --stack <stack> --yes
but this gives me an error EntityAlreadyExists: A policy called xxx-policy already exists. Duplicate names are not allowed.
status code: 409,
. What is the way to avoid this problem and still update the changes to the code. I am using typescript as the language of programming the deployment.worried-engineer-33884
07/10/2020, 7:54 PMgetOutput
call complaining with:
error: Preview failed: decrypting secret value: failed to decrypt: incorrect passphrase, please set PULUMI_CONFIG_PASSPHRASE to the correct passphrase
i have the correct passphrase set for the current project. the stack iām trying to pull an output from does not set this output as a secret. (i just set foo to test):
> pulumi stack output
Current stack outputs (1):
OUTPUT VALUE
foo zxcv
sparse-article-70164
07/10/2020, 10:28 PMsparse-article-70164
07/10/2020, 10:36 PMlate-battery-85849
07/10/2020, 11:49 PMnumerous-artist-1705
07/12/2020, 6:32 AM7.4Ā Ā Ā Ā Pulumi hereby grants you a limited, non-exclusive, royalty-free, non-transferable license, with no right to sub-license, to display the Pulumi trademarks and/or logos (āMarksā) for the sole purpose of promoting or advertising that you use the Pulumi Services and solely in accordance with Pulumiās then current Trademark Usage Guidelines, which may be found atĀ https://www.pulumi.com/trademark. You agree that all goodwill generated through your use of the Pulumi Marks shall inure to the benefit of Pulumi.I think it's safe to assume I can use Pulumi logo in diagram on GitHub for a GPLv2 project using Pulumi. If not so, please let me know.
dazzling-sundown-39670
07/12/2020, 10:29 AMwarning: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: the server has asked for the client to provide credentials
when trying to run pulumi up
.
On DOs website I can read "Certificates expire after 7 days." and locally I can resolve that with doctl kubernetes cluster kubeconfig save use_your_cluster_name
but how can I make pulumi update the certificates?
I tried running pulumi refresh
but that gave me the same error as above.gray-ambulance-59402
07/12/2020, 11:10 AMpublic class ClusterOptions
{
public ClusterOptions() {
var config = new Pulumi.Config("MyNamespace");
Name = config.Require("Name");
VnetName = config.Require("VnetName");
ServicePrincipalId = config.Require("ServicePrincipalId");
ServicePrincipalSecret = config.RequireSecret("ServicePrincipalSecret");
}
private string Name { get; }
private string VnetName { get; }
private string ServicePrincipalId { get; }
private Output<string> ServicePrincipalSecret { get; }
}
Another option seems to be to use an object deserialised from JSON.
var config = new Pulumi.Config();
var clusterConfig = config.RequireObject<ClusterOptions>("ClusterOptions");
Then I just use a nested configuration block in the yaml config file. This uses less code but the only risk here is that there could be empty configuration values so would be initialised as null so I would need to handle this.
MyNamespace:ClusterOptions:
Name: testing
VnetName: test-vnet
ServicePrincipalId: principalID
ServicePrincipalSecret: SuperSecret!
Or maybe I'm looking at this wrong and I should use hard-coded values in the main stack file and use a simple option to use a different stack file per environment? Using component resources allows code re-use so the stacks should be fairly small in code size.
Let me know how you handle this currently!bright-policeman-55860
07/12/2020, 4:43 PMastonishing-branch-30086
07/13/2020, 8:03 AMpulumi up
, pulumi preview
etc.) from one of the languages (Python in my case)? For example, calling something like pulumi.up()
? Just curious!salmon-gold-74709
07/13/2020, 8:38 AMnumerous-artist-1705
07/13/2020, 11:07 AMstocky-lion-56153
07/13/2020, 11:32 AMaloof-laptop-31826
07/13/2020, 1:01 PMaloof-laptop-31826
07/13/2020, 1:01 PMaloof-laptop-31826
07/13/2020, 1:02 PMaloof-laptop-31826
07/13/2020, 1:02 PM