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

Add region parameter back to TF setup.Configuration #1221

Conversation

erhancagirici
Copy link
Collaborator

@erhancagirici erhancagirici commented Mar 16, 2024

Description of your changes

Fixes #1220

#1204 removed obsolete TF-CLI related configuration codepath and switched to native TF SDK configuration.
As a result of native SDK configuration, terraform.Setup.Configuration was no longer needed to configure TF AWS client and we cease

However, several external name configurations which use external name templates, still rely on terraform.Setup.Configuration map to obtain region value.

The change adds the region parameter back to terraform.Setup.Configuration.

I have:

  • Read and followed Crossplane's [contribution process].
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

With uptest, create resources that uses .setup.configuration in their external name configs

Signed-off-by: Erhan Cagirici <erhan@upbound.io>
@erhancagirici
Copy link
Collaborator Author

/test-examples="examples/sns/v1beta1/topic.yaml"

@erhancagirici erhancagirici marked this pull request as ready for review March 16, 2024 08:45
@mbbush
Copy link
Collaborator

mbbush commented Mar 17, 2024

/test-examples="examples/kinesis/v1beta1/stream.yaml"

Copy link
Collaborator

@mbbush mbbush left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix @erhancagirici! This LGTM. We just need to get it labeled with the backport label before merging.

@mbbush mbbush merged commit c04b0d2 into crossplane-contrib:main Mar 17, 2024
13 checks passed
Copy link

Successfully created backport PR #1222 for release-1.2.

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

Successfully merging this pull request may close these issues.

[Bug]: SNS Topics Not Creating
2 participants