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

awscc_opensearchservice_application updates to iam_identity_center_options fail #2143

Open
yannickvr opened this issue Jan 2, 2025 · 1 comment

Comments

@yannickvr
Copy link

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
  • The resources and data sources in this provider are generated from the CloudFormation schema, so they can only support the actions that the underlying schema supports. For this reason submitted bugs should be limited to defects in the generation and runtime code of the provider. Customizing behavior of the resource, or noting a gap in behavior are not valid bugs and should be submitted as enhancements to AWS via the CloudFormation Open Coverage Roadmap.

Terraform CLI and Terraform AWS Cloud Control Provider Version

Terraform v1.9.8
on darwin_arm64

  • provider registry.terraform.io/hashicorp/aws v5.82.2
  • provider registry.terraform.io/hashicorp/awscc v1.24.0

Affected Resource(s)

  • awscc_opensearchservice_application

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

resource "awscc_opensearchservice_application" "application" {
  name = var.name
  iam_identity_center_options = {
    enabled                                      = true
    iam_identity_center_instance_arn             = tolist(data.aws_ssoadmin_instances.example.arns)[0]
    iam_role_for_identity_center_application_arn = aws_iam_role.identitycenter.arn
  }
}

Debug Output

Panic Output

Expected Behavior

Updates to iam_identity_center_options should trigger a recreation, not an update.

Actual Behavior

awscc_opensearchservice_application.application: Modifying... [id=example]
╷
│ Error: AWS SDK Go Service Operation Incomplete
│ 
│   with awscc_opensearchservice_application.application,
│   on main.tf line 86, in resource "awscc_opensearchservice_application" "application":
│   86: resource "awscc_opensearchservice_application" "application" {
│ 
│ Waiting for Cloud Control API service UpdateResource operation completion returned: waiter state transitioned to FAILED. StatusMessage: Invalid request provided: Invalid update request.
│ ErrorCode: InvalidRequest

Steps to Reproduce

  1. terraform apply
  2. Update iam_identity_center_options
  3. terraform apply

Important Factoids

References

  • #0000
@yannickvr
Copy link
Author

I believe this is caused at the source, as CloudFormation docs also show that changing these properties "Require no interruption"

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchservice-application.html#cfn-opensearchservice-application-appconfigs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant