thankful-gpu-3329
11/01/2022, 8:56 PMexamples
in the repository. It has made getting started with everything a little frustrating.thankful-gpu-3329
11/01/2022, 9:05 PMpulumi up
using TS from the docs as well:
https://joeysharesthings.com/wHmxRMcareful-book-62830
11/06/2022, 5:51 PMfast-island-38778
11/11/2022, 5:54 PMawsx.ecs.FargateTaskDefinitionArgs
type, I can see the runtimePlatform
option being included in the GitHub repo but not in the npm
package. Is this a mistake?fast-island-38778
11/11/2022, 5:55 PM@pulumi/awsx
version 0.40.1
fast-island-38778
11/11/2022, 5:56 PMruntimePlatform
defined here, https://github.com/pulumi/pulumi-awsx/blob/c7a75bc774ac65aa613880fdcd7c817455d896ee/sdk/nodejs/ecs/fargateTaskDefinition.ts#L161prehistoric-toddler-40668
11/13/2022, 11:49 AMimport { ec2 } from "@pulumi/awsx";
class Vpc{
vpc = new ec2.Vpc("ververica-vpc", {
cidrBlock: "172.17.0.0/16",
numberOfAvailabilityZones: 2,
subnets: [
{ type: "public" }, { type: "private" }
],
}
);
}
export const ververica_vpc = new Vpc();
eks:
export class EKS{
eks_role = new aws.iam.Role("eks-iam-role", {
assumeRolePolicy: JSON.stringify({
Version: "2012-10-17",
Statement: [{
Action: "sts:AssumeRole",
Effect: "Allow",
Sid: "",
Principal: {
Service: "<http://ec2.amazonaws.com|ec2.amazonaws.com>",
},
}],
}),
managedPolicyArns: [
'arn:aws:iam::aws:policy/AmazonEKSServicePolicy',
'arn:aws:iam::aws:policy/AmazonEKSClusterPolicy'
]
}
);
ververica_eks = new aws.eks.Cluster("ververica_cluster", {
roleArn: this.eks_role.arn,
vpcConfig: {
subnetIds: [
vpc.ververica_vpc.vpc.privateSubnetIds.then((id) =>
)
],
},
}
);
}
billowy-horse-79629
11/14/2022, 1:54 PMinput<input<>>
kind of attribute ?damp-painting-47843
11/14/2022, 5:54 PMdamp-painting-47843
11/14/2022, 8:41 PMdamp-painting-47843
11/14/2022, 10:21 PMdamp-painting-47843
11/16/2022, 12:13 AMdamp-painting-47843
11/16/2022, 4:41 PMbitter-salesclerk-37287
11/16/2022, 8:43 PMdamp-painting-47843
11/16/2022, 10:25 PMdamp-painting-47843
11/17/2022, 4:06 PMapply
and interpolate
and either way it still prints out the OutputImpl
. Any thoughts?damp-painting-47843
11/17/2022, 4:06 PMup
not just the preview phase.alert-gpu-18471
11/21/2022, 2:38 PMpulumi.Output
has been bugging me. The function works if I put raw string in the code, but, not with pulumi.interpolate
.
I will provide some code in comment for the context!
Thank you in advance. 🙇♂️🏻victorious-church-57397
11/21/2022, 7:59 PMTypeError: Cannot read properties of undefined (reading 'getPackage')
and can't seem to track it down. I haven't added anything from another package/library and not bumped any versions. anyone got any ideas? i've inspected the versions of the providers i have installed, output in threadelegant-crayon-4967
11/21/2022, 8:14 PM.apply
of another resource to ensure you get the proper string
type you want, where if you didn’t, you’d most likely get an error of undefined. I do this all the time, but on a net new stack, pulumi won’t show the resources to be created inside that .apply
which makes sense to me, but also very hard as some of these resources I want to import before my pulumi up and can’t verify they are importedhallowed-printer-89159
11/23/2022, 8:38 PMrough-jordan-15935
11/24/2022, 4:59 AMprehistoric-laptop-47240
11/24/2022, 4:12 PMinclude
. It's working fine with npx tsc -p tsconfig.json
but with Pulumi it says "Cannot find name"... for all my types.damp-painting-47843
11/28/2022, 6:27 PMSecrets Manager Secret "my-secret-name" Version "AWSCURRENT" not found
prehistoric-laptop-47240
11/29/2022, 10:26 AMpulumi up
when everything else is ready to have it working.
I'm using it exactly like in the examples. Any idea ? :s. All I saw is that if i'm pulling an image, everythings seems to work fine...damp-painting-47843
11/29/2022, 3:57 PMdamp-painting-47843
11/29/2022, 9:39 PMstraight-energy-17452
11/30/2022, 9:25 AMlet megabucket: typeof import("./megabucket");
before(async () => {
megabucket = await import("./megabucket");
});
Is it really necessary? It’s a lot of ceremony and for my a component resource a regular top-level import works for me. This incantation only seems to be needed if people define resources not wrapped by a function or by a component resource?better-eve-93881
11/30/2022, 10:20 AMcalm-iron-40008
12/01/2022, 4:31 PMimage:<http://ghcr.io/organization/microservice:${RELEASE_ID}|ghcr.io/organization/microservice:${RELEASE_ID}>
called by a ConfigFile or ConfigGroup const
via TypeScript?calm-iron-40008
12/01/2022, 4:31 PMimage:<http://ghcr.io/organization/microservice:${RELEASE_ID}|ghcr.io/organization/microservice:${RELEASE_ID}>
called by a ConfigFile or ConfigGroup const
via TypeScript?worried-rain-74420
12/01/2022, 5:37 PMInterpolate
is the function you probably want.calm-iron-40008
12/01/2022, 5:56 PMnew k8s.yaml.ConfigFile(…
and its associated parameters. it seems Pulumi drops into an isolated virtual terminal session using my local kubectl
executable and its current ‘kube’ context.
The YAML that is executed, is executed as a raw YAML file. The Pulumi TypeScript environment, variables, and declarations (e.g. interpolation, dependsOn, etc) don’t seem to be valid in the ConfigFile
and ConfigGroup
custom resource…
I can write an edit for each of the cluster deployments, but that means I still need to revisit the source YAML files to ensure that I maintain operational version integrity.. I’d like to do this in a single step, even if it is initially more difficult.
Does that make any sense?worried-rain-74420
12/01/2022, 6:14 PMBy default, Pulumi will use a local kubeconfig if available, or one can be passed as a provider argument in the request.
With theFrom https://www.pulumi.com/registry/packages/kubernetes/installation-configuration/ So if you don't want to use kubectl, you can pass in a Kubernetesavailable, Pulumi communicates with the API Server using the official Kubernetes client-go library, just likekubeconfig
does.kubectl
provider
as a resource option and the HTTP API will be used instead.
IIRC ConfigFile is for raw YAML, and you can create instances of Deployment
, Service
, etc. if you need dynamic values.
If you really need to use ConfigFile with dynamic values, you can get a little crazy: in TypeScript, you can read in your YAML, parse it, template in your values, and write it out to disk again in a temporary file. Then, point your ConfigFile
resource to the temp file.calm-iron-40008
12/01/2022, 7:41 PMPulumi up
will revert… Now, granted… One should never do an up on a PROD environment… BUT. elimination of potential is also a goal…// services
const Services = new k8s.yaml.ConfigGroup("platform-service", {
files: [ path.join("../common/yaml", "svc-*.yaml") ],
},{dependsOn: my_SecretCreds}
);
It doesn’t even honor the dependsOn
clause.
I’m just a lowly DevOps guy, trying to get our group’s code running polycloud. I’m just hoping for an undocumented feature or a workaround.
Should I just pull this out into its own project:stack and do it as YAML? The goal is to be portable across AWS, GCS, and DigitalOcean… where the client base is, essentially.