-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
remote saml_metadata_document #5848
Comments
This looks like an interesting idea. I think that adding a way to get data from remote location over HTTP(S) and/or other protocols may require a slightly more sophisticated approach though. It would almost deserve its own resource, or better - data source. Something like this (hypothetical data source): data "remote_file_over_http" "saml_doc" {
url = "https://domain.local/idp/shibboleth"
follow_redirects = true
expected_content_type = "text/xml"
basic_auth = "user:pass"
} Also I think it would make even more sense to have Automation FTW. 😃 |
I agree, that making some cas providers would be slick, but i think the remote file resource would still have significant value. I suggest "remote_file" that supports local, http, and git just as module source does? In my case, I want to fake it for now. This seems a bit hackish, do you have a better suggestion?
|
That might work, but you may want to define explicit dependency between resource "aws_iam_saml_provider" "cas" {
depends_on = ["null_resource.getfile"]
name = "cas"
saml_metadata_document = "${file("${var.saml_metadata_file}")}"
} The value you'll get from such setup is arguable though. Terraform doesn't know whether the remote file has changed and it will never re-execute the provisioner (unless you explicitly |
It "works" but not unsure about best practice and convention. I added the explicit depends. It does download the file, but there is no clean up for it. Do I need to declare the saml_metadata_file variable generally , could I add this var to null_resource.getfile? Example code? |
Could this be resolved by updating HTTP DATA PROVIDER to allow We could then use something like this to access the metadata file:
|
This issue has been automatically migrated to hashicorp/terraform-provider-http#13 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to hashicorp/terraform-provider-http#13. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
I would like to reference a remote document over https in creating a aws_iam_saml_provider rather than a local file, something similar to modules'
source = "github.com/....
such as:The remote file seems especially relevant in this case - am I overlooking existing functionality?
The text was updated successfully, but these errors were encountered: