clever-painter-96148
10/09/2022, 8:20 PMstocky-father-68249
10/12/2022, 10:38 AMlimited-rainbow-51650
10/13/2022, 6:58 PMbroad-noon-76535
10/14/2022, 3:20 PMconfig:
azure-native:location: northeu
azure:subscriptionId: 1234-abcd
my-project:context:
some-key: some-value
I am only able to fetch the config values under "my-project", for some reason. Can anyone enlighten me? đŻď¸broad-noon-76535
10/17/2022, 8:21 AMpolite-ocean-13631
10/19/2022, 4:42 PMpulumi_aws.iam.get_policy_document
under Pytest? It works when running normally with Pulumi, but when run under Pytest with a test decorated by pulumi.runtime.test
it fails with the error in the thread.gorgeous-minister-41131
10/19/2022, 11:29 PMpulumi
python package behavior where it goes off and tries to install a provider automatically?
[pipenv.exceptions.InstallError]: check_call(['pulumi', 'plugin', 'install', 'resource', 'aws', PLUGIN_VERSION])
[pipenv.exceptions.InstallError]: File "/opt/homebrew/Cellar/python@3.9/3.9.15/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 373, in check_call
[pipenv.exceptions.InstallError]: raise CalledProcessError(retcode, cmd)
[pipenv.exceptions.InstallError]: subprocess.CalledProcessError: Command '['pulumi', 'plugin', 'install', 'resource', 'aws', '5.16.0']' returned non-zero exit status 126.
[pipenv.exceptions.InstallError]: [end of output]
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: note: This error originates from a subprocess, and is likely not a problem with pip.
[pipenv.exceptions.InstallError]: error: legacy-install-failure
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: Ă Encountered error while trying to install package.
[pipenv.exceptions.InstallError]: â°â> pulumi-aws
gorgeous-minister-41131
10/20/2022, 12:34 AMpipenv shell
before running Pulumi.full-analyst-32960
10/20/2022, 7:51 PMlemon-intern-77136
10/20/2022, 10:51 PMlemon-intern-77136
10/21/2022, 7:51 PMd = {}
d['user'] = ['default'] + [aDictWithAnOutputInstance] + [anotherDictWithOutputInstances]
d['other_stuff'] = ...
d['more_things'] = {'more_things_1': againAnOutputInstance, 'more_things_2': 'regular string'}
y = yaml.dump(d, Dumper=yaml.Dumper)
Any ideas how to make this work? The .apply
and .concat
idioms donât seem to work hereâŚfull-analyst-32960
10/24/2022, 5:27 PMDockerBuild
at https://www.pulumi.com/registry/packages/docker/api-docs/image/ but I cannot find the documentation for the API online, I do see it in site-packages/pulumi_docker/docker.py
where can I find the online docs?full-analyst-32960
10/24/2022, 5:38 PMnutritious-battery-42762
10/29/2022, 12:09 PMcurved-kitchen-23422
10/29/2022, 3:41 PMerror: Domain resource has a problem: expected ebs_ options
.0.volume _type to be one of [stamdard gp2 io1], got gp3. Examine
values at
â`Domain`.EbsOptions
.`VolumeType`â. Based on AWS docs, r6g.large.search instance type is support to gp3 volume and using console we can able to view the gp3 option, but using pulumi got the error. Can any one help to resolve this issue and thanks for advance.full-analyst-32960
10/31/2022, 2:38 PMfargate_task = awsx.ecs.FargateTaskDefinition("portal-fargate-task",
containers={
"nginx": awsx.ecs.TaskDefinitionContainerDefinitionArgs(
image="nginx",
essential=True,
memory=128,
log_configuration=awsx.ecs.TaskDefinitionLogConfigurationArgs(
log_driver="awslogs",
options=[
"awslogs_group:nginx-container",
"awslogs_region:us-west-1",
"awslogs_stream-prefix:nginx",
],
),
),
},
tags={
"Testing": "Testing",
},
)
full-analyst-32960
10/31/2022, 2:40 PMoptions: Optional[Any] = None
and I donât know how to fill in a list of [Any] to keep âpulumi upâ happyfull-analyst-32960
10/31/2022, 2:42 PMcannot unmarshal array into Go struct field LogConfiguration.LogConfiguration.Options of type map[string]*string
would hint that the options is a dict() (aka map) but I cannot get that to work eitherorange-airport-64592
11/01/2022, 1:58 AMArgument of type "dict[str, str | int]" cannot be assigned to parameter "variables" of type "Input[Mapping[str, Input[str]]] | None" in function "__init__"
Type "dict[str, str | int]" cannot be assigned to type "Input[Mapping[str, Input[str]]] | None"
"dict[str, str | int]" is incompatible with "Mapping[str, Input[str]]"
TypeVar "_VT_co@Mapping" is covariant
Type "str | int" cannot be assigned to type "Input[str]"
Type "int" cannot be assigned to type "Input[str]"
"dict[str, str | int]" is incompatible with protocol "Awaitable[Mapping[str, Input[str]]]"
"__await__" is not present
"dict[str, str | int]" is incompatible with "Output[Mapping[str, Input[str]]]"
...PylancereportGeneralTypeIssues
This is my code :
aws.lambda_.FunctionEnvironmentArgs(
variables={
"DESTN_BUCKET": s3_zip_log_bucket_name,
"RDS_HOSTNAME": "<http://xxxx.ap-east-1.rds.amazonaws.com|xxxx.ap-east-1.rds.amazonaws.com>",
"RDS_USERNAME": "admin",
"RDS_PASSWORD": db_password,
"RDS_PORT": "3306",
"TTL": 172800,
},
),
I think is need to do that to make dict convert to Inputďź But I don't knowăto do
orange-airport-64592
11/01/2022, 2:00 AMfull-analyst-32960
11/02/2022, 7:20 PMimport infra
is the infra this project, https://pypi.org/project/infra/? Or is that typo(?) for the testinfra package, https://testinfra.readthedocs.io/en/latest/ ?full-analyst-32960
11/03/2022, 1:23 AMregion = aws.get_region()
as one of the first API calls.
class PulumiMocks(pulumi.runtime.Mocks):
def new_resource(self, args: pulumi.runtime.MockResourceArgs):
print("new_resource")
return [args.name + '_id', args.inputs]
def call(self, args: pulumi.runtime.MockCallArgs):
print(f"XXXXX call:")
return {}
Narrowed down aws.get_region()
invokes the Mocks call(self, args: pulumi.runtime.MockCallArgs):
how do I extract that I am calling get_region() and return my Mock values? Maybe Iâm missing something? I thought I would be able to add get_region()
method to the PulumiMocks() class? Any help would be appreciated.agreeable-businessperson-73427
11/03/2022, 11:40 PMagreeable-businessperson-73427
11/04/2022, 1:52 PMpwd = aws.secretsmanager.get_secret(arn=secret_obj.arn.apply(lambda arn: arn))
saw online that Output<T> would need to be converted using .apply() which is what I am trying to do with a lambda that returns the arn but that doesnt seem to be doing itagreeable-businessperson-73427
11/04/2022, 9:55 PMagreeable-businessperson-73427
11/05/2022, 7:51 PMagreeable-businessperson-73427
11/05/2022, 7:55 PMagreeable-businessperson-73427
11/05/2022, 7:55 PMthankful-stone-34269
11/10/2022, 12:11 AMmachine_role = aws.iam.Role("dockerbuilder-role", ...)
and then I try to create an EC2 instance that uses this role:
server = aws.ec2.Instance('dockerbuilder-pulumi',
iam_instance_profile=machine_role,
...)
The error message (which annoyingly takes 2 minutes to resolve annoyingly) is InvalidParameterValue: Value (dockerbuilder-role-908245c) for parameter iamInstanceProfile.name is invalid. Invalid IAM Instance Profile name
.
Now if I instantiate the Instance with `
iam_instance_profile="dockerbuilder-role-908245c",
it works. How do I get the name out of the role object to pass into the instance?careful-apartment-69053
11/14/2022, 3:25 PMBuilding wheel for pulumi-azure-native (setup.py): started
Building wheel for pulumi-azure-native (setup.py): finished with status 'error'
the above is where i get stuck. the program literally does not return from this:
pulumi new azure-python
being new here, I don't even know where to go to find logs or anything to help. Its unfortunately making me consider bypassing pulumi as an option for our future IaC since I can't even put together the first step of the POC for my developers.careful-apartment-69053
11/14/2022, 3:25 PMBuilding wheel for pulumi-azure-native (setup.py): started
Building wheel for pulumi-azure-native (setup.py): finished with status 'error'
the above is where i get stuck. the program literally does not return from this:
pulumi new azure-python
being new here, I don't even know where to go to find logs or anything to help. Its unfortunately making me consider bypassing pulumi as an option for our future IaC since I can't even put together the first step of the POC for my developers.billowy-army-68599
11/14/2022, 4:01 PMpip install wheel
it looks like because you donât have the wheel
package installed locally, the package isnât able to buildcareful-apartment-69053
11/14/2022, 4:38 PMbillowy-army-68599
11/14/2022, 4:44 PMcareful-apartment-69053
11/14/2022, 4:46 PMbillowy-army-68599
11/14/2022, 4:55 PMcareful-apartment-69053
11/14/2022, 4:56 PMbillowy-army-68599
11/14/2022, 4:57 PMcareful-apartment-69053
11/14/2022, 4:58 PMnote: This error originates from a subprocess, and is likely not a problem with pip.
Rolling back uninstall of grpcio
Moving to c:\python311\lib\site-packages\grpc\
from C:\Python311\Lib\site-packages\~rpc
Moving to c:\python311\lib\site-packages\grpcio-1.50.0.dist-info\
from C:\Python311\Lib\site-packages\~rpcio-1.50.0.dist-info
error: legacy-install-failure
Ă Encountered error while trying to install package.
â°â> grpcio
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -D_WIN32_WINNT=1536 -DGRPC_XDS_USER_AGENT_NAME_SUFFIX=\"\\\"Python\\\"\" -DGRPC_XDS_USER_AGENT_VERSION_SUFFIX=\"\\\"1.47.0\\\"\" -DOPENSSL_NO_ASM=1 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DWIN32_LEAN_AND_MEAN=1 -DCARES_STATICLIB=1 -DGRPC_ARES=0 -DNTDDI_VERSION=100663296 -DNOMINMAX=1 -DMS_WIN64=1 -Isrc\python\grpcio -Iinclude -I. -Ithird_party\abseil-cpp -Ithird_party\address_sorting\include -Ithird_party\cares\cares\include -Ithird_party\cares -Ithird_party\cares\cares -Ithird_party\re2 -Ithird_party\boringssl-with-bazel\src\include -Ithird_party\upb -Isrc\core\ext\upb-generated -Isrc\core\ext\upbdefs-generated -Ithird_party\xxhash -Ithird_party\zlib -IC:\Python311\include -IC:\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tpsrc/core/ext/filters/census/grpc_context.cc /Fopython_build\temp.win-amd64-cpython-311\Release\src/core/ext/filters/census/grpc_context.obj -std=c++14 /MT
cl : Command line warning D9025 : overriding '/MD' with '/MT'
cl : Command line warning D9002 : ignoring unknown option '-std=c++14'
<http://grpc_context.cc|grpc_context.cc>
billowy-army-68599
11/14/2022, 4:58 PMcareful-apartment-69053
11/14/2022, 5:02 PMbillowy-army-68599
11/14/2022, 5:03 PM3.10.x
?
maybe with pyenv
?3.10.x
it should workcareful-apartment-69053
11/14/2022, 5:08 PMbored-airline-35946
11/16/2022, 6:49 PMeager-wire-36257
12/18/2022, 7:30 PM