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

fix(tls/subscriptions): tls configuration id should always be passed #670

Merged
merged 2 commits into from
Mar 27, 2023

Conversation

Integralist
Copy link
Collaborator

@Integralist Integralist commented Mar 24, 2023

Fixes: #669

Problem: A customer noticed when modifying their TLS Subscription domains that an error was reported saying a TLS Configuration ID was missing. This was caused by the customer not having a default TLS Configuration set, only custom configuration objects (one of which they specify the ID for in their HCL config). But because that ID wasn't changing, the current TF implementation wouldn't send it in the API request, and so the API returned an error because it expected an ID.

Solution: We always provide the TLS Configuration object ID. Even if the customer has a default TLS Configuration object set on their account we'll still pass whatever the computed ID was to ensure the API doesn't error.

NOTE: I've run the complete end-to-end integration test suite and it's passing.

@Integralist Integralist requested a review from razaj92 March 24, 2023 18:00
Copy link
Contributor

@razaj92 razaj92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Integralist Integralist merged commit b598558 into main Mar 27, 2023
@Integralist Integralist deleted the integralist/tls-sub-update branch March 27, 2023 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fastly_tls_subscription doesn't appear to support updates with custom tls_configuration
2 participants