careful-petabyte-65672
08/14/2022, 5:16 PMk8s.yaml.ConfigFile
and k8s.yaml.ConfigGroup
for a few months with no issues, I'm currently seeing an issue when previewing a new stack with these elements.
this is a stuck trace.
error: Traceback (most recent call last):
File "/nix/store/4a6xm29r8fpn80ipkqyqhn31mhh7pai6-pulumi-3.32.1/bin/pulumi-language-python-exec", line 107, in <module>
loop.run_until_complete(coro)
File "/nix/store/328bxidfhv01x138sjynkzswiskrk1yd-python3-3.9.12/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/nix/store/s6zf9dbdk4b9cajc6plcw72gg8mgvybq-python3-3.9.12-env/lib/python3.9/site-packages/pulumi/runtime/stack.py", line 126, in run_in_stack
await run_pulumi_func(lambda: Stack(func))
File "/nix/store/s6zf9dbdk4b9cajc6plcw72gg8mgvybq-python3-3.9.12-env/lib/python3.9/site-packages/pulumi/runtime/stack.py", line 49, in run_pulumi_func
func()
File "/nix/store/s6zf9dbdk4b9cajc6plcw72gg8mgvybq-python3-3.9.12-env/lib/python3.9/site-packages/pulumi/runtime/stack.py", line 126, in <lambda>
await run_pulumi_func(lambda: Stack(func))
File "/nix/store/s6zf9dbdk4b9cajc6plcw72gg8mgvybq-python3-3.9.12-env/lib/python3.9/site-packages/pulumi/runtime/stack.py", line 149, in __init__
func()
File "/nix/store/4a6xm29r8fpn80ipkqyqhn31mhh7pai6-pulumi-3.32.1/bin/pulumi-language-python-exec", line 106, in <lambda>
coro = pulumi.runtime.run_in_stack(lambda: runpy.run_path(args.PROGRAM, run_name='__main__'))
File "/nix/store/328bxidfhv01x138sjynkzswiskrk1yd-python3-3.9.12/lib/python3.9/runpy.py", line 285, in run_path
return _run_code(code, mod_globals, init_globals,
File "/nix/store/328bxidfhv01x138sjynkzswiskrk1yd-python3-3.9.12/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/uritwig/workspace/arnac/infra/pulumi/./__main__.py", line 19, in <module>
managed_infra.deploy()
File "/Users/uritwig/workspace/arnac/infra/pulumi/stacks/managed_infra.py", line 224, in deploy
create_cluster(network)
File "/Users/uritwig/workspace/arnac/infra/pulumi/stacks/managed_infra.py", line 195, in create_cluster
cluster = Cluster(cluster_args)
File "/Users/uritwig/workspace/arnac/infra/pulumi/components/cluster/cluster.py", line 112, in __init__
self._create_enclave_smarter_device()
File "/Users/uritwig/workspace/arnac/infra/pulumi/components/cluster/cluster.py", line 208, in _create_enclave_smarter_device
self.smarter_device = k8s.yaml.ConfigFile(
File "/nix/store/s6zf9dbdk4b9cajc6plcw72gg8mgvybq-python3-3.9.12-env/lib/python3.9/site-packages/pulumi_kubernetes/yaml/yaml.py", line 348, in __init__
__ret__ = pulumi.runtime.invoke('kubernetes:yaml:decode', {'text': text}, invoke_opts).value['result']
TypeError: 'NoneType' object is not subscriptable
error: an unhandled error occurred: Program exited with non-zero exit code: 1
removing these elements removes the issue.I'm using pulumi 3.32.1 with
this is the k8s pluging when running pulumi plugin ls
kubernetes resource 3.20.3 78 MB 2 hours ago 2 hours ago
kubernetes resource 3.20.2 78 MB 2 hours ago 2 hours ago
kubernetes resource 3.19.0 79 MB 2 hours ago 2 hours ago
What can I do to fix this?victorious-dusk-75271
08/15/2022, 7:15 AMmagnificent-lifeguard-15082
08/15/2022, 10:38 AMmammoth-country-64756
08/15/2022, 3:41 PMcreamy-window-21036
08/15/2022, 3:42 PM# stack1
def program1():
pulumi.export("ec2_role_arn", ec2_role.arn)
# stack2
def program2():
ref = pulumi.StackReference("stack1")
ec2_role = ref.require_output("ec2_role_arn")
# do something with ec2 role arn
future-window-78560
08/15/2022, 5:05 PMbrief-notebook-42882
08/15/2022, 6:22 PM'failed to register new resource <INSERT_CLOUD_RESOURCE_NAME_HERE>: Resource monitor is terminating'
Additionally, I was able to see this error once, implying that there's only one instance of the engine running in my API:
Error: Program run without the Pulumi engine available; re-run using the `pulumi` CLI
To be sure, my deployment works just fine when the function is called once, further hinting at the notion that I'm referencing an already busy process. I'd love to know if there's a way to force Pulumi to spin up another process or instance whenever a new deployment is requested, but I could not find any documentation around it, so I'd love some pointers!strong-table-84168
08/15/2022, 9:41 PMNodeStatusUnknown Kubelet stopped posting node status.
Im also just following the standard tutorial from pulumi docs.great-sunset-355
08/16/2022, 7:08 AMpulumi config
inside the CI pipeline?
This seems to be a problem that config has to be present before CI runs but this presents another problem that the config value is already exposed to the code which has not been merged yet.
Is there any recommendation to avoid this problem?fresh-librarian-41835
08/16/2022, 8:17 PMetag
reference on objects. I wrote up a quick issue in regards to this. Is there any workaround or fix for this? This is causing our stack to take a long time to refresh and update resources as this etag is referenced on every repo, branch, team, and member…
https://github.com/pulumi/pulumi-github/issues/230rapid-spoon-72613
08/16/2022, 11:32 PMbig-psychiatrist-43588
08/17/2022, 4:09 AMvictorious-dusk-75271
08/17/2022, 5:50 AMvictorious-dusk-75271
08/17/2022, 5:50 AMabundant-megabyte-13431
08/17/2022, 7:27 AMambitious-agent-35343
08/17/2022, 8:02 AMfew-processor-89505
08/17/2022, 8:09 AMcold-orange-37453
08/17/2022, 8:27 AMvictorious-dusk-75271
08/17/2022, 9:06 AMDiagnostics:
pulumi:pulumi:Stack (allrites-infrastructure-dev):
error: Running program '/home/k1ng/projects/allrites-infra' failed with an unhandled exception:
TypeError: Cannot read properties of null (reading 'data')
at /home/k1ng/projects/allrites-infra/node_modules/@pulumi/nodegroup.ts:501:95
at /home/k1ng/projects/allrites-infra/node_modules/@pulumi/output.ts:383:31
at Generator.next (<anonymous>)
at /home/k1ng/projects/allrites-infra/node_modules/@pulumi/pulumi/output.js:21:71
at new Promise (<anonymous>)
at __awaiter (/home/k1ng/projects/allrites-infra/node_modules/@pulumi/pulumi/output.js:17:12)
at applyHelperAsync (/home/k1ng/projects/allrites-infra/node_modules/@pulumi/pulumi/output.js:229:12)
at /home/k1ng/projects/allrites-infra/node_modules/@pulumi/output.ts:302:65
at processTicksAndRejections (node:internal/process/task_queues:95:5)
gentle-market-22852
08/17/2022, 11:20 AMfast-easter-23401
08/17/2022, 12:24 PMconst topic = new KafkaTopic(
args.name,
{
topicName: args.name,
kafkaCluster: { id: cluster.id },
restEndpoint: cluster.restEndpoint,
credentials: {
key: clusterSA.apiKey.name,
secret: clusterSA.apiKey.secret,
},
},
{ parent: this }
);
Type Name Status Info
pulumi:pulumi:Stack confluent-test **failed** 1 error; 2 messages
└─ nesto:kafka test
+ ├─ confluentcloud:index:KafkaTopic test **creating failed** 1 error
+ └─ confluentcloud:index:RoleBinding test-environment-admin **creating failed** 1 error
Diagnostics:
pulumi:pulumi:Stack (confluent-test):
2022/08/17 08:19:24 [DEBUG] POST <https://pkc-41voz>.<region>.gcp.confluent.cloud:443/kafka/v3/clusters/<cluster-id>/topics
error: update failed
confluentcloud:index:KafkaTopic (test):
error: 1 error occurred:
* error creating Kafka Topic: 401 Unauthorized: Unauthorized
I also tried it creating a Provider resource, then passing the latter as opts
. Didn’t work either.
Any insights will be greatly appreciated.
Have a nice day,enough-potato-44764
08/17/2022, 6:18 PMPulumi Service REST API
has a way of exporting project level configurations.microscopic-piano-27908
08/17/2022, 9:37 PMconst emptyTrashSchedule: aws.cloudwatch.EventRuleEventSubscription = aws.cloudwatch.onSchedule(
"emptyTrash",
"cron(0 23 ? * FRI *)",
emptyTrash
// Export the name of the bucket
export const bucketName = trashBucket.id;
);
The parens are in the wrong placegentle-market-22852
08/18/2022, 3:35 AMflaky-arm-38472
08/18/2022, 8:24 AMNOTE on Route Tables and Routes: This provider currently provides both a standalone Route resource and a Route Table resource with routes defined in-line. At this time you cannot use a Route Table with in-line routes in conjunction with any Route resources. Doing so will cause a conflict of rule settings and will overwrite rules.
But importing ec2.RouteTable resources automatically attach the Routes as inline.
Does it mean that I can not create more individual routes using ec2.Route because then it will override the ones already imported on the ec2.RouteTable (because those are inline)?.lively-crayon-44649
08/18/2022, 9:25 AMclass MyResource extends pulumi.ComponentResource {
static create(name, args, opts): MyResource {
const foo = new aws.Foo(...)
const bar = new aws.Bar(...)
return new this(foo, bar)
}
static fromExisting(fooId, barId) {
const foo = aws.Foo.getFoo(fooId)
const bar = aws.Bar.getBar(barId)
return new this(foo, bar)
}
private constructor(foo, bar) {
this.foo = foo
this.bar = bar
}
toOutputs() {
return {
fooId: this.foo.id,
barId: this.bar.id,
}
}
}
lively-crayon-44649
08/18/2022, 9:28 AMtoOutputs
), a static function for hydrating from those outputs (fromExisting
) and a create
static method that creates a new resource (thus making the constructor private and dumb). Has anyone tried this/any thoughts on this?lively-crayon-44649
08/18/2022, 9:29 AMComponentResource
? So that it's easier to make construction pick between "create something new" and "reference something existing"? awsx.ec2.Vpc
seems to have this sort of pattern but again open to any feedback/suggestions. There is https://github.com/pulumi/pulumi/issues/4133 on GitHub but it's not really gone anywhere yet. Thanks!gentle-market-22852
08/18/2022, 11:57 AMpackage com.tejasoft.devops.iac.pulumi.aws;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.eks.Cluster;
public final class AWSEKSPulumiApp
{
public static void main(final String[] aArgs) {
Pulumi.run(AWSEKSPulumiApp::stack);
}
private static void stack(final Context aContext) {
final var cluster = new Cluster("eks-cluster");
aContext.export("kubeconfig", cluster.kubeconfig());
}
}
when this is executed the command
pulumi stack output
gives out put as Current stack outputs (0):
No output values currently in this stack
gentle-market-22852
08/18/2022, 11:57 AM