rhythmic-finland-36256
05/26/2020, 6:25 PMbest-lifeguard-91445
05/26/2020, 7:00 PMwonderful-dog-9045
05/26/2020, 8:10 PMpulumi stack select
in interactive mode from nodejs? Using childProcess.execSync("pulumi stack select", { stdio: "inherit" } )
doesn't work, because somehow pulumi automatically goes into non-interactive mode.quiet-cat-43765
05/26/2020, 9:01 PMquiet-cat-43765
05/26/2020, 9:02 PMquiet-cat-43765
05/26/2020, 9:02 PMpulumi up
as a function call inside python? For context, I am creating some infrastructure on the fly for a data pipeline inside airflow which is a written in python.best-lifeguard-91445
05/26/2020, 9:25 PMimportant-appointment-55126
05/26/2020, 10:02 PMfamous-jelly-72366
05/27/2020, 7:02 AMsilly-stone-79070
05/27/2020, 8:10 AMctx.Export
and finally to use it doing ctx.GetConfig
. This just seems like jumping through hoops though so surely there is a better way I don't know about? Cheersbillions-breakfast-36131
05/27/2020, 11:11 AMflat-insurance-25294
05/27/2020, 11:25 AMAWS.ECR
.
However our current way of deploying is the generic copy assets to S3 and would like to keep that.
What is the current best practice in this area.
Does pulumi have support for reading a docker image or mounting a container, and access files?
Or can we call or is there a way to call docker commands from pulimi, like docker cp
to copy files over to the host (the CI) and then just go through the general Pulimi route of moving assets over?
Granted that still needs to mount/create a container out of the image.flat-insurance-25294
05/27/2020, 11:27 AMconst container = new docker.Container("frontend", {
image: ???,
});
But https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/docker/#Container doesn’t indicate anything we can do.dazzling-sundown-39670
05/27/2020, 11:32 AMawsx.ec2.Vpc
, how can I create a aws.elasticache.SubnetGroup
based on the subnets in that VPC? I've tried some different things, code in thread:limited-carpenter-34991
05/27/2020, 11:35 AMmillions-furniture-75402
05/27/2020, 1:00 PM...
const parameterVpcId = config.require("parameterVpcId");
export const privateSubnetIds: [] = config.requireObject("privateSubnetIds");
export const publicSubnetIds: [] = config.requireObject("publicSubnetIds");
export const vpcId: pulumi.Output<string> = pulumi.output(aws.ssm.getParameter({
name: parameterVpcId,
})).value;
const vpc = awsx.ec2.Vpc.fromExistingIds(`${appName}-local-vpc`, {
vpcId,
privateSubnetIds,
publicSubnetIds,
});
...
`catmeme/application/develop-test`:
...
const stackDevelop = new pulumi.StackReference("catmeme/shared-infra-develop/develop");
const vpc = awsx.ec2.Vpc.fromExistingIds("bvt", {
vpcId: stackDevelop.getOutput("vpcId"),
// @ts-ignore
privateSubnetIds: stackDevelop.getOutput("privateSubnetIds") as pulumi.Output<string[]>,
// @ts-ignore
publicSubnetIds: stackDevelop.getOutput("publicSubnetIds") as pulumi.Output<string[]>,
});
...
I get an error:
error: Preview failed: resource 'vpc-03489fb5e3c04080d' does not exist
But the VPC with that ID does exist. For all intents and purposes, shared-infra declared the VPC the same way and there isn’t a problem. What am I missing?dazzling-sundown-39670
05/27/2020, 1:38 PMmillions-furniture-75402
05/27/2020, 1:39 PMmillions-furniture-75402
05/27/2020, 2:26 PM// has missing properties error when I try to use it
const alb = pulumi.output(<http://aws.lb|aws.lb>.getLoadBalancer({
// @ts-ignore
arn: stackSandbox.getOutput("albArn")
}));
// declares a new ALB
const alb = new <http://awsx.lb|awsx.lb>.ApplicationLoadBalancer("test-default-lb", {
// @ts-ignore
arn: stackSandbox.getOutput("albArn"),
subnets: stackSandbox.getOutput("publicSubnetIds").apply(v => v),
vpc
});
dazzling-sundown-39670
05/27/2020, 2:41 PM@pulumi/kubernetes/helm/v2
, how do I add another repo? Using helm I would run helm repo add jetstack <https://charts.jetstack.io>
for examplewide-journalist-154
05/27/2020, 3:22 PMpulumi up
I get this error:
Exception: invocation of aws:iam/getPolicyDocument:getPolicyDocument returned an error: grpc: error while marshaling: proto: repeated field Values has nil element
This is the code from a policy_document
that is causing the error:
"resources": [ds_key.arn.apply(lambda arn: f'{arn}')]
I've tried adding the depends_on
option to the policy_document
resource, but it didn't help.
opts=pulumi.ResourceOptions(depends_on=[ds_key])
This is one of several places in my pulumi code where I need to access the arn
of another resource to create a policy_document
. I used the apply
function as shown in this code for the key, and added the depends_on
option, but I haven't been able to get any of them to work. I've resorted to "build" functions that create arns
from resource names - a hack I'd like to get rid of and not something that works in the case of keys.
Any instructions/suggestions or sample python code you can share would be much appreciated - thanks!gifted-city-99717
05/27/2020, 4:19 PMconfig:
aws:region: us-east-2
tsdb:tags:
Name: tsdb-dev
Foo: bar
tsdb:instanceSize: t2.micro
millions-furniture-75402
05/27/2020, 7:31 PMpulumi stack rename organization/new-project-name/stack
but the proj-group-name in the pulumi app still shows the old name. Is this solveable?mammoth-night-22453
05/27/2020, 8:14 PMconfig:
proj:data:
nonProductionStart: 10.1.0.0
productionStart: 10.2.0.0
stacks:
- name: Sandbox
peerConnectionName: peerConnectionId
stackName: org/Sandbox/mono
I can indeed follow the docs and get a JsonElement first, then get the sub-element as a string using something like
var data = Configuration.GetObject<JsonElement>("data");
var stacksAsString = data.GetProperty("stacks");
But what I really am trying to do is something like:
var stacks = Configuration.GetObject<List<StackReferenceInfo>>("data.stacks");
But, this does not appear to work. Is there no way to achieve this without jumping through the JsonElement hoop?
I have reviewed https://www.pulumi.com/docs/intro/concepts/config/#structured-configuration and it shows the JsonElement method - perhaps that's the only way?important-appointment-55126
05/27/2020, 9:01 PMaverage-receptionist-65239
05/28/2020, 1:38 AMaverage-receptionist-65239
05/28/2020, 1:43 AMaverage-receptionist-65239
05/28/2020, 4:04 AMdazzling-sundown-39670
05/28/2020, 1:15 PMtime="2020-05-28T13:10:26Z" level=info msg="Assuming role: arn:aws:iam::503405380068:role/k8s-pulumi-instanceRole-role-9e5a01b"
time="2020-05-28T13:12:30Z" level=error msg="AccessDenied: User: arn:aws:sts::503405380068:assumed-role/k8s-pulumi-instanceRole-role-9e5a01b/i-0dcb94de93da90dae is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::503405380068:role/k8s-pulumi-instanceRole-role-9e5a01b\n\tstatus code: 403, request id: 33ba5c26-7b45-4234-a762-b2f1ac4d8a42"
I've put the relevant code here in a gist if you want to check it out: https://gist.github.com/benjick/7c096f5634b34f022adf81469d440d4a
Cheers!millions-furniture-75402
05/28/2020, 2:34 PM.env
file with an ECS task definition? It looks like environment
supports an array of key value objects, but nothing akin to --env-file
… should I just read in that file locally, and dynamically build the key values array?millions-furniture-75402
05/28/2020, 2:34 PM.env
file with an ECS task definition? It looks like environment
supports an array of key value objects, but nothing akin to --env-file
… should I just read in that file locally, and dynamically build the key values array?gentle-diamond-70147
05/28/2020, 4:57 PMmillions-furniture-75402
05/28/2020, 5:35 PM