fierce-nightfall-86468
11/19/2021, 7:47 AMcolossal-boots-62227
11/19/2021, 8:48 AMint
from a stack and import it in another stack it becomes a float
which seems wrong, is this expected behaviour?steep-beach-52652
11/19/2021, 9:55 AMsteep-beach-52652
11/19/2021, 9:55 AMFailed to resolve python version command: fork/exec bin/python: no such file or directory
steep-beach-52652
11/19/2021, 9:55 AMsteep-beach-52652
11/19/2021, 9:55 AMsecrets = json.loads(subprocess.getoutput("aws secretsmanager list-secrets"))
steep-beach-52652
11/19/2021, 9:56 AMbrave-planet-10645
11/19/2021, 10:54 AMsteep-beach-52652
11/19/2021, 11:05 AMearly-intern-90238
11/19/2021, 2:29 PMstrong-gold-74444
11/19/2021, 3:07 PMagreeable-ram-97887
11/19/2021, 3:11 PMsticky-airline-40485
11/19/2021, 4:01 PMpurple-lawyer-35555
11/19/2021, 4:27 PM.pulumi
is stored?proud-pizza-80589
11/19/2021, 5:03 PMlively-student-98057
11/19/2021, 5:44 PMfailed to load checkpoint: blob (key ".pulumi/stacks/dev.json") (code=Unknown): ExpiredToken: The provided token has expired.
status code: 400, request id: ..., host id: ...
Iāve tried replacing the backendās dev.json with the dev.json.bak, but that didnāt work.
Any thoughts?helpful-afternoon-10938
11/19/2021, 6:44 PMdiff = stack.preview(diff=True)
print(diff.change_summary)
but I need the changed resource in some json formatpolite-portugal-60022
11/19/2021, 7:55 PM{
"resources": [
{
"boot_disk": {
"auto_delete": true,
"initialize_params": {
"image": "projects/suse-byos-cloud/global/images/sles-15-sp2-byos-v20210604",
"size": 100
}
},
"guest_accelerator": null,
"id": "test-instance",
"machine_type": "n1-standard-1",
"network_interfaces": [
{
"address": "10.10.10.10",
"subnetwork": "<https://www.googleapis.com/compute/v1/projects/myproj/regions/us-west1/subnetworks/mysubnet>",
"type": "VIRTIO_NET"
}
],
"project": "myproj",
"shielded_instance_config": null,
"tags": null,
"type": "gcp:compute/instance:Instance",
"zone": "us-west1-a"
}
]
}
command out:
pulumi import -f resources.json
Previewing import (dev)
View Live: <https://app.pulumi.com/user/test-import/dev/previews/b6937451-d5e6-46ca-8d05-2fd6055e3119>
Type Name Plan Info
+ pulumi:pulumi:Stack test-import-dev create 1 error; 1 message
= āā gcp:compute:Instance import 7 errors
Diagnostics:
gcp:compute:Instance ():
error: gcp:compute/instance:Instance resource '' has a problem: expected network_interface.0.nic_type to be one of [GVNIC VIRTIO_NET], got . Examine values at 'Instance.
NetworkInterfaces[0].NicType'.
error: gcp:compute/instance:Instance resource '' has a problem: Computed attribute cannot be set. Examine values at 'Instance.NetworkInterfaces[0].Ipv6AccessType'.
error: gcp:compute/instance:Instance resource '' has a problem: Computed attribute cannot be set. Examine values at 'Instance.NetworkInterfaces[0].Name'.
error: gcp:compute/instance:Instance resource '' has a problem: ConflictsWith: "boot_disk.0.kms_key_self_link": conflicts with boot_disk.0.disk_encryption_key_raw. Examine values at 'Instance.BootDisk.KmsKeySelfLink'.
error: gcp:compute/instance:Instance resource '' has a problem: ConflictsWith: "boot_disk.0.disk_encryption_key_raw": conflicts with boot_disk.0.kms_key_self_link. Examine values at 'Instance.BootDisk.DiskEncryptionKeyRaw'.
error: gcp:compute/instance:Instance resource '' has a problem: Computed attribute cannot be set. Examine values at 'Instance.BootDisk.DiskEncryptionKeySha256'.
error: Preview failed: one or more inputs failed to validate
pulumi:pulumi:Stack (test-import-dev):
Python 3.7 is approaching EOL and will not be supported in Pulumi soon. Check <https://github.com/pulumi/pulumi/issues/8131> for more details
error: preview failed
gorgeous-minister-41131
11/19/2021, 9:32 PMgorgeous-minister-41131
11/20/2021, 12:37 AMacceptable-oil-81004
11/20/2021, 2:03 AMbrave-nightfall-19158
11/20/2021, 6:19 PMnew aws.ec2.RouteTable('public-route-table', {
vpcId: this.vpc.id
})
and now when i do refresh I get this attached. Can anyone help me understand what's happened / gone wrong here?helpful-afternoon-10938
11/21/2021, 4:18 PMpulumi stack --show-urns
few-army-64952
11/21/2021, 10:25 PMenough-animal-75031
11/22/2021, 1:33 AM// Dox VPC, leave protected so this project can't destroy it
const vpc = new aws.ec2.Vpc("dox", {
assignGeneratedIpv6CidrBlock: false,
cidrBlock: "172.31.0.0/16",
enableDnsSupport: true,
instanceTenancy: "default",
tags: {
Name: "test-VPC",
},
}, {
protect: true,
});
export vpc.publicSubnetIds
brash-airline-37413
11/22/2021, 4:05 AMfamous-leather-94346
11/22/2021, 10:26 AMclass MyMocks(pulumi.runtime.Mocks):
def new_resource(self, args: pulumi.runtime.MockResourceArgs):
outputs = args.inputs
if args.typ == "pulumi:pulumi/StackReference":
outputs = {
**args.inputs,
"outputs": {"key": "value, "key2: "value2", "secret1": "secret_value1"},
"secret_output_names": ["secret1"],
}
return args.name + '_id', outputs
def call(self, args: pulumi.runtime.MockCallArgs):
return {}, None
It fails with:
> value = Output.all(Output.from_input(name), self.outputs).apply(lambda l: l[1][l[0]]) # type: ignore
E TypeError: 'NoneType' object is not subscriptable
../.venv/lib/python3.9/site-packages/pulumi/stack_reference.py:82: TypeError
Is there any example how to do it? šcolossal-boots-62227
11/22/2021, 10:50 AMfuture-refrigerator-88869
11/22/2021, 1:51 PMstraight-country-5874
11/22/2021, 2:19 PMdisableLocalAuth: true
setting to my Azure CosmosDB Account to disable accessing to it with connection string. I couldn't find it in the code or Pulumi documentation. Does anybody know how to add that please?