swift-whale-7378
12/27/2022, 8:20 PM- pulumi/login
- pulumi/update:
stack: [[stackname]]
skip-preview: true
working_directory: infrastructure
pulumi:pulumi:Stack [[stackname]] error: could not find node on the $PATH: exec: "node": executable file not found in $PATH
pulumi:pulumi:Stack [[stackname]] error: error reading from server: EOF
pulumi:pulumi:Stack [[stackname]] **failed** 1 error; 1 message
Diagnostics:
pulumi:pulumi:Stack ([[stackname]]):
error: could not find node on the $PATH: exec: "node": executable file not found in $PATH
error: error reading from server: EOF
CLI : pulumi update --stack [[stackname]] --cwd infrastructure --skip-preview
this works fine from dev environment ^^rapid-receptionist-28528
12/29/2022, 1:16 PMautomation api
is it possible to retrieve the project name ?
which exists in the pulumi.yaml
?
I have the stack:
const stack = await LocalWorkspace.selectStack(args)
important-australia-24045
12/29/2022, 11:18 PMflat-pager-43269
01/01/2023, 12:48 AMflat-pager-43269
01/01/2023, 8:07 PMcp_config = command.remote.CopyFile(
'config',
connection=connection,
local_path='install.sh',
remote_path='install.sh',
opts=pulumi.ResourceOptions(depends_on=[vm]),
)
the problem starts when I run pulumi up
in order to update an existing stack. when I change the file install.sh
the new file is not being copied to the existing machine. what can I do?rapid-receptionist-28528
01/02/2023, 6:05 PMpulumi config cp [key] [dest]
The result is a new file created with the key.
The key that I’m trying to move is a secret that needs to be decrypted and encrypted.
The filesystem that I’m running the command is as follows
pulumi
prod
dev
running pulumi stack ls from within the prod folder yields the following result
➜ prod git:(master) pulumi stack ls
NAME LAST UPDATE RESOURCE COUNT
stack.prod* 16 minutes ago 1
stack.dev n/a n/a
running pulumi config cp key1 <http://stack.dev|stack.dev>
(key is found in the stack.prod)
does not insert the key into stack the *dev/*Pulumi.stack.dev.yaml, but rather into a newly created file *prod/*Pulumi.stack.dev.yaml
what is the correct way to copy keys from one stack to another when they are not in the same folder?
Thanks!hundreds-yacht-71603
01/03/2023, 4:16 PMpulumi [up|...]
, purely from withing existing code.sparse-soccer-23105
01/05/2023, 8:06 AMerror: Preview failed: unrecognized resource type (Read):
ie: error: Preview failed: unrecognized resource type (Read): aws:rds/dbclustersnapshot:DBClusterSnapshot
From my understanding, the token
is wrong, how and/or where can I get a list of those ?
Thanks !square-tiger-5809
01/05/2023, 8:54 PMPulumi.example.yaml
in program kubernetes
config:
gcp:project: "new"
kubernetes:pod_range: "test"
In Pulumi.yaml I define required by using:
config:
pod_range:
type: String
pulumi up says
error: could not get cloud url: could not load current project: could not validate '/Users/me/workspace/pulumi/kubernetes/Pulumi.yaml': 8 errors occurred:
* #/config/pod_range: oneOf failed
* #/config/pod_range: expected string, but got object
* #/config/pod_range: expected integer, but got object
* #/config/pod_range: expected boolean, but got object
* #/config/pod_range: expected array, but got object
* #/config/pod_range: doesn't validate with '/$defs/configTypeDeclaration'
* #/config/pod_range/type: doesn't validate with '/$defs/simpleConfigType'
* #/config/pod_range/type: value must be one of "string", "integer", "boolean", "array"
Removing the config
key from Pulumi.yaml will make a preview run.
Any ideas?most-lighter-95902
01/07/2023, 5:29 AM:
and _
allowed in stack names?flat-pager-43269
01/09/2023, 4:42 PMAttributeError: module '<http://pulumi_azure_native.app|pulumi_azure_native.app>' has no attribute 'ManagedEnvironmentStorageResponsePropertiesArgs'
square-tiger-5809
01/10/2023, 4:39 PMconfig = pulumi.Config();
location = config.require('location')
here is my config
appnamelocation "europe-west2"
......
However I cannot get the gcp provider project_id so i can use it in my program
config = pulumi.Config();
test = config.require('gcp:project')
error: Missing required configuration variable 'appnamegcpproject'
please set a value using the command `pulumi config set appnamegcpproject <value>
Is there a way to reference GCP provider project_id without duplicating it in my pulumi config?hundreds-yacht-71603
01/11/2023, 11:48 PMhundreds-yacht-71603
01/12/2023, 12:59 PMstring
from `vpc.ID()`:
package main
import (
ec2Classic "<http://github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ec2|github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ec2>"
"<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi|github.com/pulumi/pulumi/sdk/v3/go/pulumi>"
)
func main() {
vpc, err := ec2Classic.NewVpc(ctx, "vpc", &ec2Classic.VpcArgs{
CidrBlock: pulumi.String(cidrRange),
EnableDnsHostnames: pulumi.Bool(true),
EnableDnsSupport: pulumi.Bool(true),
}, opts...)
if err != nil {
return nil, err
}
ctx.Export("vpc", vpc)
rt, err := ec2Classic.LookupRouteTable(ctx, &ec2Classic.LookupRouteTableArgs{
// VpcId: pulumi.StringRef(fmt.Sprintf("%s", vpc.ID())),
Filters: []ec2Classic.GetRouteTableFilter{
{
Name: "vpc-id",
Values: []string{"vpc-0497cc4ca5e669e0c"}, // how do I get the actual string value from vpc.ID()??
},
{
Name: "association.main",
Values: []string{"true"},
},
},
})
}
bumpy-plastic-18391
01/13/2023, 2:36 AMabundant-rain-94621
01/13/2023, 6:15 AMcurved-scientist-9467
01/13/2023, 11:34 AM➜ testing-server ./tf2pulumi --target-language python
2023/01/13 12:31:25 [TRACE] module source: "git::git@github.com:gruntwork-io/terraform-aws-asg.git//modules/server-group?ref=v0.8.7"
2023/01/13 12:31:25 [TRACE] detected module source "git::<ssh://git@github.com/gruntwork-io/terraform-aws-asg.git?ref=v0.8.7>"
2023/01/13 12:31:25 [DEBUG] fetching module from git::<ssh://git@github.com/gruntwork-io/terraform-aws-asg.git?ref=v0.8.7>
2023/01/13 12:31:25 [DEBUG] found "git::<ssh://git@github.com/gruntwork-io/terraform-aws-asg.git?ref=v0.8.7>" in "": false
error: failed to load module: module servers: not found, may need to run 'terraform init'
The module is a git source, I have access to that. Why is it problematic?
Thnks :)bumpy-plastic-18391
01/13/2023, 2:38 PMbumpy-plastic-18391
01/13/2023, 2:38 PMbumpy-plastic-18391
01/13/2023, 2:39 PM"Property 'apigateway' does not exist on type 'typeof import(\"/Users/byronmartinez/Desktop/New Pulumi
bumpy-plastic-18391
01/13/2023, 2:41 PMbumpy-plastic-18391
01/13/2023, 2:41 PMbumpy-plastic-18391
01/13/2023, 9:25 PMbumpy-plastic-18391
01/13/2023, 9:25 PMhttps://files.slack.com/files-pri/T85C88L30-F04JPVALC30/screen_shot_2023-01-13_at_3.52.22_pm.png▾
rhythmic-tailor-1242
01/16/2023, 6:30 PM<http://example.com|example.com>
and I'm able to load <https://example.com>
I now want to make sure <https://www.example.com>
gets redirected to <https://example.com>
Any idea how to do it?
This is my code right now:
// Step 2: Define the Networking for our service.
const alb = new awsx.elasticloadbalancingv2.ApplicationLoadBalancer(
"net-lb",{
external: true,
vpc,
subnets: vpcData.subnets.public,
securityGroups: cluster.securityGroups,
});
// Target group with the port of the Docker image
const target = alb.createTargetGroup(
"web-target", {vpc, port: PORT}
);
// Listen to traffic on port 443 & route it through the target group
const httpsListener = target.createListener("web-listener", {
port: 443,
certificateArn: certificateValidation.certificateArn
});
const web = alb.createListener("nginx", {
// const web = new awsx.elasticloadbalancingv2.ApplicationListener("nginx", {
port: PORT,
protocol: "HTTP",
defaultAction: {
type: "redirect",
redirect: {
protocol: "HTTPS",
host: `${DOMAIN}`,
port: "443",
statusCode: "HTTP_301"
},
},
})
new aws.route53.Record(`<http://example.com|example.com>`, {
name: `<http://example.com|example.com>`,
zoneId: hostedZoneId,
type: "A",
aliases: [{
name: httpsListener.endpoint.hostname,
zoneId: alb.loadBalancer.zoneId,
evaluateTargetHealth: true
}],
});
busy-kitchen-1186
01/16/2023, 7:18 PMbillowy-army-68599
ambitious-sundown-4188
01/16/2023, 8:29 PMbright-jackal-48325
01/18/2023, 1:22 AMDiagnostics:
pulumi:pulumi:Stack (pulumi-storage-dev):
error: an unhandled error occurred: Program exited with non-zero exit code: 82
Unhandled exception. System.InvalidOperationException: Program run without the Pulumi engine available; re-run using the `pulumi` CLI
at Pulumi.Deployment..ctor(RunnerOptions runnerOptions)
at Pulumi.Deployment.<>c.<RunAsync>b__110_0()
at Pulumi.Deployment.CreateRunnerAndRunAsync(Func`1 deploymentFactory, Func`2 runAsync)
at Program.<Main>$(String[] args) in C:\Users\randy\source\repos\pulumi-storage\Program.cs:line 7
at Program.<Main>(String[] args)
bright-jackal-48325
01/18/2023, 1:22 AM