acoustic-country-86810
01/12/2023, 7:47 AMacoustic-country-86810
01/12/2023, 7:51 AMrapid-receptionist-28528
01/12/2023, 10:38 AMbland-pharmacist-96854
01/12/2023, 12:17 PMhundreds-greece-25551
01/12/2023, 3:49 PMpulumi state delete
. the state entries are from a custom ComponentResource
and appear in the state as follows. does anyone know why this is happening?
{
"urn": "urn:pulumi:STACK::PROJECT::company:scope:CustomComponentResource::get_/http/path_Z_X_Y",
"custom": false,
"type": "company:scope:CustomComponentResource",
"parent": "urn:pulumi:STACK::PROJECT::pulumi:pulumi:Stack::PROJECT-STACK",
"aliases": [
// old URN from old resource name; added by: ResourceOptions(aliases=["apilog:STACK:get:/http/path:X:Y:response_time"])
"urn:pulumi:STACK::PROJECT::company:scope:CustomComponentResource::apilog:STACK:get:/http/path:X:Y:response_time"
]
// does NOT include "outputs"
}
{
"urn": "urn:pulumi:STACK::PROJECT::company:scope:CustomComponentResource::get_/http/path_Z_X_Y",
"custom": false,
"type": "company:scope:CustomComponentResource",
"outputs": {
"monitor_id": "0123456789"
},
"parent": "urn:pulumi:STACK::PROJECT::pulumi:pulumi:Stack::PROJECT-STACK"
// does NOT include "aliases"
}
sticky-planet-19341
01/12/2023, 5:41 PMfull-doctor-81511
01/12/2023, 6:48 PMpreview:
needs: build
name: Pulumi Preview
runs-on: ubuntu-latest
env:
NODE_ENV: production
PULUMI_STACK: org/app-name/prod
PULUMI_ROOT: infra
PULUMI_DEBUG_PROMISE_LEAKS: true
steps:
- uses: actions/checkout@v2
- uses: <docker://pulumi/actions:latest>
with:
args: preview --stack $PULUMI_STACK
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
PULUMI_CI: pr
Diagnostics:
pulumi:pulumi:Stack (audio-app-infra-prod):
Promise leak detected:
CONTEXT(1): resolveURN(resource:audio-app-infra-prod[pulumi:pulumi:Stack])
STACK_TRACE:
Error:
at Object.debuggablePromise (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/debuggable.js:69:75)
at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:341:61
at Generator.next (<anonymous>)
at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:21:71
at new Promise (<anonymous>)
at __awaiter (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:17:12)
at prepareResource (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:331:12)
at Object.registerResource (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:213:24)
at new Resource (/github/workspace/infra/node_modules/@pulumi/pulumi/resource.js:215:24)
at new ComponentResource (/github/workspace/infra/node_modules/@pulumi/pulumi/resource.js:386:9)
Promise leak detected:
CONTEXT(2): resolveURNIsKnown(resource:audio-app-infra-prod[pulumi:pulumi:Stack])
STACK_TRACE:
Error:
at Object.debuggablePromise (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/debuggable.js:69:75)
at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:344:55
at Generator.next (<anonymous>)
at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:21:71
at new Promise (<anonymous>)
at __awaiter (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:17:12)
at prepareResource (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:331:12)
at Object.registerResource (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:213:24)
at new Resource (/github/workspace/infra/node_modules/@pulumi/pulumi/resource.js:215:24)
at new ComponentResource (/github/workspace/infra/node_modules/@pulumi/pulumi/resource.js:386:9)
Promise leak detected:
CONTEXT(5): monitor.registerResource(resource:audio-app-infra-prod[pulumi:pulumi:Stack])-initial
STACK_TRACE:
Error:
at Object.debuggablePromise (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/debuggable.js:69:75)
at runAsyncResourceOp (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:662:75)
at Object.<anonymous> (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:257:9)
at Generator.next (<anonymous>)
at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:21:71
at new Promise (<anonymous>)
at __awaiter (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:17:12)
at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:219:63
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Promise leak detected:
CONTEXT(6): rpcKeepAlive
STACK_TRACE:
Error:
at Object.debuggablePromise (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/debuggable.js:69:75)
at Object.rpcKeepAlive (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/settings.js:363:38)
at runAsyncResourceOp (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:670:29)
at Object.<anonymous> (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:257:9)
at Generator.next (<anonymous>)
at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:21:71
at new Promise (<anonymous>)
at __awaiter (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:17:12)
at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:219:63
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Promise leak detected:
CONTEXT(7): monitor.registerResource(resource:audio-app-infra-prod[pulumi:pulumi:Stack])-final
STACK_TRACE:
Error:
at Object.debuggablePromise (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/debuggable.js:69:75)
at runAsyncResourceOp (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:671:34)
at Object.<anonymous> (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:257:9)
at Generator.next (<anonymous>)
at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:21:71
at new Promise (<anonymous>)
at __awaiter (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:17:12)
at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:219:63
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Promise leak detected:
CONTEXT(8): monitor.registerResource(resource:audio-app-infra-prod[pulumi:pulumi:Stack])
STACK_TRACE:
Error:
at Object.debuggablePromise (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/debuggable.js:69:75)
at Object.<anonymous> (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:263:47)
at Generator.next (<anonymous>)
at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:21:71
at new Promise (<anonymous>)
at __awaiter (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:17:12)
at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:257:43
at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:667:16
at Generator.next (<anonymous>)
at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:21:71
error: an unhandled error occurred: Program exited with non-zero exit code: 1
warning: A new version of Pulumi is available. To upgrade from version '3.12.0' to '3.51.0', visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.
acoustic-country-86810
01/13/2023, 6:14 AMcreamy-monkey-35142
01/13/2023, 8:33 AMhistory
just for 2 weeks and folder size is 9.4G
=.=!white-author-39785
01/13/2023, 9:04 AMsparse-spring-91820
01/13/2023, 9:10 AM400 Bad Request: trigger is not supported
for post-user-registration
trigger:
Code sample:
const createIdentityAction = new auth0.Action('create-identity', {
name: 'Create Identity',
runtime: 'node16',
code: fs.readFileSync(
path.join(__dirname, './create-identity.js'),
'utf-8'
),
deploy: true,
secrets,
supportedTriggers: { id: 'post-user-registration', version: 'v3' },
dependencies: [{ name: 'axios', version: '1.2.2' }]
});
And here is create-identity.js
file:
const axios = require('axios');
exports.onExecutePostUserRegistration = async (event, api) => {
const { user_id: ssoId, email } = event.user;
const {
domain,
clientId,
clientSecret,
audience,
serverHost
} = event.secrets;
const options = {
method: 'POST',
url: `https://${domain}/oauth/token`,
headers: { 'content-type': 'application/json' },
data: {
client_id: clientId,
client_secret: clientSecret,
audience,
grant_type: 'client_credentials'
}
};
const { access_token } = await axios(options).then(res => res.data);
const headers = { Authorization: ['Bearer', access_token].join(' ') };
const createIdentityRoute = `https://${serverHost}/api/identity`;
// TODO: Implement retry strategy
await <http://axios.post|axios.post>(createIdentityRoute, { ssoId, email }, { headers });
};
Does anyone know why I get trigger is not supported
error if I basically copied trigger name from their website: https://auth0.com/docs/customize/actions/flows-and-triggers?
I am using "@pulumi/auth0": "^2.14.0"
bland-pharmacist-96854
01/13/2023, 4:22 PMbland-pharmacist-96854
01/13/2023, 4:35 PMglamorous-answer-86536
01/13/2023, 5:46 PMvar = True if some_output['value'].apply(lambda x: f"{x}") != "AWS" else False
The "AWS" value is actually just an export in another stackhelpful-knife-18557
01/13/2023, 11:05 PMacoustic-country-86810
01/14/2023, 2:55 AMrandom, err := local.NewCommand(ctx, "my-bucket", &local.CommandArgs{
Create: pulumi.String("gcloud auth application-default print-access-token"),
})
if err != nil {
return nil, err
}
ctx.Export("output", random.Stdout)
fmt.Println("***********output************")
fmt.Println(random.Stdout.ToStringOutput())
fmt.Println("***********output************")
How do i print out the output
My output from the above println is in this format , I want to print the string version of it
***********output************
{0xc0002e85b0}
***********output************clever-painter-96148
01/14/2023, 10:30 AMpulumi import
, how should we handle resources that do not actually exist, like providers and components?
Context: I reimplemented a legacy TF code base with Pulumi. Now I want to write a script that generates a resources.json
import file based on the terraform state.
According to https://www.pulumi.com/docs/guides/adopting/import/, id
is mandatory, but when reading a Pulumi state file, components have no ID.bored-whale-3786
01/14/2023, 11:58 AMpulumi new
the type of the importing resource definition or the targeted one?most-lighter-95902
01/15/2023, 4:53 AMmost-lighter-95902
01/15/2023, 4:53 AMadventurous-butcher-54166
01/16/2023, 1:22 PMpulumi/actions@v3
as defined below. I’ve tried reinstalling the Pulumi GitHub App, allowing access to all organization repositories, without success. Any ideas on what I’m not doing correctly?
- name: Comment on PR with pulumi preview output
uses: pulumi/actions@v3
id: pulumi-action
env:
PYTHONPATH: ${{ inputs.pulumi_workdir }}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
with:
command: preview
comment-on-pr: true
edit-pr-comment: true
github-token: ${{ secrets.GITHUB_TOKEN }}
stack-name: ${{ inputs.pulumi_stack }}
work-dir: ${{ inputs.pulumi_workdir }}
purple-state-87112
01/16/2023, 3:02 PMcredentials: {
customRegistries: {
"<http://acrremovaltask.azurecr.io|acrremovaltask.azurecr.io>": { identity: "system" },
},
stocky-sundown-45608
01/16/2023, 4:10 PMstocky-sundown-45608
01/16/2023, 4:10 PMconst issuer = new k8s.apiextensions.CustomResource(issuerName, {
apiVersion: "<http://cert-manager.io/v1|cert-manager.io/v1>",
kind: "Issuer",
metadata: {
namespace: appNs.metadata.name,
name: issuerName,
},
spec: {
acme: {
server: "<https://acme-v02.api.letsencrypt.org/directory>",
email: "",
privateKeySecretRef: {
name: issuerSecret.metadata.name,
},
solvers: [{
http01: {
ingress: {
name: "api-ingress-dev"
},
},
}],
},
},
ambitious-sundown-4188
01/16/2023, 8:07 PMstrong-helmet-83704
01/17/2023, 2:00 AMflat-beach-22364
01/17/2023, 8:58 AMwooden-caravan-96340
01/17/2023, 9:59 AMazure-native:network:NetworkInterface (network-interface):
error: Code="NicReservedForAnotherVm" Message="Nic(s) in request is reserved for another Virtual Machine for 180 seconds. Please provide another nic(s) or retry after 180 seconds.
fast-vr-49992
01/17/2023, 10:32 AMSlots must be provided when restoring from snapshot ARNs with cluster mode enabled
I could not find any configuration option for this in Pulumi docs…billowy-alarm-4696
01/17/2023, 2:56 PM