-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[Bug]: aws_ssoadmin_application not supporting custom-saml #34813
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Hey @MarcHenriot 👋 - thanks for the report! Given the AWS CLI returns the same |
Hey @jar-b ! Thank you for getting back to me. I was also looking into this matter. Unfortunately, I haven't come across any resources that specify where I can raise an issue for the AWS API. Do you happen to have any information or a link that could help me contact them regarding this question? |
In the AWS console for your account, you can search |
For me, the resource has successfully created the application, however there is no metadata configuration option available on the console. |
Could you share the applied resource's HCL code ? |
I get the same error for
My creation example is:
|
@MarcHenriot here is the code:
P.S: var.custom_application_name should be without spaces or it gives validation error. I used "AWSClientVPN" |
I think I know why the application created from this resource is not having metadata configuration option. According to AWS Identity Center User guide :
So looks like CreateApplication api which is used in this resource is only for AWS managed application type and not customer managed applications which is used for saml2.0. |
HI @kamalika-majumder appreciate you sharing your code. In the code snippet provided:
There's an issue with the |
Replying to save others like me from wasting too much time on this. I contacted Amazon about the issue and got the following reply: Please allow me to explain that, CreateApplication, is currently limited to usage only for Custom Oauth2.0 Application creation/configuration.This API is not currently useable for creation of 3rd party SAML Applications (which can currently only be configured through console), or for Oauth2.0 Applications, where setup should be performed through the associated App Service/Console. If possible, a note in the terraform documentation may save other people from confusion. |
Thanks for sharing, @moodwrench! I've opened #35667 to add this clarification to the top of the I will leave this issue open for visibility into the upstream limitation. Should AWS address this in the API and SDK in the future we can remove the note and close this as completed. |
Terraform Core Version
1.6.5
AWS Provider Version
5.30.0
Affected Resource(s)
Expected Behavior
When I use the resource with
application_provider_arn = "arn:aws:sso::aws:applicationProvider/custom-saml"
. I'm expecting the resource to create a custom SAML application with emptyApplication properties
andApplication metadata
Actual Behavior
AWS return en error with status code 400.
arn:aws:sso::aws:applicationProvider/app-50e590700beb5208' is not supported for this action
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
Important Factoids
I have tried to use the AWS CLI to reproduce my error.
And got :
An error occurred (ValidationException) when calling the CreateApplication operation: The application provider with arn 'arn:aws:sso::aws:applicationProvider/app-50e590700beb5208' is not supported for this action.
I have also used the data
aws_ssoadmin_application
to get a working custom SAML app to validate theapplication_provider_arn
.Here is a sample of my state to see the data properties.
References
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: