abundant-lock-75924
11/28/2023, 1:47 AMcuddly-magician-97620
11/28/2023, 5:53 AMPULUMI_EXPERIMENTAL=1 PULUMI_SKIP_CHECKPOINTS=true
. If my backend " _typically store a singular Pulumi state file_", what makes such a huge difference?brash-waitress-49970
11/28/2023, 7:37 AMpolite-thailand-95968
11/28/2023, 9:13 AMstrong-vr-90029
11/28/2023, 9:50 AMfew-postman-20852
11/28/2023, 2:10 PMadamant-father-26302
11/28/2023, 4:16 PMstrong-vr-90029
11/28/2023, 4:32 PMimport * as pulumi from '@pulumi/pulumi';
import * as aws from '@pulumi/aws';
import { sqsConfig } from './constract';
export class MySqs {
static create(params: sqsConfig) {
const regions: aws.Region[] = ["us-east-1", "us-east-2"];
for (const region of regions) {
// Create a new AWS provider for the specified region
const provider = new aws.Provider(`${region}-provider`, { region: region });
// Create a new SQS queue in the specified region using the corresponding provider
const sqsQueue = new aws.sqs.Queue(`${region}-queue`, {}, { provider: provider });
}
}
}
when running this code i have this failure : error: Duplicate resource URN 'urnpulumistage:xxx deployment infrapulumiprovidersaws:us-east-2-provider'; try giving it a unique name , someone can assist ? how to solve it 🙂 ??broad-doctor-18421
11/28/2023, 4:38 PMrhythmic-megabyte-99595
11/28/2023, 6:51 PMconnection_id = ec2.VpcPeeringConnection(
f"vpcPeering-{loca_vpc}->{remote_vpc}",
opts=pulumi.ResourceOptions(provider=local_provider),
vpc_id=local_vpc.id,
peer_vpc_id=remote_vpc_id,
peer_owner_id=local_account_id,
auto_accept=False,
)
and the error is
The vpc ID 'vpc-remote' does not exist
broad-doctor-18421
11/28/2023, 9:38 PMpulumi preview -v=11
doesn't give me any diagnostic errors, as to where they are both coming from.
I've tried introducing a singleton pattern in a stack refs call to ensure I'm only calling it once but that doesn't seem to be compatible with pulumi.
Diagnostics:
pulumi:pulumi:StackReference (organization/vpc/dev):
error: Duplicate resource URN 'urn:pulumi:dev::LB::pulumi:pulumi:StackReference::organization/vpc/dev'; try giving it a unique name
How do I get more information out of pulumi to help figure out where this is happening?hallowed-ghost-37140
11/28/2023, 11:53 PMpulumi up
after upgrading some @pulumi/*
packages.
I'm running a managed DigitalOcean k8s cluster, and obtaining the kubeconfig
from the outputs then using it to initialize the k8s provider.
Then using that provider to install via Helm various charts, but now after upgrading the packages it's failing with...
$ pulumi up
Previewing update (evilcorp/dev)
View in Browser (Ctrl+O): <https://app.pulumi.com/evilcorp/evilapp/dev/previews/bc43f6ec-25b7-4aab-b02e-c03c2816989c>
Type Name Plan Info
pulumi:pulumi:Stack evilapp-dev
~ ├─ pulumi:providers:kubernetes k8s-provider update [diff: ~version]
+ ├─ kubernetes:core/v1:Namespace argo-cd-namespace create
└─ kubernetes:<http://helm.sh/v3:Release|helm.sh/v3:Release> cert-manager-release 1 error
Diagnostics:
kubernetes:<http://helm.sh/v3:Release|helm.sh/v3:Release> (cert-manager-release):
error: kubernetes:<http://helm.sh/v3:Release|helm.sh/v3:Release> resource 'cert-manager-release': property chart value {cert-manager} has a problem: could not get server version from Kubernetes: the server has asked for the client to provide credentials; check the chart name and repository configuration.
This is the general setup.
import * as digitalocean from "@pulumi/digitalocean";
import * as kubernetes from "@pulumi/kubernetes";
const doCluster = new digitalocean.KubernetesCluster("do-cluster", {
name: "k8s-evilapp",
nodePool: {
autoScale: true,
maxNodes: 2,
minNodes: 1,
name: "pool-evilapp",
size: "s-1vcpu-2gb",
},
region: "nyc3",
version: "1.28.2-do.0",
});
export const kubeconfig = doCluster.kubeConfigs[0].rawConfig;
const provider = new kubernetes.Provider("k8s-provider", {
kubeconfig,
});
const certManagerNamespace = new kubernetes.core.v1.Namespace(
"cert-manager-namespace",
{
metadata: {
name: "cert-manager",
},
},
{
provider,
}
);
const certManagerRelease = new kubernetes.helm.v3.Release(
"cert-manager-release",
{
chart: "cert-manager",
version: "1.10.2",
namespace: certManagerNamespace.metadata.name,
repositoryOpts: {
repo: "<https://charts.jetstack.io>",
},
values: {
installCRDs: true
}
},
{
provider,
}
);
rough-quill-46540
11/29/2023, 2:56 PMcolumns = [
snowflake.TableColumnArgs(
'MY_COLUMN',
type="VARCHAR(100) COLLATE 'en-ci'",
)]
self.tables[table_name] = snowflake.Table(
'MY_TABLE',
columns=columns,
database=db_name,
schema=schema_name)
And what I get in the db side is:
CREATE TABLE "MY_DB"."SCHEMA"."MY_TABLE" ("MY_COLUMN" VARCHAR(100) COLLATE \\'en-ci\\' COMMENT '')
'DATA_RETENTION_TIME_IN_DAYS = 1 CHANGE_TRACKING = false';
So it tries to escape the single quotes around the collation which makes the table creation fail. Is there any way around this?gifted-sandwich-82552
11/29/2023, 7:26 PMpulumi import
is not working anymore with yaml
runtime. The same resource.json works fine with python but with yaml seems to return an empty output. If someone can reproduce it on their end, happy to open a issue w/ pulumi 🙂broad-island-71889
11/29/2023, 8:10 PMparent
property is defined properly there.
I would really appreciate any help from Pulumi team with this issue.
Thank you!
Pulumi bin version is 3.94.0
pulumi py package version is 3.91.1broad-doctor-18421
11/29/2023, 10:02 PMhosted_zone = aws.route53.Zone(
"myHostedZone",
name="testzone.testing", # replace with your domain name
)
pulumi.export("zone_id", hosted_zone.id)
Example, not working:
# a component class with this function, called from the constructor.
def create_private_zone(
self: pulumi.ComponentResource,
args: Route53ZoneArgs,
opts: pulumi.ResourceOptions,
):
zone = aws.route53.Zone(
f"{args.domain_name}",
name=args.domain_name,
comment=args.comment,
vpcs=[
aws.route53.ZoneVpcArgs(vpc_id=args.vpc_id, vpc_region=args.vpc_region)
],
force_destroy=args.force_destroy,
tags=args.tags,
opts=opts,
)
self.zone
and the usage:
publicAwsDomain = Route53Zone(
"public-zone",
Route53ZoneArgs(
domain_name="aws.test.com",
),
)
pulumi.export(
Outputs.PUBLIC_ZONE_ID, publicAwsDomain.zone.zone_id
)
Gives me this error:
File "/Users/bswift/src/client/xxx/datacenter_migration/account/venv/lib/python3.11/site-packages/pulumi/runtime/stack.py", line 242, in <dictcomp>
key: massage(attr[key], seen) for key in attr if not key.startswith("_")
^^^^^^^^^^^^^^
AttributeError: 'Outputs' object has no attribute 'startswith'
ancient-oil-47691
11/30/2023, 4:26 AMbright-smartphone-89859
11/30/2023, 7:18 AMadamant-father-26302
11/30/2023, 3:15 PMpulumi.AssetOrArchiveInput
function that can take a pulumi.StringOutput
?helpful-continent-37250
11/30/2023, 6:27 PMwhite-magician-15221
11/30/2023, 7:51 PMwhite-magician-15221
11/30/2023, 7:57 PMwhite-magician-15221
11/30/2023, 7:57 PMchilly-magazine-6129
11/30/2023, 10:57 PMmelodic-receptionist-43101
12/01/2023, 4:55 AMsilly-fireman-6851
12/01/2023, 8:58 AMpulumi new <https://github.com/pulumi/aws-python>
How do we do the same using Python SDK
from pulumi import automation as auto
# how do we pass the git url of template here ???
auto.create_or_select_stack()
stale-answer-34162
12/01/2023, 4:40 PMpulumi:pulumi:Stack (dev-eks-dev-charts-system):
panic: interface conversion: interface {} is map[interface {}]interface {}, not map[string]interface {}
goroutine 572 [running]:
github.com/pulumi/pulumi-kubernetes/provider/v4/pkg/provider.excludeNulls({0x104776c00?, 0x14004c2bad0?})
/home/runner/work/pulumi-kubernetes/pulumi-kubernetes/provider/pkg/provider/helm_release.go:1402 +0x2d0
github.com/pulumi/pulumi-kubernetes/provider/v4/pkg/provider.excludeNulls({0x104774c80?, 0x14004c2a4b0?})
/home/runner/work/pulumi-kubernetes/pulumi-kubernetes/provider/pkg/provider/helm_release.go:1412 +0x214
github.com/pulumi/pulumi-kubernetes/provider/v4/pkg/provider.mergeMaps(0x14004c2a4b0, 0x14004c2a4e0?, 0x0)
/home/runner/work/pulumi-kubernetes/pulumi-kubernetes/provider/pkg/provider/helm_release.go:1389 +0xe4
github.com/pulumi/pulumi-kubernetes/provider/v4/pkg/provider.decodeRelease(0x1040a1e51?, {0x14004deb580, 0x80})
/home/runner/work/pulumi-kubernetes/pulumi-kubernetes/provider/pkg/provider/helm_release.go:316 +0x338
github.com/pulumi/pulumi-kubernetes/provider/v4/pkg/provider.(*helmReleaseProvider).Check(0x14001789880, {0x104b9d1b0, 0x14004bed920}, 0x140037ee7e0)
/home/runner/work/pulumi-kubernetes/pulumi-kubernetes/provider/pkg/provider/helm_release.go:359 +0x3ac
github.com/pulumi/pulumi-kubernetes/provider/v4/pkg/provider.(*kubeProvider).Check(0x14000461980, {0x104b9d1b0, 0x14004bed920}, 0x140037ee7e0)
/home/runner/work/pulumi-kubernetes/pulumi-kubernetes/provider/pkg/provider/provider.go:1295 +0xfb8
github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Check_Handler.func1({0x104b9d1b0, 0x14004bed920}, {0x1049a5940?, 0x140037ee7e0})
/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.92.0/proto/go/provider_grpc.pb.go:557 +0x74
github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x104b9d1b0, 0x14004bbf2f0}, {0x1049a5940, 0x140037ee7e0}, 0x1400e5093e0, 0x140021e5890)
/home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x2e8
github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Check_Handler({0x104afe0c0?, 0x14000461980}, {0x104b9d1b0, 0x14004bbf2f0}, 0x140040c2f50, 0x14000808500)
/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.92.0/proto/go/provider_grpc.pb.go:559 +0x12c
google.golang.org/grpc.(*Server).processUnaryRPC(0x140002925a0, {0x104bab3e0, 0x140002761a0}, 0x14004bcaa20, 0x1400081da40, 0x106389830, 0x0)
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.58.2/server.go:1376 +0xb44
google.golang.org/grpc.(*Server).handleStream(0x140002925a0, {0x104bab3e0, 0x140002761a0}, 0x14004bcaa20, 0x0)
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.58.2/server.go:1753 +0x7c4
google.golang.org/grpc.(*Server).serveStreams.func1.1()
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.58.2/server.go:998 +0x84
created by google.golang.org/grpc.(*Server).serveStreams.func1 in goroutine 100
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.58.2/server.go:996 +0x154
kubernetes:helm.sh/v3:Release (cert-manager):
error: error reading from server: EOF
quaint-river-59320
12/01/2023, 7:29 PMrough-sunset-94098
12/02/2023, 1:34 AMcreate_before_destroy=true
in the lifecycle section on deployment resource, it will get rid of that problem. This solution works on terraform side but I didn't see any such option on the Pulumi side to set the lifecycle section on aws._*apigateway*_._*Deployment*_
resource.
BadRequestException: Active stages pointing to this deployment must be moved or deleted
adamant-father-26302
12/02/2023, 9:06 AMcloudformation.NewStack
and every time i run pulumi up, it wants to update a parameter from [secret] => [secret]
even though the secret doesnt change.. is this a bug?