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

Despite api_enable_users being set to True, an update is always generated by Pulumi #445

Open
damey2011 opened this issue Mar 1, 2024 · 1 comment
Labels
bug/diff kind/bug related to Pulumi generating wrong diffs on preview or up. kind/bug Some behavior is incorrect or out of spec

Comments

@damey2011
Copy link

What happened?

Using Pulumi Python, I create an Auth0 connection with attribute api_enable_users being set to true, but everytime I run pulumi up or pulumi preview, there's a change from false to true needing to be applied.

Example

auth_connection = auth0.Connection(
    f"{a0_settings.CURRENT_ENV}-auth",
    strategy="auth0",
    options=auth0.ConnectionOptionsArgs(
        disable_signup=True,
        api_enable_users=True,
        brute_force_protection=True
    ),
    opts=opts
)
Do you want to perform this update? details
  pulumi:pulumi:Stack: (same)
    [urn=urn:pulumi:staging::pressone-infra::pulumi:pulumi:Stack::infra-staging]
    ~ auth0:index/connection:Connection: (update)
        [id=con_GtgKWo5Er2DmXQ3N]
        [urn=urn:pulumi:staging::pressone-infra::auth0:index/connection:Connection::staging-auth]
        [provider=urn:pulumi:staging::pressone-infra::pulumi:providers:auth0::staging-auth0-provider::0a74e747-fb37-4ca1-8e30-40773071cb1a]
      ~ options: {
          ~ apiEnableUsers: false => true
        }

Output of pulumi about

CLI          
Version      3.88.1
Go Version   go1.21.1
Go Compiler  gc

Plugins
NAME          VERSION
auth0         3.1.2
digitalocean  4.25.2
kubernetes    4.8.1
python        unknown

Host     
OS       darwin
Version  13.0.1
Arch     arm64

This project is written in python: executable='/Users/theoluwanifemi/Library/Caches/pypoetry/virtualenvs/infra-_cUdUW92-py3.11/bin/python3' version='3.11.6'

Current Stack: pressone/pressone-infra/dev

Found no resources associated with dev

Found no pending operations associated with dev

Backend        
Name           pulumi.com
URL            https://app.pulumi.com/pressone
User           pressone
Organizations  pressone
Token type     personal

Dependencies:
NAME                 VERSION
pip                  23.3.2
pulumi_auth0         3.1.2
pulumi_digitalocean  4.25.2
pulumi_kubernetes    4.8.1
pydantic-settings    2.2.1
setuptools           69.0.3

Pulumi locates its logs in /var/folders/xs/2w_5vpgx3cngcxfv5y9t1p7c0000gn/T/ 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).

@damey2011 damey2011 added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Mar 1, 2024
@iwahbe iwahbe added bug/diff kind/bug related to Pulumi generating wrong diffs on preview or up. and removed needs-triage Needs attention from the triage team labels Mar 4, 2024
@iwahbe
Copy link
Member

iwahbe commented Mar 4, 2024

Hi @damey2011. Thanks for reporting this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/diff kind/bug related to Pulumi generating wrong diffs on preview or up. kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

2 participants