broad-airline-38127
06/21/2018, 8:36 AMbroad-airline-38127
06/21/2018, 8:37 AMbig-piano-35669
06/21/2018, 2:57 PMcloud.Service
in a Swarm cluster, or you actually want to use Pulumi, like you might Terraform, to provision a Swarm cluster?stocky-spoon-28903
06/21/2018, 5:36 PMpulumi stack output
as JSON?stocky-spoon-28903
06/21/2018, 5:36 PMwhite-balloon-205
06/21/2018, 5:40 PMpulumi stack output myobject
), but we don't currently have a way to return the full set of stack outputs as JSON.
This is related to https://github.com/pulumi/pulumi/issues/496, but adding JSON support for just pulumi stack output
is probably high enough value that we could do it before biting off the full feature of JSON support for all CLI verbs. Feel free to open a new issue on this.average-lifeguard-69220
06/21/2018, 6:10 PMwhite-balloon-205
06/21/2018, 6:14 PMnew awsinfra.Network
. If you want to do it yourself, you can look at the implementation of that which creates each of the necessary resources (VPC, Subnet, RouteTable, etc) .
An example using this library:
https://github.com/pulumi/pulumi-aws-infra/blob/master/nodejs/aws-infra/examples/cluster/index.ts#L23
The implementation if you want to roll it yourself:
https://github.com/pulumi/pulumi-aws-infra/blob/master/nodejs/aws-infra/network.ts#L163white-balloon-205
06/21/2018, 6:15 PMstocky-spoon-28903
06/21/2018, 6:16 PMstocky-spoon-28903
06/21/2018, 6:17 PMmicroscopic-florist-22719
06/21/2018, 6:27 PM"use strict";
const pulumi = require("@pulumi/pulumi");
const aws = require("@pulumi/aws");
const awsinfra = require("@pulumi/aws-infra");
const network = new awsinfra.Network("my-vpc", {
numberOfAvailabilityZones: 1,
usePrivateSubnets: true,
});
const instance = new aws.ec2.Instance("my-ec2-instance", {
ami: "ami-7172b611",
instanceType: "t2.micro",
vpcSecurityGroupIds: network.securityGroups,
subnetId: network.subnetIds[0],
});
microscopic-florist-22719
06/21/2018, 6:28 PMawsinfra.Network
class are here: https://pulumi.io/reference/pkg/nodejs/@pulumi/aws-infra/average-lifeguard-69220
06/21/2018, 6:32 PMstocky-spoon-28903
06/21/2018, 8:49 PMfuture-art-687
06/21/2018, 8:54 PMable-eye-75940
06/21/2018, 9:35 PMHuh, slightly unexpected to find that there is a name uniqueness requirement for stacks, outside of the scope of an individual project@stocky-spoon-28903 We went back and forth on this. The part that gets in the way is that the project name is defined in your code, in the YAML file. If it were a part of the stack identity, that would mean that project renaming would be difficult. So, the recommended practice is to prefix the stack name with the project name.
stocky-spoon-28903
06/21/2018, 10:34 PMdev
-staging
-prod
like promotion), or for logical components of infrastructure which may be managed by different teams in a larger org?colossal-beach-47527
06/21/2018, 10:39 PMstocky-spoon-28903
06/21/2018, 10:42 PMstocky-spoon-28903
06/21/2018, 10:42 PMstocky-spoon-28903
06/21/2018, 10:48 PMstocky-spoon-28903
06/21/2018, 10:49 PM~
❯ go get <http://github.com/pulumi/pulumi|github.com/pulumi/pulumi>
package <http://github.com/moby/moby/api/types/time|github.com/moby/moby/api/types/time>: code in directory /Users/James/Code/go/src/github.com/moby/moby/api/types/time expects import "<http://github.com/docker/docker/api/types/time|github.com/docker/docker/api/types/time>"
stocky-spoon-28903
06/21/2018, 10:49 PMpowerful-whale-8767
06/21/2018, 10:55 PMdocker/docker
, e.g.: https://github.com/moby/moby/blob/master/api/types/time/duration_convert.go#L1stocky-spoon-28903
06/21/2018, 10:57 PMstocky-spoon-28903
06/21/2018, 10:58 PMvendor/
isn’t committed at allstocky-spoon-28903
06/21/2018, 11:00 PMgo get
was just pulling that down rather than the versions specified in Gopkg.toml
(it’s been a long time since I’ve seen a repo without vendor/ committed though so my memory may not be correct on this)stocky-spoon-28903
06/21/2018, 11:00 PMpowerful-whale-8767
06/21/2018, 11:00 PMmoby/moby
because, well, that's where it is...powerful-whale-8767
06/21/2018, 11:00 PMmoby/moby
because, well, that's where it is...