green-kilobyte-86931
12/05/2022, 11:21 AMearly-plastic-49211
12/05/2022, 5:01 PMapply
return value in recordsets.apply
?
const recordsets = privateEndpoint.customDnsConfigs.apply(x => {
if (typeof x === 'undefined') {
return [];
}
const result = [];
for (const dnsConfig of x) {
const name = dnsConfig.fqdn!.split('.')[0];
const ipAddresses = dnsConfig.ipAddresses!.map(x => {
return {ipv4Address: x};
});
result.push({
name: name,
ipAddresses: ipAddresses
});
}
return result;
});
recordsets.apply(rs => {
for (const x of rs) {
new network.PrivateRecordSet(`resource-pe-dns-${name}`, {
privateZoneName: zone.name,
recordType: "A",
relativeRecordSetName: x.name,
resourceGroupName: resourceGroup,
ttl: 300,
aRecords: x.ipAddresses
});
}
return true;
});
melodic-policeman-1516
12/05/2022, 8:31 PMabundant-computer-36798
12/06/2022, 5:15 AMawsx.elasticloadbalancingv2.NetworkListener
, but this no longer exists. I think it moved from awsx
to aws
at some point, to aws.elasticloadbalancingv2.Listener
. (Could someone verify / explain what falls under awsx
vs aws
?) And then I find out from the docs that now this is deprecated in favor of aws.lb.Listener
, so I should really be using that?
And to further the confusion, I learn that everything under @pulumi/aws
is known as classic, and if I want to stay modern I should actually be using @pulumi/aws-native
instead of any of the options above? Incredibly, although elasticloadbalancingv2
got renamed to lb
in classic, it's back to being called elasticloadbalancingv2
in native!proud-city-30820
12/06/2022, 9:13 AMstocky-ocean-5511
12/06/2022, 2:04 PMadamant-dress-73325
12/06/2022, 8:57 PMimportant-receptionist-30715
12/06/2022, 9:10 PMwet-fall-57893
12/06/2022, 11:10 PMconfluentcloud
provider from 0.1.0
to 1.x
pulumi up
operation with refresh
flag throws error below and I tried the approach suggested in this [thread](https://github.com/pulumi/pulumi-confluentcloud/pull/14) but unfortunately it didn’t work either as running refresh
gave me the same error.
panic: interface conversion: interface {} is nil, not string
Another method I’ve tired without refresh
while it didn’t emit the error, it wanted to replace the kafka topic which we cannot do as doing so would cause data loss in our prod environment.
So I am looking for the right way to upgrade the package.orange-airport-64592
12/07/2022, 3:45 AMaws:s3:Bucket (S3-IoT-stage-job-jar):
error: deleting urn:pulumi:stage-import-clone::stage_only::aws:s3/bucket:Bucket::S3-IoT-stage-job-jar: 1 error occurred:
* error deleting S3 Bucket (s3-iot-stage-job-jar-7e2c66a): IllegalLocationConstraintException: The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.
status code: 400, request id: PP0EY31SN0BDDB95, host id: 3Ssyi806zke54MGOBFSsvK3pAh11K3QQi6eQZPulDsBUnAeR5rigSvGkVen91PNduIU3QPgcXJY=
aws:s3:Bucket (S3-IoT-stage-onecloud-customer-files):
error: deleting urn:pulumi:stage-import-clone::stage_only::aws:s3/bucket:Bucket::S3-IoT-stage-onecloud-customer-files: 1 error occurred:
* error deleting S3 Bucket (s3-iot-stage-onecloud-customer-files-46fb81f): IllegalLocationConstraintException: The ap-east-1 location constraint is incompatible for the region specific endpoint this request was sent to.
status code: 400, request id: PP03BQD656QWS92Z, host id: nbOU5sqTDuOe0KhiwElXHBpg942got9OavgN0ASR7MbMQp8MbhUcjpoE3oSpeeYmZJNhxfyz5HQ=
But I create it by the same code.refined-carpet-42005
12/07/2022, 7:39 AMX
is updated I always want resource Y
to update as well (but not the inverse). I've tried to use depends_on
but it doesn't make a differenceproud-hospital-15953
12/07/2022, 10:45 AMglamorous-answer-86536
12/07/2022, 11:23 AMpulumi-awsx
to a newly created account using `assume_role`:
import pulumi
import pulumi_aws as aws
import pulumi_awsx as awsx
config: dict = {
"skip_credentials_validation": True,
"skip_metadata_api_check": False,
}
org_provider = aws.Provider("org-provider", **config)
account = aws.organizations.Account(
"account", email="<mailto:test@example.com|test@example.com>", role_name="account-role", opts=pulumi.ResourceOptions(provider=org_provider)
)
provider = aws.Provider(
"account-provider",
assume_role=aws.ProviderAssumeRoleArgs(
role_arn=pulumi.Output.concat("arn:aws:iam::", account.id, ":role/", account.role_name)
),
**config
)
vpc = awsx.ec2.Vpc("vpc", opts=pulumi.ResourceOptions(provider=provider))
This throws an error on pulumi preview
already:
Exception: Cannot read properties of undefined (reading 'length')
error: TypeError: Cannot read properties of undefined (reading 'length')
at Vpc.getDefaultAzs (/snapshot/awsx/bin/ec2/vpc.js:184:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at Vpc.initialize (/snapshot/awsx/bin/ec2/vpc.js:45:103)
My dependencies are:
pulumi==3.48.0
pulumi-aws==5.23.0
pulumi-awsx==1.0.0
When I comment out assume_role
it works. It looks like it cannot resolve tha availability zones. When I add availability_zone_names=["eu-central-1a", "eu-central-1b"]
to awsx.ec2.Vpc
explicitly, it works as well. Is that intended behaviour? Am I missing something?important-receptionist-30715
12/07/2022, 7:53 PMminiature-musician-31262
12/08/2022, 3:33 PMglamorous-kilobyte-25827
12/08/2022, 6:20 PMcold-motherboard-88215
12/09/2022, 9:43 AMbrainy-beach-36627
12/09/2022, 3:44 PMException: Invoke: Default provider for 'aws' disabled. 'aws:index/getPartition:getPartition' must use an explicit provider.
If I downgrade the lib to my previous version, it works againrapid-gpu-95788
12/09/2022, 3:46 PMalert-analyst-72112
12/10/2022, 7:12 AMalert-garage-57347
12/11/2022, 4:29 AMTARBALL_DEST=$(mktemp -t pulumi.tar.gz.XXXXXXXXXX)
works but EXTRACT_DIR=$(mktemp -d pulumi.XXXXXXXXXX)
fails with permission denied. Does anyone know how to fix this?dry-action-66059
12/12/2022, 6:55 AMjolly-window-25842
12/12/2022, 8:40 AMpulumi up
, however pulumi says it basically has to update everything when run from his computer. We share the same repo obviously, I’m on Mac, he is on Windows. What could it be? Thanks a lot for the help, I can’t figure this out!orange-airport-64592
12/12/2022, 8:47 AMorange-airport-64592
12/12/2022, 9:29 AM➜ test2 pulumi stack init broomllc/staging
warning: A new version of Pulumi is available. To upgrade from version '3.44.3' to '3.49.0', run
$ brew upgrade pulumi
or visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.
error: stack names may not contain slashes
famous-train-16653
12/12/2022, 9:54 AMCommandError: code: -2\n' +
' stdout: \n' +
' stderr: Command failed with exit code 255: pulumi stack select --stack settlemint/staging-ethereum-goerli-ade2 --non-interactive\n' +
'error: stack names may not contain slashes\n' +
' err?: Error: Command failed with exit code 255: pulumi stack select --stack settlemint/staging-ethereum-goerli-ade2 --non-interactive\n' +
'error: stack names may not contain slashes\n' +
'\n' +
' at Object.createCommandError (/Users/adrienblavier/Documents/settlemint/bpaas/node_modules/.pnpm/@pulumi+pulumi@3.49.0/node_modules/@pulumi/automation/errors.ts:75:27)\n' +
' at Object.<anonymous> (/Users/adrienblavier/Documents/settlemint/bpaas/node_modules/.pnpm/@pulumi+pulumi@3.49.0/node_modules/@pulumi/automation/cmd.ts:84:15)\n' +
' at Generator.throw (<anonymous>)\n' +
' at rejected (/Users/adrienblavier/Documents/settlemint/bpaas/node_modules/.pnpm/@pulumi+pulumi@3.49.0/node_modules/@pulumi/pulumi/automation/cmd.js:19:65)\n' +
' at processTicksAndRejections (node:internal/process/task_queues:96:5)'
hallowed-oil-54879
12/12/2022, 1:07 PMdry-keyboard-94795
12/12/2022, 2:53 PMimport
for ResourceOptions, is there a quick way to see what the differences are when presented with this warning?
warning: inputs to import do not match the existing resource; importing this resource will fail
busy-island-31180
12/13/2022, 1:15 AMwet-fall-57893
12/13/2022, 5:34 AMterraform-provider-aws
the pulumi-aws
provider is based on?