chilly-hospital-92934
02/03/2021, 2:32 PMdef read(self, id, properties):
my_logic()
result = {}
try:
response = self.client.do_action_with_exception(request).decode("utf-8")
result = json.loads(response)
except:
print("not found")
return ReadResult(outs=result)
But in that way it always wants to create resources š
basing on aboved code I would like to: Create resource if dict is emptyfuture-oyster-5387
02/03/2021, 4:07 PMambitious-father-68746
02/04/2021, 12:07 AMstraight-librarian-43739
02/04/2021, 1:44 AMRequired attribute is not set
colossal-rainbow-39841
02/04/2021, 2:01 AMbored-alligator-28748
02/04/2021, 5:32 AMconst wazuhConfig = new k8s.kustomize.Directory("wazuhLocal", {
directory : "./wazuh-kubernetes/envs/eks",
},
{parent: this}
)
The ts file which has this code has the directory wazuh-kubernetes/envs/eks
in the same path.
This is the error I am getting -->
Diagnostics:
pulumi:pulumi:Stack (central-ops-ossec-dev):
error: Running program 'ossec' failed with an unhandled exception:
Error: invocation of kubernetes:kustomize:directory returned an error: failed to retrieve specified kustomize directory: "./wazuh-kubernetes/envs/eks": invalid URL scheme
Any help will be much appreciateddelightful-salesclerk-57224
02/04/2021, 7:39 AM------------------------------
Executing command: pulumi up -c bootstrapImageTag=v9.0.0 --skip-preview --non-interactive --yes
error: saving config: yaml: line 33: mapping values are not allowed in this context
Reading environment variable exporting file contents.
Reading environment variable exporting file contents.
[SYSTEM]
Message Failed to run freestyle step: Deploy DB to DEV
Caused by Container for step title: Deploy DB to DEV, step type: freestyle, operation: Freestyle step.
I've validated the yaml and its valid, there is nothing going on at line 33. Also, I have multiple deploys with identical commands and just this one fails šbumpy-laptop-30846
02/04/2021, 1:19 PMclever-crowd-18899
02/04/2021, 2:18 PMaverage-ability-11166
02/04/2021, 4:59 PMcreating...
?
_, err = docker.NewContainer(ctx, "mtx-create-container", &docker.ContainerArgs{
Name: pulumi.String("mtx-container-pulumi"),
Image: mtzImage.Name,
NetworksAdvanced: docker.ContainerNetworksAdvancedArray{
docker.ContainerNetworksAdvancedArgs{Name: network.Name},
},
Restart: pulumi.String("on-failure"),
Ports: docker.ContainerPortArray{
docker.ContainerPortArgs{
Internal: <http://pulumi.Int|pulumi.Int>(6875),
External: <http://pulumi.Int|pulumi.Int>(6875),
},
},
Attach: pulumi.Bool(true),
Logs: pulumi.Bool(true),
Start: pulumi.Bool(true),
Command: pulumi.StringArray{
pulumi.String("w"), // workers
pulumi.String("1"),
},
})
if err != nil {
return err
}
great-evening-28439
02/04/2021, 6:32 PMpulumi up
on the 2 projects separately.adamant-translator-31969
02/04/2021, 7:26 PMError: Cannot re-register module Previous registration was [object Object], new registration was [object Object].
lemon-machine-35564
02/04/2021, 9:56 PMhttps://
etc in and, and operating on a Output<String>
is painful.billowy-nightfall-59212
02/04/2021, 10:42 PMgo mod tidy
on the gcp
and I am seeing this.
go mod tidy 20s
go: finding module for package <http://github.com/pulumi/pulumi-gcp/sdk/go/gcp/projects|github.com/pulumi/pulumi-gcp/sdk/go/gcp/projects>
go: finding module for package <http://github.com/pulumi/pulumi-gcp/sdk/v4/go/gcp/container|github.com/pulumi/pulumi-gcp/sdk/v4/go/gcp/container>
go: downloading <http://google.golang.org/genproto|google.golang.org/genproto> v0.0.0-20200318110522-7735f76e9fa5
go: downloading <http://golang.org/x/tools|golang.org/x/tools> v0.0.0-20191119224855-298f0cb1881e
go: found <http://github.com/pulumi/pulumi-gcp/sdk/go/gcp/projects|github.com/pulumi/pulumi-gcp/sdk/go/gcp/projects> in <http://github.com/pulumi/pulumi-gcp|github.com/pulumi/pulumi-gcp> v1.9.0
go: found <http://github.com/pulumi/pulumi-gcp/sdk/v4/go/gcp/container|github.com/pulumi/pulumi-gcp/sdk/v4/go/gcp/container> in <http://github.com/pulumi/pulumi-gcp/sdk/v4|github.com/pulumi/pulumi-gcp/sdk/v4> v4.10.0
go: <http://github.com/pulumi/pulumi-gcp@v1.9.0|github.com/pulumi/pulumi-gcp@v1.9.0> requires
<http://github.com/terraform-providers/terraform-provider-google-beta@v0.0.0-00010101000000-000000000000|github.com/terraform-providers/terraform-provider-google-beta@v0.0.0-00010101000000-000000000000>: invalid version: unknown revision 000000000000
average-school-38756
02/04/2021, 10:55 PMpulumi state delete
shows "error: This resource can't be safely deleted because the following resources depend on it:" Can i simply remove the dependency declarations from the state file to proceed? Is there some reason that would be a bad idea?red-football-97286
02/05/2021, 9:54 AMproud-pizza-80589
02/05/2021, 3:51 PMadorable-musician-67025
02/05/2021, 4:39 PMlemon-machine-35564
02/05/2021, 8:07 PMlemon-machine-35564
02/05/2021, 11:30 PMdestroy
that succeeded, and then the next up
said Duplicate resource URN
. stack
doesnāt show the URN and my AWS account doesnāt have that resource created.lemon-machine-35564
02/05/2021, 11:31 PMstack delete <urn>
says it doesnāt existsquare-art-73366
02/06/2021, 12:44 AMbored-oyster-3147
02/07/2021, 6:09 PMwet-soccer-72485
02/07/2021, 6:26 PMcold-motherboard-287
02/08/2021, 8:50 AMjson
or a yaml
file I suppose. Is there a workaround for it?
Another option would be to implement another secrets/config provider altogether, but I also didn't find any information on how to do it.wide-crayon-4093
02/08/2021, 10:16 AMistioctl operator install
and then install istio itself via manifest. here, I'm not sure where to startcolossal-rainbow-39841
02/08/2021, 1:20 PMfreezing-quill-32178
02/08/2021, 2:27 PM@pulumi/gcp
and the underlying terraform-provider
donāt support yet the SQL import from GCP bucket.
Currently iāve created my own shell scripts utilising gcloud sql import cli but i want to make the whole deployment flow with Pulumi as well as put it in GitLab CI/CD.
Any suggestion is welcomed! Thanksbored-oyster-3147
02/08/2021, 4:21 PMcompleting deletion from previous update
on an ACM Certificate that can't be deleted due to "certificate is in use" error whenever I try to pulumi destroy
. Any idea how to clear or reset this pending deletion?average-school-38756
02/08/2021, 6:02 PMaverage-school-38756
02/08/2021, 6:02 PM