lively-vr-73939
03/31/2022, 1:56 PMS3
bucket as the backend. I believe the Pulumi.<stack>.yaml
should not be committed (pls correct me if I'm wrong). May I please know the recommended way of setting the configs? Should I set the each config from environment variable using pulumi config set/set-all
command? If so How should I set the secretsprovider
and the encryptedkey
? Or can I retrieve those configs from backend?stocky-petabyte-29883
03/31/2022, 1:59 PMjolly-church-88521
03/31/2022, 3:06 PMsilly-receptionist-99224
03/31/2022, 3:43 PM__main__.py
files in Python? So I can be able to split users, databases, roles, etc..
Currently using Pulumi for the first time and I am trying to manage some Snowflake resources using pulumi_snowflakemany-psychiatrist-74327
03/31/2022, 4:00 PMgcp.container.NodePool
, but pulumi up
keeps failing with a 404:
gcp:container:NodePool (dev-gcp-us-east1-pool2):
error: 1 error occurred:
* creating urn:pulumi:dev::infra::gcp:container/nodePool:NodePool::dev-gcp-us-east1-pool2: 1 error occurred:
* error creating NodePool: googleapi: got HTTP response code 404 with body: <!DOCTYPE html>
<html lang=en>
<meta charset=utf-8>
<meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
<title>Error 404 (Not Found)!!1</title>
<style>
*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
</style>
<a href=//www.google.com/><span id=logo aria-label=Google></span></a>
<p><b>404.</b> <ins>That's an error.</ins>
<p>The requested URL <code>/v1beta1/projects/jetpack-dev/locations/us-east1/clusters/projects/jetpack-dev/locations/us-east1/clusters/dev-gcp-us-east1/nodePools?alt=json&prettyPrint=false</code> was not found on this server. <ins>That's all we know.</ins>
Here’s the resource definition:
const nodepool = new gcp.container.NodePool(
`${name}-pool2`,
{
cluster: cluster.id,
location: config.require("region"),
nodeCount: 1,
autoscaling: {
minNodeCount: 1,
maxNodeCount: 10,
},
nodeConfig: {
serviceAccount: serviceAccount.email,
oauthScopes: ["<https://www.googleapis.com/auth/cloud-platform>"],
machineType: "e2-standard-8",
imageType: "UBUNTU",
}
},
{
provider: gcpProvider
}
);
am i missing something silly/simple here?careful-petabyte-65672
04/01/2022, 8:32 AMStackRefrence
to get output of stack 1 to use in stack 2, if I do pulumi up
to both stacks at once, will stack 2 wait for stack 1 to produce the output before using it? Thanks!many-psychiatrist-74327
04/01/2022, 1:32 PMpackage.json
and removing node_modules
and calling yarn install
again, when I run pulumi preview
, I get:
aws:iam:Role (eks-cluster-node-group-role):
error: could not validate provider configuration: 1 error occurred:
* Invalid or unknown key
followed by a bunch of stack traces that look like this:
Error:
at Object.debuggablePromise (/scratch/node_modules/@pulumi/pulumi/runtime/debuggable.js:69:75)
at /scratch/node_modules/@pulumi/pulumi/runtime/invoke.js:126:45
at Generator.next (<anonymous>)
at fulfilled (/scratch/node_modules/@pulumi/pulumi/runtime/invoke.js:18:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
unhandled rejection: CONTEXT(6017): Invoking function: tok=kubernetes:yaml:decode asynchronously
STACK_TRACE:
Error:
at Object.debuggablePromise (/scratch/node_modules/@pulumi/pulumi/runtime/debuggable.js:69:75)
at /scratch/node_modules/@pulumi/pulumi/runtime/invoke.js:126:45
at Generator.next (<anonymous>)
at fulfilled (/scratch/node_modules/@pulumi/pulumi/runtime/invoke.js:18:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
unfortunately this error isn’t very useful
Any hints?quick-painter-61380
04/01/2022, 2:35 PMgray-intern-82383
04/01/2022, 2:38 PMucc, err := monitoring.NewUptimeCheckConfig(ctx, name, &monitoring.UptimeCheckConfigArgs{
DisplayName: pulumi.String("uptime check example"),
HttpCheck: &monitoring.UptimeCheckConfigHttpCheckArgs{
Path: pulumi.String(fmt.Sprintf("/%s/status", "github")),
Port: <http://pulumi.Int|pulumi.Int>(443),
RequestMethod: pulumi.String("GET"),
UseSsl: pulumi.Bool(true),
ValidateSsl: pulumi.Bool(true),
},
MonitoredResource: &monitoring.UptimeCheckConfigMonitoredResourceArgs{
Labels: pulumi.StringMap{
"host": pulumi.String(targetUrl),
},
Type: pulumi.String("uptime_url"),
},
Period: pulumi.String("60s"),
Timeout: pulumi.String("10s"),
})
This was working fine, but then we decided to add an alert policy for this uptime check
Note: here we forward the uptime check created previously
args := monitoring.AlertPolicyArgs{
DisplayName: pulumi.String(name),
Combiner: pulumi.String("AND"),
Conditions: monitoring.AlertPolicyConditionArray{
monitoring.AlertPolicyConditionArgs{
DisplayName: pulumi.String("Health check alerts for github %s", service.ShortName),
ConditionThreshold: monitoring.AlertPolicyConditionConditionThresholdArgs{
Filter: pulumi.Sprintf("metric.type=\"<http://monitoring.googleapis.com/uptime_check/check_passed\|monitoring.googleapis.com/uptime_check/check_passed\>" AND metric.label.check_id=\"%s\" AND resource.type=\"uptime_url\"", uptimeCheck.UptimeCheckId),
Duration: pulumi.String("60s"),
Trigger: monitoring.AlertPolicyConditionConditionThresholdTriggerArgs{
Count: pulumi.IntPtr(1),
},
ThresholdValue: pulumi.Float64Ptr(1),
Comparison: pulumi.String("COMPARISON_LT"),
Aggregations: monitoring.AlertPolicyConditionConditionThresholdAggregationArray{
monitoring.AlertPolicyConditionConditionThresholdAggregationArgs{
AlignmentPeriod: pulumi.String("60s"),
PerSeriesAligner: pulumi.String("ALIGN_COUNT_TRUE"),
},
},
},
},
}
NotificationChannels: "alerts",
This worked fine in the first deployment, but the subsequent ones started to fail.
error: deleting urn:pulumi:env::company::gcp:monitoring/uptimeCheckConfig:UptimeCheckConfig::uptime-check-github: 1 error occurred:
Error when reading or editing UptimeCheckConfig: googleapi: Error 400: Request contains an invalid argument.
What a noticed is the new uptime checks got created in our account, but GCP entered in some weird state where it could not delete the previous uptime check,
the only way I managed to fix the stack was by deleting the old uptime checks manually, I also noticed that the old uptime checks still had alert policies attached to them
Is there any idea of what could be happening? I personally can’t find what I have missed and there’s not much documenation around pulumi and uptime checks.wonderful-motherboard-66151
04/01/2022, 4:52 PMconst webapp = new web.WebApp(
projectKey,
{
reserved: true,
resourceGroupName: resourceGroup.name,
serverFarmId: appServicePlan.id,
siteConfig: {
linuxFxVersion: "DOTNET|6.0",
netFrameworkVersion: "v6.0",
},
}
);
new web.WebAppMetadata("meta", {
resourceGroupName: resourceGroup.name,
name: webapp.name,
properties: {
CURRENT_STACK: "dotnetcore",
},
});
The linuxFxVersion
kind of worked, which means that I can create a deployment in Azure’s Deployment Center that seems to recognize dotnet as runtime. However, if I then deploy a .net app, it seems to me as if the application is started like a PHP application, which obviously does not work… All I see is an apache forbidden page.
I tried to add the WebAppMetadata
with the CURRENT_STACK
and the netFrameworkVersion
, but that didn’t help neither, so I am wondering if that is necessary at all…
Another thing is that the general settings tab within configuration in portal.azure.com has no stack selected, although I tried to configure it using the code above.
Can anybody tell me what I am doing wrong?astonishing-gpu-28317
04/01/2022, 7:13 PMpulumi up
? sort of the inverse of --target
future-window-78560
04/02/2022, 2:06 AMlively-vr-73939
04/02/2022, 12:27 PMCopyright
header.
// Copyright 2016-2019, Pulumi Corporation. All rights reserved.
Am I allowed to use the examples under Apache-2.0 terms and conditions?calm-tent-21096
04/02/2022, 5:41 PMvar searchDns = new PrivateZone("<http://privatelink.search.windows.net|privatelink.search.windows.net>", new PrivateZoneArgs
{
PrivateZoneName = "<http://privatelink.search.windows.net|privatelink.search.windows.net>",
ResourceGroupName = (
_coreRef.GetOutput("CoreResourceGroupName")
?? throw new Exception("Core resource group not found"))
.Apply<string>(rg => Convert.ToString(rg)
?? string.Empty)
});
Am I doing something wrong? _coreRef.GetOutput()
always returns Output<object?>
but ResourceGroup name is Input<string>
. Is there an easier way to convert to Input<string>
from the output of GetOutput()
?bored-monitor-99026
04/02/2022, 11:53 PMcustom_cloud_provider
to provision a cluster on cloud providers (other than aws/gcloud/azure etc. that are already supported)?
https://www.pulumi.com/registry/packages/rancher2/bored-monitor-99026
04/02/2022, 11:55 PMcareful-petabyte-65672
04/03/2022, 1:29 PMmammoth-memory-94473
04/03/2022, 4:12 PMscript_output = command.local.Command("execute_shell_script",
create='chmod 755 configure.sh && ./configure.sh \"{pulumivm.default_ip_address}\" {arg1} {arg2}',
opts=pulumi.ResourceOptions(depends_on=[pulumivm])
)
pulumi.export("script_output", script_output.stdout)
Can you please point me to a snippet or an example where this is being done?bitter-psychiatrist-55958
04/03/2022, 5:47 PMastonishing-energy-53370
04/03/2022, 6:18 PMbored-monitor-99026
04/04/2022, 3:51 AMmysterious-apartment-62241
04/04/2022, 8:24 AMAWS Batch
with Fargate
.
We've tried and tested a "dispatcher" Lambda
that is invoked at the start of each week (via EventBridge
/ CloudWatch
events, in TypeScript
).
This Lambda
would submit Jobs
with a specified Job Definition
to a Job Queue
which would then schedule them accordingly.
I've set the Lambda
function to use a Docker
container the image of which is hosted on ECR
(Docker
container runs a Python
script).
I'm having a little trouble with connecting the AWS Batch
resources (ComputeEnvironment
, JobDefinition
, etc.) and ECS
, Fargate
.
I would really appreciate it if I can get some help/advice on linking these resources together.
AFAIK, there are no examples using AWS Batch
and Fargate
with Docker
containers in the examples repository.
Feel free to correct me where I'm wrong.
Any help is appreciated.
Thank you for your time!nutritious-addition-48285
04/04/2022, 1:51 PMdebug: setting state: Invalid address to set: []string{"snapshot_backup_policy", "0", "policies", "0", "policy_item", "0", "id"}
error: update failed
It seems to be successfully setting everything up and then it's gets the new cluster and appears to try to set it to the pulumi stack state and fails. Is this something I'm doing incorrectly?acoustic-tiger-77630
04/04/2022, 6:15 PMbillowy-processor-56040
04/04/2022, 6:18 PMbrave-doctor-12316
04/04/2022, 7:15 PMbrave-doctor-12316
04/04/2022, 7:45 PMmammoth-art-6111
04/04/2022, 7:48 PMpulumi import
? i imported a lot of things using TMUX and...yeahwet-sunset-4939
04/05/2022, 1:22 AMeager-keyboard-30823
04/05/2022, 7:16 AMpulumi preview
it complains about something that looks like missing properties - but I’m not sure why, as those properties were not included in the C# code that was generated by the import command. Any tips for what to look for?