EKS Cluster Subnet - Invalid Preview #4367
Labels
awaiting/bridge
The issue cannot be resolved without action in pulumi-terraform-bridge.
kind/bug
Some behavior is incorrect or out of spec
service/eks
EKS issues
What happened?
We are creating an EKS Cluster using the pulumi-aws provider with python 3.12.
The EKS Cluster already exists and we imported it using
pulumi import ...
.That cluster is associated to 6 subnets and we are changing it to just 3 inside of our pulumi program.
When we run
pulumi preview --diff
, the output of the subnet_ids inside of vpc_config changes with every run and it often does not match with the desired ids. The output seems like it is random.Examples:
Run 1:
Run 2:
Run 3:
Property Test
We implemented a property test to check the resulting subnets and we noticed that they are correct.
When checking the values inside of a debugger, they are also matching as expected.
Only the preview seems to be invalid.
We are assuming that this is an issue inside of the preview rendering of the pulumi cli (?),
Example
cluster.py
property-test.py
Output of
pulumi about
CLI
Version 3.129.0
Go Version go1.22.6
Go Compiler gc
Plugins
KIND NAME VERSION
resource aws 6.48.0
language python 3.12
resource random 4.16.3
resource std 1.7.3
resource tls 5.0.4
Host
OS ubuntu
Version 22.04
Arch x86_64
Pulumi locates its logs in /tmp by default
Additional context
As we can not publish the real code, we modified it to create a close approximation.
The provided code was tested in our condition and resulted in the same issues.
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: