agreeable-angle-1483
04/05/2020, 12:21 PMpulumi up
:
# pulumi up
warning: Pulumi will not be able to print a statefile permalink using these credentials. Neither a GoogleAccessID or PrivateKey are available. Try using a GCP Service Account.
Enter your passphrase to unlock config/secrets
(set PULUMI_CONFIG_PASSPHRASE to remember):
Previewing update (<http://dev.bd|dev.bd>):
Type Name Plan Info
pulumi:pulumi:Stack <http://vpc_network-dev.bd|vpc_network-dev.bd> 1 error; 9 messages
Diagnostics:
pulumi:pulumi:Stack (<http://vpc_network-dev.bd|vpc_network-dev.bd>):
error: an unhandled error occurred: Program exited with non-zero exit code: 1
Traceback (most recent call last):
File "/usr/local/sbin/pulumi-language-python-exec", line 14, in <module>
import pulumi
File "/usr/local/lib/python3.5/dist-packages/pulumi/__init__.py", line 25, in <module>
from .asset import (
File "/usr/local/lib/python3.5/dist-packages/pulumi/asset.py", line 34
path: str
^
SyntaxError: invalid syntax
warning: A new version of Pulumi is available. To upgrade from version '1.12.0' to '1.14.0', visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.
does anyone knows what’s wrong with it?gray-tailor-20387
04/06/2020, 2:37 PMopts=pulumi.ResourceOptions (import_= "")
I have tried extensively but failed to get it to work, what are all the possibilities for inside of import_ ?
Once i've got that right, the only thing i can do wrong is have a different configuration in the code compared to the live implementation, right?billowy-laptop-45963
04/07/2020, 8:04 PMDependencies: []string{
filepath.Dir(getCwd((t))),
},
in my integration.ProgramTestOptions{}. When I run the go test it doesn't install the library. There is a setup.py and I tested it with a virtualenv and pip install .
Is there anything I need to do for the integration test to install my library?colossal-room-15708
04/14/2020, 5:33 AMcompute.Extension("{0}install".format(server),
virtual_machine_id=vm.id,
publisher="Microsoft.Compute",
type="CustomScriptExtension",
type_handler_version="1.9",
auto_upgrade_minor_version=True,
settings= json.dumps({'commandToExecute': command_to_execute, 'fileUris': [args.bootstrap_file_name]}),
protected_settings=json.dumps({'storageAccountName': args.bootstrap_storage_account_name, 'storageAccountKey': args.bootstrap_storage_access_key})
)
I'm receiving
File "/usr/lib/python3.7/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type Output is not JSON serializable
error: an unhandled error occurred: Program exited with non-zero exit code: 1
I am passing the args in to this component like this:
combined_output = Output.all(install_scripts_storage_account.name, install_scripts_storage_account.primary_access_key, install_scripts_storage_blob.url)
bootstrap_storage_account_name = combined_output.apply(lambda lst: lst[0])
bootstrap_storage_access_key = combined_output.apply(lambda lst: lst[1])
bootstrap_file_name = combined_output.apply(lambda lst: lst[2])
Does json.dumps()
not work in this context? If I pass the actual values in, hard code the actual strings, then it works.white-airport-48392
04/15/2020, 7:51 AM{
"a": "b",
"c": "d"
}
I want to access this as a python Object in another stack , I use StackReference
And tried
infra_props = StackReference("dev")
print(infra_props.get_output("network_config").all().apply(lambda c: json.dumps(c)))
This still outputs an Output
Am I doing it wrong ?
Is there a right way to pass around json stack Outputs from one stack to other
proud-lighter-99544
04/16/2020, 7:30 PMnutritious-shampoo-16116
04/17/2020, 8:06 AMnutritious-shampoo-16116
04/17/2020, 8:06 AMbillowy-laptop-45963
04/17/2020, 9:00 PMrich-easter-89163
04/20/2020, 8:36 PMwhite-airport-48392
04/22/2020, 5:21 AMfamous-salesmen-28835
04/22/2020, 5:27 AMpulumi up
is command line interface which start execution from ___main__.py_
file . But is it any way that I need not to run pulumi up
and with python function call it. Currently I have created a wrapper function which call pulumi up
in background. So I need to know if any python SDK function call is available with some control.sparse-state-34229
04/22/2020, 8:08 AMcluster.kubeconfig
here? https://github.com/pulumi/kubernetes-guides/blob/master/aws/03-cluster-configuration/index.ts#L59sparse-state-34229
04/22/2020, 8:09 AMsparse-state-34229
04/22/2020, 9:44 AMsparse-state-34229
04/22/2020, 9:44 AMroleMappings
gentle-diamond-70147
04/22/2020, 3:53 PM@pulumi/eks
module which is a set of higher-level components on top of the low-level AWS resources. @pulumi/eks
is only available for TypeScript and JavaScript currently so that representation of an EKS cluster won't match exactly what you see in Python.bland-lamp-16797
04/22/2020, 4:51 PMdns_name
of pulumi_gcp.dns.ManagedZone
is class pulumi.output.Output
and how to convert it to str()
so I can use it laterfierce-market-67222
04/23/2020, 2:06 PMhigh-orange-18933
04/25/2020, 4:25 PMeager-vase-43200
04/26/2020, 7:45 AMbillions-glass-17089
04/26/2020, 6:00 PMvictorious-helmet-11068
04/28/2020, 6:44 AMvictorious-helmet-11068
04/28/2020, 6:44 AMsparse-state-34229
04/28/2020, 6:46 AMsparse-state-34229
04/28/2020, 6:47 AMvictorious-helmet-11068
04/28/2020, 6:49 AMworried-plastic-45846
04/28/2020, 6:20 PMsource_code_hash
. This way, the lambda is updated when my zip file changed.
When creating a lambda from a zip hosted on an S3 Bucket, how can I calculate the hash of the remote file?gray-tailor-20387
04/29/2020, 10:38 AMopts= pulumi.ResourceOptions(id= 'id_of_the_fm'),
Then i comment out the line and try to add all attributes to be the same to the current state. (can't add some like status= 'active').
Up until now i keep getting a replacement of my resource, which i don't want when importing running vm's.
Thanks in advance for reading.sparse-state-34229
04/29/2020, 3:59 PM