purple-application-23904
10/05/2021, 6:04 PM(node:22099) UnhandledPromiseRejectionWarning: Error [ERR_INSPECTOR_NOT_AVAILABLE] [ERR_INSPECTOR_NOT_AVAILABLE]: Inspector is not available
at inspector.js:25:9
at NativeModule.compileForInternalLoader (internal/bootstrap/loaders.js:277:7)
at NativeModule.compileForPublicLoader (internal/bootstrap/loaders.js:219:10)
at loadNativeModule (internal/modules/cjs/helpers.js:26:9)
at Function.Module._load (internal/modules/cjs/loader.js:679:15)
at Module.require (internal/modules/cjs/loader.js:887:19)
at Module.require (pkg/prelude/bootstrap.js:1719:31)
at require (internal/modules/cjs/helpers.js:74:18)
at /snapshot/thin-cli/out/cloudcc.js:0
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:22099) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see <https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode>). (rejection id: 1)
(node:22099) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Which happens when I call LocalWorkspace.create
. I didn't see anything in issues with this error so I'm not sure if this is something on my side or not. More details in threadcalm-nest-80923
10/06/2021, 9:52 AMpulumi preview
. I’m trying to find out why
Resources:
~ 1 to update
12 unchanged
Previewing update (MY_ORG/testing)
View Live: <https://app.pulumi.com/MY_ORG/pspdfkit/testing/previews/08b5eb87-3c10-4426-82a4-b26f9290b4aa>
MY_ORG/pspdfkit/testing preview failed (see errors in the pulumi update)
Previewing update (MY_ORG/testing)
View Live: <https://app.pulumi.com/MY_ORG/scan-upload/testing/previews/76289495-f575-4159-b68b-95cebac8bb60>
Error: ENOENT: no such file or directory, stat '/tmp/automation-logs-preview-A5gUeo/eventlog.txt'
Is there a way to enable verbose logging via an ENV var for Pulumi? Or how do you set verbose logging via the node / ts sdk?
Issue does not seem to be related to: https://github.com/pulumi/pulumi/issues/6768 - which is the only issue I’ve found to have similar logs.
Interestingly, only 2 services fail, the others work…loud-bear-51491
10/06/2021, 4:16 PMinfra/groups.ts(6,14): error TS2322: Type 'Promise<string>' is not assignable to type 'string'.
here is the code
const current = aws.getCallerIdentity({});
export const accountId: string = current.then(current => current.accountId);
if (accountId == "xxx") {
const devops = new aws.iam.Group("devops", {
name: "devops-users",
path: "/",
});
}
refined-appointment-5884
10/08/2021, 3:58 AMbland-camera-22041
10/08/2021, 8:29 AMconst projectName = (params: TemplateStringsArray) =>
`hello-world-${stage}-${String.raw(params)}`;
And use like so in my resources
const resourceGroup = new azure.resources.ResourceGroup(projectName`rg`, {
resourceGroupName: `Hello-World-${stage}`,
location: azure.migrate.AzureLocation.UkSouth,
});
Will generate a URN like hello-world-dev-rg
quaint-electrician-41503
10/10/2021, 6:52 AMable-planet-19148
10/12/2021, 2:31 PMwet-noon-14291
10/13/2021, 10:40 AMbrave-nightfall-19158
10/13/2021, 3:39 PMexport _class_ CustomResource extends ComponentResource {
public resourceArn(): Output<_string_> {
return this.resource.arn;
}
}
and then I instantiate:
_const_ service = new CustomResource(...);
const service2 = new CustomResource2('name', {
arn: service.resourceArn
});
However, I'm getting the dreaded Output/input problem because the export is a Pulumi Output (see attached screenshot). I also tried to service.resourceArn.apply() but that didn't seem to work either. Question - Do I need to wrap the entire of service2 in the pulumi.all/apply function?brave-nightfall-19158
10/13/2021, 3:39 PMbrave-nightfall-19158
10/13/2021, 3:41 PMbrave-nightfall-19158
10/13/2021, 3:42 PMsteep-toddler-94095
10/13/2021, 4:10 PMOutput<string>
it's a function that returns Output<string>
. you need to either call the function or change the class method to a get
. I.e. for the latter:
export class CustomResource extends ComponentResource {
public get resourceArn(): Output<string> {
return this.resource.arn;
}
}
quaint-electrician-41503
10/13/2021, 5:55 PMquaint-electrician-41503
10/13/2021, 5:56 PMquaint-electrician-41503
10/13/2021, 5:56 PMquaint-electrician-41503
10/14/2021, 1:34 AMechoing-actor-55539
10/14/2021, 3:50 AMdry-football-2639
10/14/2021, 8:18 PMrefined-terabyte-65361
10/14/2021, 9:38 PMerror: Preview failed: unrecognized resource type (Read): aws:eks/addon:Addon
How to fix this ?orange-kite-80991
10/17/2021, 6:00 AMexport const dockerImage = new docker.Image( appName, {
imageName,
registry: infra.dockerRegistry,
build: {
context,
env: {
TEST_PARAM_SIMPLE: 'SimpleParam Value',
TEST_PARAM_SECRET: `config secret ${config.get('test_param_secret')}`,
},
args: {
TEST_PARAM_PULUMI: `from config ${config.get('test_param_pulumi')}`,
}
}})
And at the other end in my Dockerfile
RUN echo "SIMPLE=$TEST_PARAM_SIMPLE" > test_env_settings
RUN echo "PARAM=$TEST_PARAM_PULUMI" > test_env_settings
RUN echo "Secret=$TEST_PARAM_SECRET" > test_env_settings
RUN env > all_env1
None of my TEST... params show up in any of the outputs. Am I using the wrong incantations?refined-terabyte-65361
10/20/2021, 7:13 PMconst eksAddon = new aws.eks.Addon("eksAddon", {
addonName: "coredns",
clusterName: prefix,
resolveConflicts: "OVERWRITE",
addonVersion: addonVersion,
});
If i want to create multiple addons should create them separately ?
I tried line below but it dint work
const example = new aws.eks.Addon("example", {
clusterName: aws_eks_cluster.example.name,
addonName: "vpc-cni","coredns"
});
refined-terabyte-65361
10/20/2021, 8:05 PMerror: Preview failed: unable to delete resource "urn:pulumi:raj-eks::eks::aws:eks/addon:Addon::eksAddon"
as it is currently marked for protection. To unprotect the resource, either remove the `protect` flag from the resource in your Pulumi program or use the command:
`pulumi state unprotect urn:pulumi:raj-eks::eks::aws:eks/addon:Addon::eksAddon`
i dont have access to run
pulumi state unprotect urn:pulumi:raj-eks::eks::aws:eks/addon:Addon::eksAddon
is it possible to fix this without running
pulumi state unprotect urn:pulumi:raj-eks::eks::aws:eks/addon:Addon::eksAddon
refined-terabyte-65361
10/20/2021, 10:05 PMaws:eks:Addon (coredns):
error: 1 error occurred:
* error creating EKS Add-On : ResourceInUseException: Addon already exists.
{
RespMetadata: {
StatusCode: 409,
RequestID: "4c48c30e-3c0d-43d3-aa0b-2cca66f8335d"
},
Message_: "Addon already exists."
}
earlier i created resource from pulumi itself and pulumi state refelcts that resource already exists I was expecting if the resource exists its should not complain that resource already existssparse-student-54516
10/22/2021, 12:28 PMerror: Rancher is not ready: Doing get: Get "<https://65.21.242.158/ping>": dial tcp 65.21.242.158:443: connect: connection refused
const bootstrap = new rancher2.Provider("bootstrap", {
apiUrl: rancherUrl,
bootstrap: true,
insecure: true,
});
const admin = new rancher2.Bootstrap("admin", {
password: "focuswow",
telemetry: true,
}, {
provider: bootstrap,
dependsOn: [rancherServer],
});
const github = new rancher2.AuthConfigGithub("github", {
clientId: "<CLIENT_ID>",
clientSecret: "<CLIENT_SECRET>",
}, {
provider: bootstrap,
dependsOn: [admin],
});
sparse-student-54516
10/27/2021, 11:24 AMe.g. index.ts
-> multiple file e.g network.ts, server.ts, storage.ts
?sparse-student-54516
10/27/2021, 2:53 PMinitialPassword
as args for below:sparse-student-54516
10/27/2021, 2:54 PMlimited-rainbow-51650
10/27/2021, 8:09 PMPromise
which I used correctly in my code. So far so good.
I'm now trying to convert that function to a pulumi.ComponentResource
subclass, where I have the get function and the resource creation as well. But in that move, it seems I broke the setup for correct async processing. When I try to refer to the outputs of my ComponentResource
, they still seem to be undefined
. Each output in my component is an output from each of the 2 child resources.
Does anyone have an example of a ComponentResource
which mixes a get function, resource creation based on the fetched info and exposing outputs on the component class?limited-rainbow-51650
10/27/2021, 9:04 PMComponentResourceOptions
, I can optionally pass a map of providers. How should I pass these to the child resources? Any good example for that?limited-rainbow-51650
10/27/2021, 9:04 PMComponentResourceOptions
, I can optionally pass a map of providers. How should I pass these to the child resources? Any good example for that?