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

okta_app_bookmark import missing image #1963

Open
jeremysells-canv opened this issue Apr 11, 2024 · 1 comment
Open

okta_app_bookmark import missing image #1963

jeremysells-canv opened this issue Apr 11, 2024 · 1 comment
Labels
bug triaged Triaged into internal Jira

Comments

@jeremysells-canv
Copy link

jeremysells-canv commented Apr 11, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

% terraform -v
Terraform v1.7.5
on darwin_arm64

Affected Resource(s)

  • okta_app_bookmark

Terraform Configuration Files

curl https://ok12static.oktacdn.com/fs/bco/4/existing-resource-path --output example.png
terraform {
  backend "local" {
    path = "terraform.tfstate"
  }
  required_providers {
    okta = {
      source = "okta/okta"
      version = "4.8.0"
    }
  }
}

provider "okta" {}

resource "okta_app_bookmark" "example" {
  label  = "Terraform Test"
  url    = "https://example.com"
  logo   = "example.png"
}

Debug Output

terraform init
terraform plan
# Shows it is going to add the app which is correct (as it has not been imported yet)
terraform import okta_app_bookmark.example abcde
terraform plan
# Now shows it is going to set the image which is identical to whats in the Admin

Plan Output

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following
symbols:
  ~ update in-place

Terraform will perform the following actions:

  # okta_app_bookmark.example will be updated in-place
  ~ resource "okta_app_bookmark" "example" {
        id                         = "0oagd1u30uOJAiSPq5d7"
      + logo                       = "f8bfcf27a91280382d4f20bbfc1917b67889105c4d9ac389a324b4f9e2465df2"
        name                       = "bookmark"
        # (11 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Panic Output

n.a.

Expected Behavior

Terraform app was imported and the reference image is identical to Okta's so it should not be making any changes to the image.

Can this be done in the Admin UI?

n.a.

Can this be done in the actual API call?

n.a.

Actual Behavior

(see above)

Steps to Reproduce

(see above)

Important Factoids

n.a.

References

n.a.

Notes

@duytiennguyen-okta duytiennguyen-okta added triaged Triaged into internal Jira bug labels Apr 16, 2024
@duytiennguyen-okta
Copy link
Contributor

OKTA internal reference https://oktainc.atlassian.net/browse/OKTA-720094

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triaged Triaged into internal Jira
Projects
None yet
Development

No branches or pull requests

2 participants