powerful-london-34081
06/04/2019, 12:17 PMstocky-spoon-28903
06/04/2019, 12:17 PMglamorous-manchester-77008
06/04/2019, 12:17 PMstocky-spoon-28903
06/04/2019, 12:18 PMstocky-spoon-28903
06/04/2019, 12:18 PMpowerful-london-34081
06/04/2019, 12:20 PMstocky-spoon-28903
06/04/2019, 12:21 PMpowerful-london-34081
06/04/2019, 12:27 PMpowerful-london-34081
06/04/2019, 12:29 PMwitty-alarm-17249
06/04/2019, 12:30 PMwitty-alarm-17249
06/04/2019, 12:31 PMwitty-alarm-17249
06/04/2019, 12:32 PMwitty-alarm-17249
06/04/2019, 12:33 PMwitty-alarm-17249
06/04/2019, 12:34 PMstocky-spoon-28903
06/04/2019, 12:36 PMazure.compute.VirtualMachine
resource?witty-alarm-17249
06/04/2019, 12:36 PMwitty-alarm-17249
06/04/2019, 12:38 PMpowerful-london-34081
06/04/2019, 12:47 PMstocky-spoon-28903
06/04/2019, 12:48 PMstocky-spoon-28903
06/04/2019, 12:49 PMadventurous-jordan-10043
06/04/2019, 4:22 PMPULUMI_TEST_MODE
work with a local stack ?handsome-actor-1155
06/04/2019, 6:27 PMconst kafkaBucket = new aws.s3.Bucket("stream-demo-kafka-bucket");
export const bucketName = kafkaBucket.bucket;
....
#newProject
const infraStack = new pulumi.StackReference("fqdn-stackname");
const bucketName = infraStack.getOutput("bucketName");
In this case, bucketName is of type Output<any>
and I want to turn it into a string to use in a K8s ReplicaSet deployment.
I’ve tried:
const bucketName = infraStack.getOutput("bucketName").apply(bucket => bucket);
but that is still type Output<any>
The closest I’ve gotten is setting the parameter type of my ReplicaSet function to type Output<any>
then when using it in my config, I do
... }, {
name: "S3_BUCKET_NAME",
value: pulumi.interpolate `${bucketName}`
}...
Pulumi actually renders this as an update (I previously hardcoded the string) shown as:
~ value: "steam-demo-kafka-bucket-339079d" => "stream-demo-kafka-bucket-339079d"
I’m assuming that is really the same value?
Is there a better way of getting the output?big-knife-4134
06/04/2019, 6:50 PMconst region = pulumi.output(aws.getRegion())
const policy = {
Version: '2012-10-17',
Statement: [{
Action: [
'logs:*'
],
Effect: 'Allow',
Resource: [
pulumi.interpolate`arn:aws:logs:${region.name}:*:*`
]
}]
}
export const cloudwatchLogsPolicy = new aws.iam.Policy('cloudwatchLogsPolicy', {
policy: JSON.stringify(policy)
})
@handsome-actor-1155 in the same vein, albeit with intra-stack dependencies, I am finding out using an output with interpolate (or apply) doesn’t work with JSON.stringify. Probably different from your problem, but I just came across this issue and saw your post.
From my reading of the docs, the way you’re defining it appears to be the cleanest way. Seems to be some gotchas with pulumi.interpolate that I’m not seeing?average-dream-51210
06/04/2019, 8:15 PMquaint-queen-45003
06/04/2019, 8:32 PMautoScalingGroupTags
to my nodegroups where the key of a tag has a string substitution but i'm hitting a yaml formatting error. Code sample in threadaverage-dream-51210
06/04/2019, 8:54 PMtall-terabyte-36404
06/05/2019, 11:21 AMpulumi config set addressSpaces ['xx.xx.xx.xx/ab','yy.yy.yy.yy/cd']
?tall-terabyte-36404
06/05/2019, 11:22 AMproud-alarm-92546
06/05/2019, 3:25 PMawsx.ecs.FargateService
for taskdefinition changes (it's a create+wait+delete type process), these always seem to hit the 10m timeout for me. (node/ts)agreeable-refrigerator-25320
06/05/2019, 3:32 PM