Open ZiadMansourM opened 6 months ago
aws-client-vpn
gen aws-client-vpn.xml
:
urn:amazon:webservices:clientvpn
.http://127.0.0.1:35001
.aws-client-vpn-self-service
gen aws-client-vpn-self-service.xml
:
urn:amazon:webservices:clientvpn
.https://self-service.clientvpn.amazonaws.com/api/auth/sso/saml
.aws_iam_saml_provider
terraform resource to create the two SAML providers.User attribute in the application | Maps to this string value or user attribute in AWS IAM Identity Center | Format |
---|---|---|
Subject | ${user:email} | emailAddress |
Name | ${user:email} | unspecified |
FirstName | ${user:givenName} | unspecified |
LastName | ${user:familyName} | unspecified |
memberOf | ${user:groups} | unspecified |
Currently trying to figure out how to make the attributes mappings with terraform, as it is a required step as mentioned here.
Hi Zaid, you can download the metadata file for the IAM Identity Center applications you create from the AWS console by doing the following:
Edit configuration
IAM Identity Center metadata
section and the Download
link is in there:
In my case, since Terraform isn't able to manage SAML applications yet (at least that I could find), I just did all the mapping manually in the AWS console.
Hope this helps and glad you found the repo useful!
In my case, since Terraform isn't able to manage SAML applications yet (at least that I could find), I just did all the mapping manually in the AWS console.
@patheard Can you clarify regarding what you're saying Terraform doesn't support just yet? I'm seeing that IAM Identity Center can be managed from Terraform, I'm also seeing Terraform examples showing SSO/SAML usage. Is it just the app management itself (guessing a custom app, rather than an AWS managed app) that you're referencing isn't manageable from terraform?
Yup, exactly - there isn't a way to create and configure the custom app via Terraform:
Good evening Mr. Heard, Hope you are enjoying your evening ^^
I came across this amazing repo, thank you for your efforts, while trying to use terraform to configure
AWS client VPN using AWS IAM Identity Center as the IdP
.I have been through the hole process using ClickOps or the Console.
My Question
I used to add the
Application Metadata
manually, as the docs mentioned If you don’t have a metadata file, you can manually type your metadata values and enter the following values:E.g. for
aws-client-vpn
Application ACS URL
: http://127.0.0.1:35001Application SAML audience
: urn:amazon:webservices:clientvpnE.g. for
aws-client-vpn-self-service
Application ACS URL
: https://self-service.clientvpn.amazonaws.com/api/auth/sso/samlApplication SAML audience
: urn:amazon:webservices:clientvpnBut the terraform code is:
You mentioned in the repo
You will need to add the AWS SSO SAML Application metadata files to the terraform/metadata directory.
How can I generate the
aws-client-vpn.xml
oraws-client-vpn-self-service.xml
? Or are there any sample or docs referring to the structure of the file ? Would I need to create the files manually of I should get them from somewhere ?Thank you in advance ^^