https://pulumi.com logo
Title
g

gentle-intern-40981

02/21/2023, 10:07 PM
Hi all, I started off by creating an
aws-python
project which worked fine but after installing
pulumi_gcp
, adding the required config
gcp:project
and adding a
gcp
resource the pulumi preview fails with:
error: could not validate provider configuration: 1 error occurred:
        * Invalid or unknown key
Debug output show:
debug: exception when preparing or executing rpc: Traceback (most recent call last):
      File "/home/dissonance/Code/ouroboros/infrastructure/venv/lib/python3.10/site-packages/pulumi/runtime/resource.py", line 916, in do_rpc_call
        return monitor.RegisterResource(req)
      File "/home/dissonance/Code/ouroboros/infrastructure/venv/lib/python3.10/site-packages/grpc/_channel.py", line 946, in __call__
        return _end_unary_response_blocking(state, call, False, None)
      File "/home/dissonance/Code/ouroboros/infrastructure/venv/lib/python3.10/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
        raise _InactiveRpcError(state)
    grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
        status = StatusCode.UNAVAILABLE
        details = "error reading from server: read tcp 127.0.0.1:52012->127.0.0.1:33739: use of closed network connection"
        debug_error_string = "UNKNOWN:Error received from peer ipv4:127.0.0.1:40435 {created_time:"2023-02-21T16:43:34.450732655-05:00", grpc_status:14, grpc_message:"error reading from server: read tcp
 127.0.0.1:52012->127.0.0.1:33739: use of closed network connection"}"
If I create a new project using the
gcp-python
template this problem does not exist.
b

billowy-army-68599

02/22/2023, 12:12 AM
@gentle-intern-40981 can you share the stack yaml from the project that’s failing?