early-intern-90238
01/03/2020, 10:43 PMearly-intern-90238
01/03/2020, 10:43 PMearly-intern-90238
01/03/2020, 10:55 PMwet-sunset-4939
01/04/2020, 1:56 AMbright-orange-69401
01/04/2020, 6:25 AMserverless
and pulumi
side by side
Serverless does a good job at providing code boilerplate and packaging functions but Pulumi far outclasses it when it comes to infrastructure provisioning.
What's the best way to make those two work together ?
Should I just add a "Managed By" tag to my resources depending on wether they were deployed by Serverless or Pulumi ?
How do I automatically import in my Pulumi stack resources that were created by Serverless ?
Is it better to not use Serverless's deployment features altogether ?flat-insurance-25294
01/04/2020, 3:55 PMflat-insurance-25294
01/04/2020, 10:18 PMpulumi up new-stack-123 <bunch of env variables>
flat-insurance-25294
01/04/2020, 10:27 PMpulumi.Output*<*string[]*>*
into a pulumi.Input*<*string*>[]*
?flat-insurance-25294
01/04/2020, 10:44 PMlet q = outputArray.apply((servers) => {
let output: pulumi.Output<string>[] = servers.map(s => pulumi.output(s))
return output
}
)
But not comfortable with it.flat-insurance-25294
01/04/2020, 10:44 PMflat-insurance-25294
01/05/2020, 12:11 AMget_or_create()
?
Say a few stacks depend on a resource, but if it doesn’t exist it can get them.
And other stacks can do the same, that way I don’t rely on running a specific stack first.bright-orange-69401
01/06/2020, 12:35 AMZone
which is global (ex: example.com) then I have Record
for each environment (ex: dev.example.com, etc.)
Should I create a core
stack for the Zone
and a dev
stack for my dev Record
?
If so, how do I indicate in my __main__.py
which resources should be deployed according to the stack that's currently selected ?
Is there a native mechanism or should I just hack about ?red-football-97286
01/06/2020, 4:22 PMpulumi stack init dev
as it says it already exists. What am I doing wrong?boundless-monkey-50243
01/06/2020, 4:54 PM@pulumi/awsx
? I can't find a "getCluster" method or anything. getDefault
helpfully wants to create one for me, but we've already got existing infrastructure.billions-glass-17089
01/06/2020, 8:41 PMhandsome-truck-95168
01/06/2020, 8:58 PMpanic: fatal: An assertion has failed: Expected diff to not require deletion or replacement during Update of urn:pulumi:deploy-test::deploy::aws:ecs/service:Service::xxx
I replaced dependencies for the Service, could that be the problem?stocky-island-3676
01/08/2020, 11:11 AMbetter-actor-92669
01/08/2020, 11:48 AMbig-potato-91793
01/08/2020, 3:29 PMmillions-judge-24978
01/08/2020, 5:22 PM@pulumi/docker
buildAndPushImage()
(for example, a GIT_SHA), rather than the autogenerated tag that is created?prehistoric-account-60014
01/08/2020, 5:31 PMcareful-market-30508
01/08/2020, 10:10 PMcareful-market-30508
01/08/2020, 11:39 PMorange-ghost-99337
01/09/2020, 7:33 AMcold-coat-35200
01/09/2020, 10:42 AMflat-insurance-25294
01/09/2020, 12:15 PMlittle-energy-64187
01/09/2020, 12:59 PMquery-kubernetes
? like with a k8s.Provider egbright-orange-69401
01/09/2020, 1:29 PMpulumi-snowflake
provider, can someone give me some guidance here ? 🙂red-football-97286
01/09/2020, 4:37 PMapply
method with Python?
template = lambda Topic, Endpoint: { "AWSTemplateFormatVersion": "2010-09-09",
"Resources": {
"MySubscription": {
"Type": "AWS::SNS::Subscription",
"Properties": {
"Protocol": "email",
"Endpoint": Endpoint,
"TopicArn": Topic
},
}
}
}
sns_email = cloudformation.Stack(
"Cloudformation-email",
template_body = (template(sns_topic.arn, Endpoint))
)
incalculable-engineer-92975
01/09/2020, 7:08 PMI'm trying to use structured config w/pulumi 1.8.1 and not getting anywhere, I keep getting invalid JSON errors:
config:
incalculable-engineer-92975
01/09/2020, 7:08 PMI'm trying to use structured config w/pulumi 1.8.1 and not getting anywhere, I keep getting invalid JSON errors:
config:
acoustic-florist-12628
01/09/2020, 7:35 PMincalculable-engineer-92975
01/09/2020, 8:16 PMacoustic-florist-12628
01/09/2020, 8:26 PMconfig:
aws:region: us-east-1
configtest:app-names: |-
foo-app
configtest:repos:
- name: "root"
account: "xxxxx"
untaggedExpireDays: 7
mutableTags: true
trustRelationships: [ "xxxxx", "xxxxx", "xxxxx", "xxxxx", "xxxxx" ]
- name: "dev"
account: "xxxxx"
untaggedExpireDays: 14
mutableTags: true
trustRelationships: [ "xxxxx", "xxxxx", "xxxxx", "xxxxx", "xxxxx" ]
index.ts:
import * as pulumi from "@pulumi/pulumi";
interface Repo {
name: string,
account: string,
untaggedExpireDays: number,
mutableTags: boolean,
trustRelationships: string[]
}
const config = new pulumi.Config();
const objects = config.requireObject<Repo[]>("repos");
console.log(objects);
incalculable-engineer-92975
01/09/2020, 10:01 PM