Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexepected diff with lightsail.InstancePublicPorts #4502

Open
markovejnovic opened this issue Sep 23, 2024 · 1 comment
Open

Unexepected diff with lightsail.InstancePublicPorts #4502

markovejnovic opened this issue Sep 23, 2024 · 1 comment
Labels
awaiting/bridge The issue cannot be resolved without action in pulumi-terraform-bridge. kind/bug Some behavior is incorrect or out of spec

Comments

@markovejnovic
Copy link

Describe what happened

Hi pulumi community! I'm relatively new to pulumi (and IAC in general) and I have been trying to setup a simple Pulumi project which provisions a lightsail instance.

Things have been going great until I attempted to setup the public ports via lightsail.InstancePublicPorts and have observed that a diff is reported when attempting to do a pulumi refresh even though there is no observable change.

The output I get is:

EC2_ROOT_PUBKEY=$(cat ~/.ssh/id_ed25519.pub) pulumi refresh
Previewing refresh (dev)

View in Browser (Ctrl+O): https://app.pulumi.com/ChopIt/chopit-aws/dev/previews/47baca55-9b6f-4896-b440-d9f5ab8533cc

     Type                                  Name                         Plan       Info
     pulumi:pulumi:Stack                   chopit-aws-dev                          
     ├─ aws:lightsail:StaticIp             devdb-static-ip                         
     ├─ aws:lightsail:KeyPair              devdb-root-keypair                      
     ├─ aws:lightsail:Instance             devdb-lightsail                         
     ├─ aws:lightsail:StaticIpAttachment   devdb-static-ip-attachement             
 ~   └─ aws:lightsail:InstancePublicPorts  devdb-public-ports           update     [diff: ~portInfos]

Resources:
    ~ 1 to update
    5 unchanged

Do you want to perform this refresh?
No resources will be modified as part of this refresh; just your stack's state will be.
 details
  pulumi:pulumi:Stack: (same)
    [urn=urn:pulumi:dev::chopit-aws::pulumi:pulumi:Stack::chopit-aws-dev]
    ~ aws:lightsail/instancePublicPorts:InstancePublicPorts: (update)
        [id=devdb-lightsail-332932181]
        [urn=urn:pulumi:dev::chopit-aws::aws:lightsail/instancePublicPorts:InstancePublicPorts::devdb-public-ports]
        [provider=urn:pulumi:dev::chopit-aws::pulumi:providers:aws::default_6_52_0::af70e6c2-ddd1-45ac-8c11-2f826927300f]
      ~ portInfos: [
          ~ [0]: {
                  ~ fromPort: 22 => 22
                  ~ protocol: "tcp" => "tcp"
                  ~ toPort  : 22 => 22
                }
          ~ [1]: {
                  ~ fromPort: 443 => 443
                  ~ protocol: "tcp" => "tcp"
                  ~ toPort  : 443 => 443
                }
          ~ [2]: {
                  ~ fromPort: 5432 => 5432
                  ~ protocol: "tcp" => "tcp"
                  ~ toPort  : 5432 => 5432
                }
          ~ [3]: {
                  ~ fromPort: 80 => 80
                  ~ protocol: "tcp" => "tcp"
                  ~ toPort  : 80 => 80
                }
        ]

I've attached an image to showcase the fact that pulumi, in fact, appears to observe a diff between identical ports?
Image

Sample program

A sample program is available as a gist.

Log output

The command that produced the log is:

EC2_ROOT_PUBKEY=$(cat ~/.ssh/id_ed25519.pub) pulumi refresh  --logtostderr --logflow -v=10 --preview-only 2>&1

The log is available as a gist.

Affected Resource(s)

pulumi refresh, pulumi up

Output of pulumi about

CLI          
Version      3.132.0
Go Version   go1.23.1
Go Compiler  gc

Plugins
KIND      NAME    VERSION
resource  aws     6.52.0
language  python  unknown

Host     
OS       fedora
Version  40
Arch     x86_64

This project is written in python: executable='/home/marko/.cache/pypoetry/virtualenvs/non-package-mode-p4ERSymB-py3.12/bin/python' version='3.12.6'

Backend        
Name           pulumi.com
URL            https://app.pulumi.com/mvejnovic
User           mvejnovic
Organizations  mvejnovic, ChopIt
Token type     personal

Dependencies:
NAME        VERSION
pip         24.2
pulumi_aws  6.52.0
ruff        0.6.7

Pulumi locates its logs in /tmp by default

Additional context

No response

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).

@markovejnovic markovejnovic added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Sep 23, 2024
@t0yv0 t0yv0 changed the title Unexepcted diff with lightsail.InstancePublicPorts Unexepected diff with lightsail.InstancePublicPorts Sep 23, 2024
@t0yv0
Copy link
Member

t0yv0 commented Sep 23, 2024

I'm sorry this is not working as expected! This appears to be another instance of a known issue pulumi/pulumi-terraform-bridge#1904

@t0yv0 t0yv0 added awaiting/bridge The issue cannot be resolved without action in pulumi-terraform-bridge. and removed needs-triage Needs attention from the triage team labels Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting/bridge The issue cannot be resolved without action in pulumi-terraform-bridge. kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

2 participants