curved-pharmacist-41509
09/06/2021, 7:55 AMuseUnknownInCatchVariables
option not existing in 3.7. We also can’t just alias our errors as any for now because TypeScript 3.7 errors with Catch clause variable cannot have a type annotation.
Any plans to upgrade typescript, or just use the version installed in the projectbland-byte-34481
09/07/2021, 4:36 PMlively-crowd-44886
09/07/2021, 11:38 PMthousands-area-40147
09/09/2021, 9:06 AMResource A
no matter what, but Resource B
might be omitted for a stack. If Resource B
is provisioned however, it will depend on Resource A
, but also changes will need to happen to Resource A
after creating Resource B
. As far as I can tell, there's no modify
method or similar for resources that have already been created, or am I missing something?proud-pizza-80589
09/14/2021, 9:24 AMError [ERR_REQUIRE_ESM]: require() of ES Module <…>/node_modules/node-fetch/src/index.js from <…>/node_modules/@pulumi/azure/eventgrid/zMixins.js not supported.
Latest node 16, worked a while agofresh-honey-15888
09/14/2021, 4:42 PMeval
trick works in the REPL but fails in Pulumi. I can cut-and-paste the error, but first wanted to make sure this wasn't a terrible idea. FWIW, this is just a personal setup, so I'm not super worried about how robust this is.mysterious-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.square-car-84996
09/16/2021, 4:14 AMindex.ts
doesn't turn into a 10,000 line beast.
I can't seem to find any examples where a project/stack isn't just a single index.ts file.bumpy-laptop-30846
09/16/2021, 12:32 PMlittle-whale-73288
09/21/2021, 9:35 AMpulumi.all
on an input of type interface, that has fields of type pulumi.Input<string>
, where I want to use the string
value?refined-terabyte-65361
09/21/2021, 7:37 PMconst domainName = "example";
const example = new aws.elasticsearch.Domain(domainName, {
clusterConfig: {
instanceType: "r4.large.elasticsearch",
},
elasticsearchVersion: "7.10",
ebsOptions: {
ebsEnabled: true,
volumeSize: 10,
},
tags: {
Domain: "TestDomain",
},
});
output:
example-03ef750
Expecting
example
refined-terabyte-65361
09/21/2021, 11:26 PMrefined-terabyte-65361
09/22/2021, 11:39 PMimport * as fs from "fs";
how to fix this ?
Thanksloud-bear-51491
09/23/2021, 3:23 PMpg_stat_statements.track ALL
shared_preload_libraries pg_stat_statements
track_activity_query_size 2048
due to lack of documentation i am not sure how i can achieve that..
can someone help me with this my code is below
export const paramGroupPGStatStatement = new aws.rds.ParameterGroup("paramGroupPGStatStatement",
{
family: "postgres12",
description: "Enabling pg_stat_statements"
}
);
better-baker-47643
09/23/2021, 8:54 PMbetter-baker-47643
09/23/2021, 8:55 PMbetter-baker-47643
09/23/2021, 8:55 PMmany-salesmen-89069
09/24/2021, 4:11 PMerror: Error serializing '() => provider': index.js(28,47)
'() => provider': index.js(28,47): captured
variable 'provider' which indirectly referenced
function 'S3UploadResourceProvider': s3Upload.ts(77,15): which referenced
function 'create': s3Upload.ts(138,10): which referenced
function 'uploadDirectoryToS3': s3Upload.ts(58,28): which referenced
function 'getFiles': s3Upload.ts(28,17): which captured
variable 'promises_1' which indirectly referenced
function 'readdir': which referenced
function 'getOptions': which captured
'ERR_INVALID_ARG_TYPE', a function defined at
function 'NodeError': which referenced
function 'isErrorStackTraceLimitWritable': which captured
'ObjectGetOwnPropertyDescriptor', a function defined at
function 'getOwnPropertyDescriptor': which could not be serialized because
it was a native code function.
Function code:
function getOwnPropertyDescriptor() { [native code] }
Would appreciate any ideas on how to work around this 🙂little-whale-73288
09/27/2021, 9:05 AM.apply
callbacks?billions-xylophone-85957
09/30/2021, 5:58 PM@pulumi/pulumi
with your yarns and npms? I just tried to upgrade 3.10 -> 3.13.2 and it somehow broke runtime.registerStackTransformation
so I'm wondering if there is a non-obvious way to do somost-lighter-95902
10/01/2021, 4:12 AMlemon-monkey-228
10/01/2021, 2:36 PMlemon-monkey-228
10/01/2021, 2:36 PMprojects/{a,b,c}
lemon-monkey-228
10/01/2021, 2:38 PMlemon-monkey-228
10/01/2021, 2:38 PMlemon-monkey-228
10/01/2021, 2:38 PMextraConfigs: ["../_shared/config.yaml"]
to Pulumi.yaml
proud-pizza-80589
10/03/2021, 12:08 PMloud-bear-51491
10/04/2021, 3:46 PMconst accountDev = new aws.organizations.Account( "dev", {
name: "dev",
email: "<mailto:xxxx@xxx.com|xxxx@xxx.com>",
parentId: infrastructure.id,
roleName: "admin",
} );
export const accountDevArn = accountDev.arn;
export const accountIdDev = pulumi.output(accountDev).id;
This works all good and i am exporting the arn and account id.
In another file i am using the accountIdDev to create a policy for a user to assume role and use admin role to perform operations..
import { accountIdDev } from "./accounts"
const policy = new aws.iam.Policy( "devAssumePolicy", {
path: "/",
name: "devAssumePolicy",
description: "assume policy for dev accounts created",
policy: JSON.stringify( {
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"sts:AssumeRole"
],
"Effect": "Allow",
"Resource": [
"arn:aws:iam::"+accountIdDev+":role/admin"
]
}
]
} ),
} );
const attachPolicyInfra = new aws.iam.UserPolicyAttachment( "attachPolicyInfra", {
user: "Infra-accounts-ci",
policyArn: policy.arn,
} );
However i am struggling to get the accountIdDev and its giving malformed policy.. Can some help in telling what am i doing wrong here..
Thanks!refined-terabyte-65361
10/04/2021, 10:07 PMError waiting for updating GKE node pool version: timeout while waiting for state to become 'DONE' (last state: 'RUNNING', timeout: 20m0s)
dry-football-2639
10/05/2021, 12:49 PMasync/await
operations inside the ComponentResource constructor (like resource getters)? If I can't do await
in the constructor, can I ever be sure that Pulumi will respect the dependency order (that the resources I pass as dependencies will be properly awaited before constructing the resource)?
class DelegatedPublicDnsZone extends pulumi.ComponentResource {
public output: DnsZone
constructor(
name: string,
args: DelegatedPublicDnsZoneArgs,
opts: pulumi.ComponentResourceOptions = {}
) {
super('dixa:iac:DnsZone', name, {}, opts)
const { zone, getConventionName } = args
if (zone.id) {
const r53Zone = await aws.route53.getZone({ <--- await cannon be used in constructor
zoneId: zone.id,
})
this.output = {
id: pulumi.output(r53Zone.id),
domainName: pulumi.output(r53Zone.name),
}
}