salmon-account-74572
08/07/2019, 7:00 PMsalmon-account-74572
08/07/2019, 8:42 PMawsx.ec2.Vpc
, is there any way to ensure that a set of tags gets applied to the VPC, the subnets, and the route tables?fierce-cpu-94517
08/08/2019, 1:47 PMs3.ts
, ec2.ts
, etc.). Since resources have dependencies on each other I need to export some of them to be able to import in another module which ends up automatically add them to stack output, sometime unnecessarily. Is there a way to avoid that? Can I somehow choose what gets added to stack output?stocky-spoon-28903
08/08/2019, 2:13 PMjolly-egg-4894
08/08/2019, 6:55 PMinvalid or unknown key: tls13
on cloudflare.ZoneSettingsOverride
but it’s in the type definitions and shows up fine in GitHub
https://github.com/pulumi/pulumi-cloudflare/blob/master/sdk/nodejs/zoneSettingsOverride.ts#L170salmon-account-74572
08/09/2019, 9:16 PMawsx.ec2.Vpc
, is there any way to ensure that a set of tags gets applied to the VPC, the subnets, and the route tables? (BTW, this is necessary for the AWS cloud provider for Kubernetes to work properly.)bland-camera-22041
08/12/2019, 1:33 PMtry{
NatGw = aws.ec2.getNatGateway({
tags: {
Name: "RCS-CDR"
}
});
} catch(err){
// Craete a New NAT GW here ...
}
The error is not caught but it's thrown in my terminal after pulumi up. I'd like to catch the error and create a new resource if the gatway with the name RCS-CDR
does not existsome-doctor-62800
08/12/2019, 6:36 PMsalmon-account-74572
08/13/2019, 3:37 PM<http://kubernetes.io/cluster/<clustername>|kubernetes.io/cluster/<clustername>>
(the value is immaterial). I'd like to be able to define the <clustername>
value once in a variable, and then include it in the tags to be applied to resources. Any suggestions?nice-portugal-52925
08/16/2019, 2:17 AMconst appService = new k8s.core.v1.Service("django-service", {
metadata: { labels: appDeployment.metadata.labels },
spec: {
type: "NodePort",
ports: [{ port: 80, targetPort: appPort }],
selector: appDeployment.spec.template.metadata.labels,
},
}, { provider: cluster.provider });
const appIngress = new k8s.extensions.v1beta1.Ingress("django-load-balancer", {
spec: {
backend: {
serviceName: appService.metadata.name
,
servicePort: 80,
}
}
})
salmon-beard-79336
08/16/2019, 2:29 PMsalmon-beard-79336
08/16/2019, 2:49 PMsalmon-beard-79336
08/16/2019, 2:50 PMnew azure.core.TemplateDeployment
which messes with the order of some logicgentle-diamond-70147
08/16/2019, 2:51 PMbitter-dentist-28132
08/20/2019, 2:28 PMsalmon-account-74572
08/21/2019, 3:14 PMthankful-stone-92805
08/22/2019, 8:25 AMimport { holdingQueue } from './infrastructure/holding-queue'
holdingQueue.onEvent(
'lambda-dev-holding-queue-event',
async () => {
let pulumi = await import('@pulumi/pulumi')
let config = new pulumi.Config('apple-news-syndication')
console.log(config.require('masthead'))
},
{ batchSize: 1 },
)
and on the invoking of the function in AWS I'm getting the following error...
2019-08-22T08:15:19.797Z 516f4272-0d5e-5549-b81b-17aa5c18ea49
{
"errorMessage": "Cannot find module '@pulumi/pulumi'",
"errorType": "Error",
"stackTrace": [
"Function.Module._resolveFilename (module.js:547:15)",
"Function.Module._load (module.js:474:25)",
"Module.require (module.js:596:17)",
"require (internal/module.js:11:18)",
"Promise.resolve.then (/var/task/__index.js:30:53)",
"<anonymous>"
]
}
rough-plastic-90183
08/22/2019, 1:31 PMconst amassScanTask = new awsx.ecs.FargateTaskDefinition("amassScanTask", {
container: {
image: awsx.ecs.Image.fromPath("amassScanTask", "./app/amass"),
},
});
let engineEndpoint = new awsx.apigateway.API("dns-scan-api", {
routes: [{
path: "/dns",
method: "POST",
eventHandler: async (event) => {
const taskUUID = uuid();
let route = event.queryStringParameters!["target"]
await amassScanTask.run({
cluster: cluster,
overrides: {
containerOverrides: [{
environment: [
{ name: "TASK_ID", value: taskUUID },
{ name: "TARGET_DOMAIN", value: "<http://filo.ai|filo.ai>" },
{ name: "S3_BUCKET", value: `${scanResultsBucket.id}` },
],
}],
},
});
return {
statusCode: 200,
body: JSON.stringify({ route, taskUUID }),
};
},
}],
});
miniature-arm-21874
08/24/2019, 10:54 PMalert-monitor-93874
08/27/2019, 2:46 AMaws:profile
in the stack config; however when authenticating this way, I can't create and EKS cluster (gets error could not get token: NoCredentialProviders: no valid providers in chain. Deprecated
). So now I have to use the environment variables. The problem is I could easily have the wrong environment variables and deploy my stack to the wrong place.
Does anyone have any suggestions?alert-monitor-93874
08/27/2019, 9:09 AMconst subnetIds = [
...vpc.privateSubnetIds,
...vpc.publicSubnetIds,
];
const cluster = new eks.Cluster(name, {
deployDashboard: false,
enabledClusterLogTypes: ['api', 'audit', 'authenticator', 'controllerManager', 'scheduler'],
instanceRoles: [role],
skipDefaultNodeGroup: true,
subnetIds,
vpcId: vpc.id,
}, { dependsOn: [vpc] });
I then need to go back through all the subnets and add a tag <http://kubernetes.io/cluster/<cluster-name>:shared|kubernetes.io/cluster/<cluster-name>:shared>
, but I don't see how I can go back over the existing subnets to add the tags.
Does anyone know the correct way to do this?stocky-island-3676
09/04/2019, 2:04 PMproject
name from a gcp.Provider
?
I’m setting up a Typescript module for a GKE cluster where I set the gcp.Provider
externally to use it inside this module. To activate the new workloadIdentityConfig
, you need to set the identityNamespace: ${gcloudProject}.svc.id.goog
(currently).bitter-dentist-28132
09/04/2019, 7:02 PMOutput<string>
to Promise<string>
?stocky-island-3676
09/06/2019, 5:26 PMdata
values of a Kubernetes Secret.get()
such as (in pseudo-language):
type ServiceAccountSecretData = [
"ca.crt": string,
"namespace": string,
"token": string,
]
The “only” thing I’ve come up yet is with type SecretData = { [key: string]: string }
(see attached snippet).alert-monitor-93874
09/08/2019, 11:21 PMsrc/
directory, so can I make Pulumi start with src/index.ts
instead of index.ts
?wide-holiday-59376
09/09/2019, 2:05 PMstring
to InstanceType
?wide-holiday-59376
09/09/2019, 2:06 PMInstanceType
and I cannot figure out how to cast from one to the other.sparse-garage-28177
09/09/2019, 9:12 PMsparse-garage-28177
09/09/2019, 10:47 PMCluster.createNodeGroup()
under @pulumi/eks
. I am trying to pass in a securityGroup to use for the nodeGroup using nodeSecurityGroup
. However, it seems that the nodeGroup ends up with a new SG named {STACK_NAME}-nodeSecurityGroup-{randomID}
instead of the SG I pass in.. Ideas?
https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/eks/#ClusterNodeGroupOptions-nodeSecurityGroupworried-engineer-33884
09/10/2019, 3:54 PMType '{ StringEquals: { "s3:prefix": string[]; }; StringLike?: undefined; }' is not assignable to type 'Conditions'.
Property 'StringLike' is incompatible with index signature.
Type 'undefined' is not assignable to type 'ConditionArguments'.
I think this is because I have different keys in the condition for each statement: StringEquals
in one, StringLike
in the other. Is this a possible bug in the aws.iam.Conditions
interface?
https://github.com/pulumi/pulumi-aws/blob/master/sdk/nodejs/iam/documents.ts#L98
cc @dazzling-memory-8548