fresh-wire-95028
10/20/2021, 9:41 PMpulumi import
on an existing resource. Say I have an ARN of a resource I manually created: arn:aws:iam::12345:saml-provider/VPN
. How would I import it?brash-sugar-33876
10/21/2021, 7:23 AMlittle-journalist-4778
10/21/2021, 10:23 AMregister_stack_transformation
and is not removed after a single test execution.
I found a workaround to reset the Stack for each test, do you think is good or I'm messing with pulumi internals?
@pytest.fixture(autouse=True)
def pulumi_mocks():
pulumi.runtime.set_mocks(BaseMocks())
yield
pulumi.runtime.settings.ROOT = None
chilly-magazine-4507
10/21/2021, 11:27 AMlblackstone
?chilly-magazine-4507
10/21/2021, 12:01 PMfast-oyster-42706
10/21/2021, 2:28 PMflat-appointment-12338
10/21/2021, 3:03 PMError: Secret outputs cannot be captured by a closure.
fresh-wire-95028
10/21/2021, 4:03 PMaws:iam:SamlProvider (default):
error: Preview failed: unable to delete resource "urn:pulumi:toli::xxx::aws:iam/samlProvider:SamlProvider::default"
as it is currently marked for protection. To unprotect the resource, either remove the `protect` flag from the resource in your Pulumiprogram and run `pulumi up` or use the command:
`pulumi state unprotect urn:pulumi:toli::xxx::aws:iam/samlProvider:SamlProvider::default`
sparse-gold-10561
10/21/2021, 4:53 PMsteep-cartoon-89174
10/21/2021, 5:17 PMsteep-cartoon-89174
10/21/2021, 5:20 PMsquare-car-84996
10/21/2021, 6:40 PMcool-dress-96114
10/21/2021, 9:16 PM<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput({0x18b6000|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput({0x18b6000>, 0xc0001b08c0}, {0x1a6ec10, 0x181b1a0}, 0x1)
/Users/jordan/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.15.0/go/pulumi/rpc.go:281 +0x27c5
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput({0x18b6000|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput({0x18b6000>, 0xc0001b08c0}, {0x1a6ec10, 0x181b1a0}, 0x1)
/Users/jordan/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.15.0/go/pulumi/rpc.go:281 +0x27c5
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput({0x18b6000|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput({0x18b6000>, 0xc0001b08c0}, {0x1a6ec10, 0x181b1a0}, 0x1)
/Users/jordan/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.15.0/go/pulumi/rpc.go:281 +0x27c5
<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput({0x18b6000|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput({0x18b6000>, 0xc0001b08c0}, {0x1a6ec10, 0x181b1a0}, 0x1)
/Users/jordan/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.15.0/go/pulumi/rpc.go:281 +0x27c5
...additional frames elided...
created by <http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).registerResource|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).registerResource>
/Users/jordan/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.15.0/go/pulumi/context.go:773 +0x772
exit status 2
Any ideas would be greatly appreciated as I am not sure how to debug thispolite-portugal-60022
10/21/2021, 10:38 PMuser1@linux1:~/pulumi/project> pulumi import 'gcp:compute/instance:Instance' instance4 "<https://www.googleapis.com/compute/v1/projects/test-gcp-project/zones/us-west1-a/instances/instance4>"
Previewing import (dev)
Type Name Plan Info
+ pulumi:pulumi:Stack proj-dev create 1 error
= └ gcp:compute:Instance instance4 import 7 errors
Diagnostics:
pulumi:pulumi:Stack (proj-dev):
error: preview failed
gcp:compute:Instance (instance4):
error: gcp:compute/instance:Instance resource 'instance4' has a problem: Computed attribute cannot be set. Examine values at 'Instance.NetworkInterfaces[0].Name'.
error: gcp:compute/instance:Instance resource 'instance4' has a problem: Computed attribute cannot be set. Examine values at 'Instance.NetworkInterfaces[0].Ipv6AccessType'.
error: gcp:compute/instance:Instance resource 'instance4' 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 'instance4' 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 'instance4' has a problem: Computed attribute cannot be set. Examine values at 'Instance.BootDisk.DiskEncryptionKeySha256'.
error: gcp:compute/instance:Instance resource 'instance4' 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: Preview failed: one or more inputs failed to validate
damp-school-17708
10/22/2021, 7:44 AMbland-cat-29878
10/22/2021, 11:54 AMerror: /home/wayne/highstreetly-pulumi/node_modules/@pulumi/pulumi/provider/server.js:424
� coniole.error(`${e}: ${e.stack}`);
bland-cat-29878
10/22/2021, 11:54 AMsparse-student-54516
10/22/2021, 12:14 PMsparse-student-54516
10/22/2021, 12:15 PMdamp-memory-66729
10/22/2021, 3:32 PMRepository
resource but how to deal with the other resources which reference repo by name: BranchDefault
, TeamRepository
, ActionSecret
?miniature-piano-36287
10/22/2021, 4:06 PMnpm library
and the other one is a web service
, either the web service and the npm library have the following Pulumi dependencies:
package.json -> "dependencies"
"@pulumi/aws": "^4.23.0",
"@pulumi/awsx": "^0.32.0",
"@pulumi/pulumi": "^3.0.0",
The web service also dependes of the npm library. When i push changes to AWS with the command pulumi up -y
everything works fine, but when i make a request to the ApiGateway that calls one of the created lambda functions i'm having this error output in Cloudwatch:
Cannot find module '@pulumi/pulumi'
One of the functions in the npm library needs that dependency but i looks like Pulumi is excluding it because regardless the package.json shows that dependency it doesn't appear in node_modules.
Anyone have an idea of what could be happening in that case?
Thank you.rapid-raincoat-36492
10/22/2021, 7:47 PMopts
object around between resources from different pulumi providers. In particular, this issue is challenging because the error messages lead you fixes that don't work.
I noticed that there are currently three issues in pulumi/pulumi
discussing this:
- https://github.com/pulumi/pulumi/issues/7532
- https://github.com/pulumi/pulumi/issues/6293 which is closed, but should not be
- https://github.com/pulumi/pulumi/issues/3393
and there are quite a few related issues that are wrongly attributed to providers misbehaving, such as https://github.com/pulumi/pulumi-vault/issues/129.
Would it make sense to combine all of these issues into a new issue, or maybe to re-open https://github.com/pulumi/pulumi/issues/6293 and to mark the other issues as duplicates? Right now, this was a very difficult issue to track down the root cause of. https://github.com/pulumi/pulumi-vault/issues/129 shows images of what the error messages I was seeing with the node sdkwet-noon-14291
10/22/2021, 10:14 PMpulumi stack init
in that case?orange-policeman-59119
10/22/2021, 11:07 PMfuture-window-78560
10/23/2021, 2:21 AMminiature-advantage-31279
10/23/2021, 3:20 AMconst vpc = awsx.ec2.Vpc.fromExistingIds(name, { vpcId: props.vpcId });
console.log(await vpc.publicSubnetIds);
However if I create a new vpc, it will return the correct public subnet IDs, it seems there is missing initialisation internally if we are using fromExistingIds?few-army-64952
10/24/2021, 9:42 PMbig-pizza-47421
10/25/2021, 7:14 AMlimited-rainbow-51650
10/25/2021, 8:28 AMComponentResource
?billions-mechanic-26704
10/25/2021, 9:19 AMpulumi up
error: Program failed with an unhandled exception:
error: Traceback (most recent call last):
File "/usr/local/bin/pulumi-language-python-exec", line 107, in
File "/Users/bgarcial/workspace/wmlab-infrastructure/venv/lib/python3.8/site-packages/pulumi/runtime/invoke.py", line 146, in invoke
raise invoke_error
Exception: invoke of github:index/getUser:getUser failed: invocation of github:index/getUser:getUser returned an error: invoking github:index/getUser:getUser: GET <https://api.github.com/users/bgarcial>: 401 Bad credentials []
error: an unhandled error occurred: Program exited with non-zero exit code: 1
My organization use github credentials as an authentication system.
I have the PULIMI ACCESS TOKEN enabled and working well. I am not sure what could be happening.billions-mechanic-26704
10/25/2021, 9:19 AMpulumi up
error: Program failed with an unhandled exception:
error: Traceback (most recent call last):
File "/usr/local/bin/pulumi-language-python-exec", line 107, in
File "/Users/bgarcial/workspace/wmlab-infrastructure/venv/lib/python3.8/site-packages/pulumi/runtime/invoke.py", line 146, in invoke
raise invoke_error
Exception: invoke of github:index/getUser:getUser failed: invocation of github:index/getUser:getUser returned an error: invoking github:index/getUser:getUser: GET <https://api.github.com/users/bgarcial>: 401 Bad credentials []
error: an unhandled error occurred: Program exited with non-zero exit code: 1
My organization use github credentials as an authentication system.
I have the PULIMI ACCESS TOKEN enabled and working well. I am not sure what could be happening.