billions-greece-72352
09/07/2021, 7:10 AMconst { isLeft } = await import("fp-ts/lib/Either");
Which is `tsc`'d into:
const { isLeft } = await Promise.resolve().then(() => __importStar(require("fp-ts/lib/Either")));
Where __importStar
is defined at the top most level of the file.
After function serialisation, it appears that the __importStar
definition is not retained (i.e. it hasn't been captured?) so the lambda fails during invocation.
When I switch importHelpers
on in tsconfig.json
, it does work. The tsconfig.json from the aws-typescript template doesn't have this set.
So... can anyone shed light on the expected way to import those runtime dependencies?wooden-lifeguard-41446
09/07/2021, 12:41 PMvar managementGroup = new AzureNative.Management.ManagementGroup("managementGroup", new AzureNative.Management.ManagementGroupArgs
{
Details = new AzureNative.Management.Inputs.CreateManagementGroupDetailsArgs
{
Parent = new AzureNative.Management.Inputs.CreateParentGroupInfoArgs
{
Id = "/providers/Microsoft.Management/managementGroups/abb91b5c-16b1-4d24-96f6-9516b8daf6f9",
},
},
DisplayName = "group name",
GroupId = "groupd ID",
});
The docs said _All input properties are implicitly available as output properties ,_but it seems not. Can someone help me get this please?bland-smartphone-19451
09/08/2021, 3:25 AMbland-smartphone-19451
09/08/2021, 8:51 AMhallowed-teacher-48474
09/08/2021, 5:01 PMbland-smartphone-19451
09/09/2021, 8:02 AMconst serviceName = 'finance-center';
const vpc = new awsx.ec2.Vpc(`${serviceName}-vpc`, {
numberOfAvailabilityZones: 2,
numberOfNatGateways: 1,
});
const sg = new awsx.ec2.SecurityGroup("webserver-sg", {vpc});
sg.createIngressRule("https-access", {
location: {cidrBlocks: ["0.0.0.0/0"]},
ports: {protocol: "tcp", fromPort: 80},
description: "allow HTTP access from anywhere",
});
sg.createEgressRule("outbound-access", {
location: {cidrBlocks: ["0.0.0.0/0"]},
ports: {protocol: "tcp", fromPort: 0, toPort: 65535},
description: "allow outbound access to anywhere",
});
const listener = new awsx.elasticloadbalancingv2.NetworkListener(serviceName, {vpc: vpc, port: 80});
// Define the service, building and publishing our './app/Dockerfile', and using the load balancer.
new awsx.ecs.FargateService(serviceName, {
desiredCount: 2,
subnets: pulumi.output(vpc.publicSubnetIds),
securityGroups: [sg.id],
taskDefinitionArgs: {
containers: {
financeCenter: {
image: awsx.ecs.Image.fromPath(serviceName, './app'),
environment: [{
name: 'RUST_LOG',
value: 'finance_center=debug'
}, {
name: 'APP_ENVIRONMENT',
value: 'local'
}],
memory: 128,
portMappings: [listener],
},
},
},
});
bland-smartphone-19451
09/09/2021, 8:02 AMbroad-chef-99140
09/09/2021, 3:27 PMrefined-russia-81345
09/09/2021, 4:37 PMgifted-restaurant-7924
09/10/2021, 1:53 AMrefined-russia-81345
09/10/2021, 1:20 PMkubernetes:<http://helm.sh/v3:Chart|helm.sh/v3:Chart> ():
error: Preview failed: resource 'my-node-4' does not exist
and when
C:\Users\vPro>helm ls
*my-node-4* default 1 2021-09-10 11:51:36.3807357 +0100 +01 deployed node-15.2.26 14.17.6
ressources.json
{
"resources": [
{"id": "my-node-4",
"type": "kubernetes:helm.sh/v3:Chart"}]
}broad-kilobyte-43768
09/12/2021, 9:16 PMbrief-xylophone-82066
09/13/2021, 4:18 AMazure-native.recoveryservices.ProtectionPolicy
resource, where resourceGroupName
and vaultName
are available as inputs but not as outputs. Is this simply a limitation with azure’s API specs that Pulumi is wrapping?red-kangaroo-44125
09/13/2021, 12:48 PMcluster_name = pulumi.Output.all(clustername=eks_cluster.name) \
.apply(lambda args: f"{args['clustername']}")
print(cluster_name)
pulumi.export('cluster-name', eks_cluster.name)
pulumi.export('kubeconfig', utils.generate_kube_config(eks_cluster))
Hi: I am trying to write clustername and kubeconfig to a file, followed the Input and outputs doc for the same and wrote the above code, cluster is already created but when printing the variable I am getting.
pulumi:pulumi:Stack (aws-eks-eks-testing):
<pulumi.output.Output object at 0x7f6d4007d280>
brainy-church-78120
09/13/2021, 2:28 PMrefined-terabyte-65361
09/13/2021, 9:11 PMpulumi login <https://api.pulumi.com>
pulumi stack select --create dev
pulumi --stack dev up --diff --yes
deployment gets stuck in this state
+ pulumi:pulumi:Stack: (create)
i dont see any error when i enable verbose mode
I am not sure how pulumi console worksmysterious-piano-88140
09/14/2021, 7:34 PMexport const databaseResourceGroup = new ResourceGroup(
'resource-group-dev',
{
resourceGroupName: 'resource-group-dev',
location: 'germanywestcentral',
tags: {
project: 'test',
env: 'dev',
type: 'resourcegroup'
}
}
)
My problem is that in the second project the ResourceGroup is not linked no matter how (getResourceGroup, Import, StackReference) but is always recreated, which leads to a fail because it just already exists.
// const resourceGroup = await getResourceGroup({
// resourceGroupName: databaseResourceGroupName
// })
const resourceGroup = new ResourceGroup(
'resource-group-dev',
{
resourceGroupName: 'resource-group-dev',
location: 'germanywestcentral',
tags: {
project: 'test',
env: 'dev',
type: 'resourcegroup'
}
},
{
import: `/subscriptions/<subscription-id>/resourceGroups/<resourcegroupname>`
}
)
Do any of you here have an idea how I can link between resources without recreating them.
I would now expect a similar pattern as in the AWS CDK where I can access ARN with from methods.fast-grass-52071
09/15/2021, 4:24 PMimport pulumi_vsphere as vsphere
ModuleNotFoundError: No module named 'pulumi_vsphere'
future-photographer-26589
09/16/2021, 9:09 AMctx.Export
suppose I create a security group on aws and I exported the SG_ID
, I need to assign this SG to another SG so is there any way I can read this exported value?careful-television-82602
09/16/2021, 12:13 PMcareful-television-82602
09/16/2021, 12:15 PMcareful-television-82602
09/16/2021, 2:09 PMcareful-television-82602
09/16/2021, 3:53 PMbetter-zoo-17970
09/16/2021, 4:54 PMstraight-teacher-66836
09/17/2021, 11:13 AMmany-yak-61188
09/17/2021, 11:15 AMstring
within options
for logConfiguration
. Unlike the require
method which return the raw type the requireSecret
method returns an Output<string>
type.
I noticed a similar requirement for passing in environments
in handled by specifying a type of pulumi.Input<KeyValuePair[]>
where as LogConfigurations.options
has the type [key: string]: string;
Can I use an Output
type with LogConfigurations.options
?brainy-church-78120
09/17/2021, 3:21 PMwooden-receptionist-75654
09/20/2021, 5:16 PMs3
backend allows tagging the stacks? I’m getting an error on attempt: stack tags not supported in --local mode
dazzling-manchester-16947
09/21/2021, 6:55 AMcurved-account-29261
09/21/2021, 11:17 AMpulumi preview
I receive a few similar errors:
error: Running program 'E:\Git\Bandlab.Backend\pulumi' failed with an unhandled exception:
Error: Failed to retrieve the host keys: {"error":{"code":"MissingApiVersionParameter","message":"The api-version query parameter (?api-version=) is required for all requests."}}
at E:\Git\Bandlab.Backend\pulumi\node_modules\@pulumi\appservice\zMixins.ts:872:19
at Generator.next (<anonymous>)
at fulfilled (E:\Git\Bandlab.Backend\pulumi\node_modules\@pulumi\azure\appservice\zMixins.js:18:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
I am logged in on Azure using azure login
and on pulumi.
Any assistance is welcomecurved-account-29261
09/21/2021, 11:17 AMpulumi preview
I receive a few similar errors:
error: Running program 'E:\Git\Bandlab.Backend\pulumi' failed with an unhandled exception:
Error: Failed to retrieve the host keys: {"error":{"code":"MissingApiVersionParameter","message":"The api-version query parameter (?api-version=) is required for all requests."}}
at E:\Git\Bandlab.Backend\pulumi\node_modules\@pulumi\appservice\zMixins.ts:872:19
at Generator.next (<anonymous>)
at fulfilled (E:\Git\Bandlab.Backend\pulumi\node_modules\@pulumi\azure\appservice\zMixins.js:18:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
I am logged in on Azure using azure login
and on pulumi.
Any assistance is welcome